← 返回
未分类 中文

Protein Struct Viz

Generate PyMOL scripts to highlight specific protein residues in PDB structures. Use this skill when the user needs to visualize specific amino acid residues...
生成PyMOL脚本,在PDB结构中突出显示特定蛋白残基。需要可视化特定氨基酸残基时使用此技能。
aipoch-ai aipoch-ai 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 341
下载
💾 0
安装
1
版本
#latest

概述

protein-struct-viz

Generate PyMOL scripts for highlighting specific protein residues in molecular structures.

Overview

This skill creates PyMOL command scripts to visualize protein structures with specific residues highlighted using various representation styles (sticks, spheres, surface, etc.).

Usage

The skill generates .pml script files that can be executed directly in PyMOL to:

  • Load PDB structures
  • Apply custom color schemes
  • Highlight specific residues with different representation styles
  • Create publication-ready visualization settings

Input Parameters

ParameterTypeDescription
------------------------------
pdb_filestringPath to PDB file or PDB ID (e.g., "1abc")
residueslistList of residue specifications (chain:resnum:resname)
stylestringVisualization style: "sticks", "spheres", "surface", "cartoon"
color_schemestringColor scheme: "rainbow", "chain", "element", custom hex
output_namestringOutput filename for the generated script

Residue Specification Format

  • Format: chain:resnum:resname or resnum (for single chain)
  • Examples: A:145:ASP, B:23:LYS, 156
  • Wildcards: A:* (all residues in chain A)

Example

python scripts/main.py --pdb 1mbn --residues "A:64:HIS,A:93:VAL,A:97:LEU" --style sticks --color_scheme rainbow --output myoglobin_active_site.pml

This will generate a PyMOL script highlighting the specified residues in myoglobin's active site.

Output

Generated .pml script includes:

  1. Structure loading commands
  2. Background and lighting settings
  3. Global representation settings
  4. Specific residue highlighting
  5. View optimization commands
  6. Optional: ray tracing for high-quality images

References

See references/ directory for:

  • PyMOL command reference
  • Color palette templates
  • Example scripts for common visualization tasks

Technical Difficulty

Medium - requires understanding of PyMOL scripting syntax and protein structure concepts.

Dependencies

  • PyMOL (installed separately)
  • Python 3.7+
  • No Python package dependencies (generates plain text scripts)

Risk Assessment

Risk IndicatorAssessmentLevel
-----------------------------------
Code ExecutionPython scripts with toolsHigh
Network AccessExternal API callsHigh
File System AccessRead/write dataMedium
Instruction TamperingStandard prompt guidelinesLow
Data ExposureData handled securelyMedium

Security Checklist

  • [ ] No hardcoded credentials or API keys
  • [ ] No unauthorized file system access (../)
  • [ ] Output does not expose sensitive information
  • [ ] Prompt injection protections in place
  • [ ] API requests use HTTPS only
  • [ ] Input validated against allowed patterns
  • [ ] API timeout and retry mechanisms implemented
  • [ ] Output directory restricted to workspace
  • [ ] Script execution in sandboxed environment
  • [ ] Error messages sanitized (no internal paths exposed)
  • [ ] Dependencies audited
  • [ ] No exposure of internal service architecture
  • Prerequisites

No additional Python packages required.

Evaluation Criteria

Success Metrics

  • [ ] Successfully executes main functionality
  • [ ] Output meets quality standards
  • [ ] Handles edge cases gracefully
  • [ ] Performance is acceptable

Test Cases

  1. Basic Functionality: Standard input → Expected output
  2. Edge Case: Invalid input → Graceful error handling
  3. Performance: Large dataset → Acceptable processing time

Lifecycle Status

  • Current Stage: Draft
  • Next Review Date: 2026-03-06
  • Known Issues: None
  • Planned Improvements:
  • Performance optimization
  • Additional feature support

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 08:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 75 📥 182,284
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 196 📥 67,872
data-analysis

Survival Analysis (KM)

aipoch-ai
生成Kaplan‑Meier生存曲线,计算生存统计量(log‑rank检验、中位生存时间),并估算临床及生物...的 hazard ratios。
★ 2 📥 996