qp.structure.missing¶
Build missing residues and atoms using Modeller
Usage:
>>> from qp.structure import missing
>>> pdb = "1lnh"
# Parse PDB file, filling in missing residues
>>> residues = missing.get_residues("path/to/PDB.pdb")
# Write alignment file
>>> missing.write_alignment(
... residues,
... pdb,
... "path/to/PDB.pdb",
... "path/to/ALI.ali"
... )
>P1;1lnh (template from original PDB file)
structureX:1lnh.pdb:FIRST:@ END::::::
--------GHKIKGTVVLMRKNVLDVNSVTSV-------------TLDTLTAFLGRSVSLQLISAT...
>P1;1lnh_fill (full sequence)
sequence:::::::::
MLGGLLHRGHKIKGTVVLMRKNVLDVNSVTSVGGIIGQGLDLVGSTLDTLTAFLGRSVSLQLISAT...
# Run Modeller with the given alignment file
>>> missing.build_model(
... residues,
... pdb,
... "path/to/PDB.pdb",
... "path/to/ALI.ali",
... "path/to/OUT.pdb"
... )
Optimization level (optimize argument in missing.build_model):
No optimization. Missing coordinates filled in using Modeller’s topology library.
Optimize missing residues and residues with missing atoms only. (Default)
Optimize the entire structure. Hetero atoms are included but treated as rigid bodies.
Note
Non-standard residues (substrates, cofactors, and other HETATM entries) are preserved as rigid bodies by Modeller and any missing atoms in these residues will not be modeled. A warning is emitted listing the non-standard residues encountered during parsing.
Functions
Run Modeller to build missing residues and atoms. |
|
Remove unresolve amino acids from the N- and C-termini. |
|
Access a look up table of standard and non-standard amino acids. |
|
Delete residues with clashes from a PDB file and rewrite the PDB file. |
|
Handles insertion codes from Modeller. |
|
Get the order of chains in a PDB file. |
|
Extract residues from a PDB file, including missing residue annotations. |
|
Transfer residue numbers and chain IDs from template to built model. |
|
Write a Modeller alignment file for filling missing residues. |