coot-validation
FreeNo executable scriptsNot checkedComprehensive structure validation combining model-to-map analysis and unmodeled density detection
About this skill
Coot Structure Validation Best Practices
Overview
When performing structure validation in Coot with both a model and a map, you need to analyze the structure from three complementary perspectives:
- Model-to-Map Validation: How well does the existing model fit the density?
- Map-to-Model Validation: Where is there significant density that is NOT explained by the model?
- Atom Overlap Validation: Are there steric clashes between atoms in the model?
All three perspectives are essential for comprehensive validation.
The Three Types of Validation
Model-to-Map: Finding Problems in Your Model
These functions analyze how well your current model fits the density. They lead you to places in the model that need attention:
- Poor density correlation
- Ramachandran outliers
- Rotamer outliers
- Geometry violations
Understanding Rotamer Validation: Two Different Scores
CRITICAL: rotamer_graphs_py() and score_rotamers_py() report different things
There are two functions that report rotamer information, and they measure fundamentally different aspects:
1. rotamer_graphs_py(imol) - Continuous Probability Density
Returns the probability density at the exact chi angles of the current conformation.
- Measures: "How likely is THIS specific chi1, chi2, chi3... combination?"
- Scale: 0-100%, where 100% = peak of the probability distribution
- Use for: Primary validation metric - this is what you should check
rotamers = coot.rotamer_graphs_py(0)
# Returns: [[chain_id, resno, ins_code, score_percentage, resname], ...]
# score_percentage is the continuous probability density at the actual chi angles
Interpretation guidelines:
- > 50%: Excellent - in high-density region
- 20-50%: Good - acceptable conformation
- 5-20%: Marginal - check density fit carefully
- < 5%: Poor - likely wrong (but check density!)
- < 1%: Very poor - almost certainly wrong
2. score_rotamers_py(...) - Discrete Bin Probabilities
Returns the discrete rotamer library showing what % of structures have each named rotamer.
- Measures: "How common is rotamer 'm-85' vs 't80' vs 'p90' across all proteins?"
- Scale: Probabilities sum to ~100% across all discrete bins
- Use for: Understanding alternatives - what other conformations exist?
rotamers = coot.score_rotamers_py(0, "A", 42, "", "", 1, 1, 0.001)
# Returns: [[name, probability, density_score, atom_list, richardson_score], ...]
# probability is the discrete bin frequency (e.g., m-85 appears in 43% of structures)
Why the scores differ:
- Discrete bins: "43% of TYR have m-85 rotamer" (which bin?)
- Continuous density: "83% probability at chi1=-62.3°, chi2=-85.1°" (exact angles)
- The continuous score can exceed discrete bin probabilities!
Rotamer Complexity and Expected Scores
Number of chi angles determines score expectations:
| Residue Type | Chi Angles | Typical # Rotamers | Best Rotamer % | Good Score |
|---|---|---|---|---|
| VAL, THR, SER | 1 | 3 | 70-75% | > 40% |
| PHE, TYR, ASP, ASN | 2 | 4-9 | 35-45% | > 20% |
| GLU, GLN, MET, ILE, LEU | 3 | 9-15 | 20-35% | > 10% |
| LYS, ARG | 4 | 30-35 | 9-10% | > 5% |
Key insight: More chi angles = more rotamers = lower individual probabilities
Examples from validation:
- LEU (3 chi): Best possible = 59%, so 30% is good, 5% is poor
- ARG (4 chi): Best possible = 9%, so 5% is good, 0.5% is poor
- VAL (1 chi): Best possible = 73%, so 40% is good, 5% is terrible
Proper Rotamer Validation Workflow
DON'T: Use arbitrary cutoffs like "< 10% is bad"
DO: Use context-aware validation:
# Step 1: Get current rotamer scores
rotamers = coot.rotamer_graphs_py(0)
# Step 2: For flagged residues, get alternatives
for chain, resno, inscode, score, resname in rotamers:
if score < 20: # Preliminary flag
# Get all possible rotamers to understand context
alternatives = coot.score_rotamers_py(0, chain, resno, "", "", 1, 1, 0.001)
if len(alternatives) == 0:
continue # GLY, ALA - no rotamers
# Sort by density fit
sorted_alts = sorted(alternatives, key=lambda x: x[2], reverse=True)
best_density = sorted_alts[0][2]
current_density = sorted_alts[0][2] # Approximate
# Check how many rotamers exist
n_rotamers = len(alternatives)
# Decision logic
if n_rotamers < 5 and score < 10:
# Few rotamers (VAL, PHE, etc.) and low score = likely wrong
print(f"PROBLEM: {chain}/{resno} {resname}: {score:.1f}% (few alternatives)")
elif n_rotamers > 20 and score < 2:
# Many rotamers (LYS, ARG) and very low score = likely wrong
print(f"PROBLEM: {chain}/{resno} {resname}: {score:.1f}% (many alternatives)")
elif best_density - current_density > 3.0:
Install coot-validation in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the coot-validation skill do?
Comprehensive structure validation combining model-to-map analysis and unmodeled density detection
How do I install the coot-validation skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the coot-validation skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic