Structural Bioinformatics
Use this sub-skill when the task involves macromolecular coordinate structures with Biopython's Bio.PDB: reading or writing structure files, navigating the SMCRA hierarchy, selecting atoms/residues/chains, handling alternate locations or point-mutant disorder, extracting polypeptides, computing contacts or geometry, or superimposing structures.
Route here for
- Parsing PDB, PDBx/mmCIF, BinaryCIF, PQR, and PDBML/XML coordinate files into
Structureobjects. - Choosing between
PDBParser,MMCIFParser,FastMMCIFParser,BinaryCIFParser,PDBMLParser,PDBIO, andMMCIFIO. - Traversing
Structure -> Model -> Chain -> Residue -> Atomobjects and usingSelection.unfold_entities. - Working with residue IDs, hetero residues, waters, insertion codes, atom IDs, altlocs, disordered atoms, and disordered residues.
- Extracting polypeptides and structure-derived sequences with
PPBuilderorCaPPBuilder. - Computing distances, angles, dihedrals, vectors, residue/atom neighborhoods, solvent-exposure-style quantities, or structure superpositions.
- Using
PDBListonly when an explicitly network-enabled task needs wwPDB downloads. - Understanding optional structural tools such as DSSP/mkdssp, NACCESS, MSMS-backed residue depth, PSEA, and related executable-dependent workflows.
Route elsewhere
- Sequence object construction,
SeqRecordinternals, annotations, feature locations, translation, and reverse-complement behavior: usesequence-objects-and-features. - General sequence/alignment file I/O through
SeqIO/AlignIO, including PDB-derived sequence formats such aspdb-atomorpdb-seqres: usefile-io-and-format-conversionunless the task needs coordinate objects. - BLAST/SearchIO semantics, pairwise sequence alignment, phylogenetic tree I/O, or external aligner orchestration: use
alignment-search-and-phylogeny. - Online biological database workflows, Entrez/KEGG/UniProt/ExPASy etiquette, and BioSQL databases: use
web-databases-and-biosql. - Protein structure prediction, docking, de novo design, force fields, or molecular dynamics setup: outside this Biopython repo skill except for simple coordinate parsing/selection utilities.
Operating references
- Start with
references/structure-workflows.mdfor parser choice, SMCRA traversal, writing/selecting, polypeptides, contacts, geometry, superposition, downloads, and optional tools. - Use
references/structure-api-reference.mdfor verified signatures, object relationships, entity levels, residue/atom ID conventions, and format limits. - Use
references/troubleshooting.mdfor parser warnings/errors, malformed coordinates, PQR charge/radius issues, mmCIF/PDB ID mismatches, BinaryCIF optional dependencies, writer limits,NeighborSearch,Superimposer,PDBList, and external-tool failures. - Run
scripts/pdb_structure_smoke.pyfor a safe offline sanity check ofPDBParser, SMCRA traversal, atom geometry,NeighborSearch, andPDBIOround-tripping on an embedded tiny PDB fixture.
Guardrails
- Prefer mmCIF/PDBx or BinaryCIF for modern, large, or metadata-heavy structure work; legacy PDB has chain, atom-serial, residue-number, and header limitations.
- Treat
PERMISSIVE=Trueas data-loss-tolerant parsing: warnings may mean atoms or residues were omitted. Use strict parsing when data integrity matters. - Always decide how to handle disordered atoms/residues before measuring distances, contacts, or superpositions.
- Match superposition atom lists by biological identity and order;
Superimposerminimizes RMSD for equal-length lists and mutates the moving atoms whenapplyis called. - Do not require downloads, external executables, original repository examples, or repository test data for normal runtime recipes in this sub-skill.
