coot-ncs-reference-guidance
БесплатноБез исполняемых скриптовНе проверенNCS Reference Guidance
Об этом скилле
Using NCS/Symmetry-Related Molecules as Reference
Overview
When building or rebuilding fragments, use the sequence and model from NCS-related (non-crystallographically related) or molecular symmetry-related molecules as a reference. If one copy is better built, use it to guide building of the other copies.
Why This Helps
- Multiple copies of the same molecule in the asymmetric unit should have identical sequences
- One copy may have better density or be more complete than others
- The better-built copy provides the correct sequence and approximate coordinates
Workflow: Compare Sequences First
Before building, compare sequences between related chains:
def compare_chain_sequences(imol, chain1, chain2):
"""Compare sequences of two chains, return differences."""
diffs = []
for resno in range(1, 200): # Adjust range as needed
name1 = coot.residue_name_py(imol, chain1, resno, "")
name2 = coot.residue_name_py(imol, chain2, resno, "")
if name1 and name2 and name1 != name2:
diffs.append((resno, name1, name2))
elif name1 and not name2:
diffs.append((resno, name1, "MISSING"))
elif name2 and not name1:
diffs.append((resno, "MISSING", name2))
return diffs
# Compare chains A and B
diffs = compare_chain_sequences(0, "A", "B")
if diffs:
print("Sequence differences:")
for resno, a, b in diffs:
print(f" {resno}: A={a}, B={b}")
else:
print("Sequences are identical")
Using Better Chain as Template
If chain B is more complete, use it to guide chain A:
# Chain B has residues 94-96 built, chain A doesn't
# Get sequence from chain B
target_seq = ""
for resno in range(94, 97):
name = coot.residue_name_py(0, "B", resno, "")
if name:
# Convert 3-letter to 1-letter code
one_letter = {'GLY': 'G', 'ALA': 'A', 'VAL': 'V', 'LEU': 'L',
'ILE': 'I', 'PRO': 'P', 'PHE': 'F', 'TYR': 'Y',
'TRP': 'W', 'SER': 'S', 'THR': 'T', 'CYS': 'C',
'MET': 'M', 'ASN': 'N', 'GLN': 'Q', 'ASP': 'D',
'GLU': 'E', 'LYS': 'K', 'ARG': 'R', 'HIS': 'H'}
target_seq += one_letter.get(name, 'X')
print(f"Target sequence from B: {target_seq}")
# Build residues in chain A, then mutate to correct sequence
# ... add_terminal_residue calls ...
# Mutate to match chain B
coot.mutate_and_autofit_residue_range(0, "A", 94, 96, target_seq)
Avoiding Common Mistakes
Don't assume "auto" gives correct residue type
add_terminal_residue(imol, chain, resno, "auto", 1)builds ALA by default- Always mutate to the correct sequence afterward
Check for subtle differences
- GLY vs GLN both start with 'G' - compare 3-letter codes, not single letters
- Use
residue_name_py()not single-letter conversions for comparisons
Verify after mutation
- Check density correlation after mutating
- Use
auto_fit_best_rotamer()to optimize side chain placement
Complete Example: Build Fragment Using NCS Reference
def build_fragment_from_ncs(imol, target_chain, ref_chain, start_resno, end_resno):
"""Build missing residues in target_chain using ref_chain as template."""
checkpoint = coot.make_backup_checkpoint(imol,
f"before building {target_chain}/{start_resno}-{end_resno} from {ref_chain}")
# Get reference sequence
ref_seq = ""
for resno in range(start_resno, end_resno + 1):
name = coot.residue_name_py(imol, ref_chain, resno, "")
if name:
one_letter = {'GLY': 'G', 'ALA': 'A', 'VAL': 'V', 'LEU': 'L',
'ILE': 'I', 'PRO': 'P', 'PHE': 'F', 'TYR': 'Y',
'TRP': 'W', 'SER': 'S', 'THR': 'T', 'CYS': 'C',
'MET': 'M', 'ASN': 'N', 'GLN': 'Q', 'ASP': 'D',
'GLU': 'E', 'LYS': 'K', 'ARG': 'R', 'HIS': 'H'}
ref_seq += one_letter.get(name, 'X')
print(f"Reference sequence from {ref_chain}: {ref_seq}")
# Find the last existing residue in the target chain: walk forward from the
# residue before the gap while the next residue is present
# (residue_name_py() returns False for a missing residue)
last_resno = start_resno - 1
while coot.residue_name_py(imol, target_chain, last_resno + 1, ""):
last_resno += 1
# Extend chain
for i in range(end_resno - last_resno):
current = last_resno + i
result = coot.add_terminal_residue(imol, target_chain, current, "auto", 1)
if result != 1:
print(f"Failed to add residue after {current}")
break
# Refine as we go
specs = [[target_chain, r, ""] for r in range(max(1, current-1), current+2)]
coot.refine_residues_py(imol, specs)
coot.accept_moving_atoms_py()
# Mutate to correct sequence
coot.mutate_an
Установить coot-ncs-reference-guidance в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл coot-ncs-reference-guidance?
NCS Reference Guidance
Как установить скилл coot-ncs-reference-guidance?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл coot-ncs-reference-guidance запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic