Class MTChain holds three lists of residues (3.6): amino and nucleic acid residues (corresponding to ATOM entries in PDB files), heterogeneous groups (corresponding to HETATM entries in PDB files) and solvent residues (named HETATM residues with SOL, DIS, HOH).
The PDB file format indicates, that modified residues as stated in MODRES entries, have to be within the sequence of ATOM entries but marked as HETATM. We do respect this format decision on loading and writing PDB formatted files but treat this modified residues as normal residues in the chain's list of residues and mark them as being modified, which can be queried by the method isModified on the residue (3.6). Thus querying a chain's list of residues (not heterogens) returns also the modified residues.
Methods:
| * naming | |
| -(char)code |
|
| -(NSNumber*)numberCode |
|
| -(NSString*)name |
|
| -(NSString*)description |
|
| -(NSString*)fullPDBCode |
|
| * query and manipulation | |
| -(NSString*)compound |
|
| -(NSString*)eccode |
|
| -(NSString*)source |
|
| -(MTStructure*)structure |
|
| -(id)transformBy: (MTMatrix53*)m |
|
| -(id)rotateBy: (MTMatrix44*)m |
|
| -(id)translateBy: (MTCoordinates*)v |
|
| * enumerator over residues, heterogens, solvent, respectively | |
| -(NSEnumerator*)allResidues |
|
| -(NSEnumerator*)allHeterogens |
|
| -(NSEnumerator*)allSolvent |
|
| * count of residues, heterogens, solvent, respectively | |
| -(int)countResidues |
|
| -(int)countHeterogens |
|
| -(int)countSolvent |
|
| -(int)countStandardAminoAcids |
|
| * access a residue, heterogen, solvent, respectively, for the given identifying number | |
| -(MTResidue*)getResidue: (NSString*)nr |
|
| -(MTResidue*)getHeterogen: (NSString*)nr |
|
| -(MTResidue*)getSolvent: (NSString*)nr |
|
| * add a residue, heterogen, solvent, respectively, to this chain | |
| -(id)addResidue: (MTResidue*)res |
|
| -(id)addHeterogen: (MTResidue*)het | adds a new heterogen ( 3.6) to this chain |
| -(id)addSolvent: (MTResidue*)sol |
|
| -(void)removeResidue: (MTResidue*)p_res |
|
| -(NSString*)get3DSequence |
|
| -(NSString*)getSequence |
|
| -(NSString*)getSEQRES |
|
| -(void)prepareResidueHash: (float)gridsize |
|
| -(NSArray*)findResiduesCloseTo: (MTCoordinates*)p_coords |
|
moltalk@moltalk.org version of this document: V3.0