PDB_Parser

rnamake.pdb_parser.parse(pdb_file)[source]

very minimalistc pdb parser, currently does not support multiple MODELS in NMR structures but works well for what I need at the moment will be expanded in future versions. Currently returns an array of Residue object this is because it will mostly be called in in Structure object. Also does not parse specified connectivity in CONECT statements. If one is interested in parsing into a Structure object, please use structure_from_pdb in the structure module.

Parameters:pdb_file (str) – The path to the PDB formatted file you wish to parse
Returns:List of residue.Residue objects
Examples:
>>>import rnamake.unittests.files
>>>residues = parse(rnamake.unittests.files.P4P6_PDB_PATH)
>>>len(residues)
157

#Not yet sorted into chains, residue 106 is the first in this chain
>>>residues[0]
<Residue('G250 chain A')>