Class MTChain

Inherits from:
NSObject
Declared in:
../libmoltalk/MTChain.oh

Class Hierarchy

    NSObject
      |
      +---MTChain

Last modified:
16-May-2006 (../libmoltalk/MTChain.m)

Instance Variables

protected NSString *source
protected NSString *compound
protected NSString *eccode
protected NSString *seqres
protected char code
protected MTStructure *strx
protected NSMutableDictionary *solventKeys
protected NSMutableArray *solvent
protected NSMutableDictionary *heterogenKeys
protected NSMutableArray *heterogens
protected NSMutableDictionary *residueKeys
protected NSMutableArray *residues
protected NSMutableDictionary *residuehash
protected unsigned int hashingbits
protected double hash_value_offset

Method Index

Methods

-(id)addHeterogen:(MTResidue*)het

add hetero group

-(id)addResidue:(MTResidue*)res

add residue

-(id)addSolvent:(MTResidue*)sol

add solvent

-(NSEnumerator*)allHeterogens

return enumerator over all hetero groups

-(NSEnumerator*)allResidues

return enumerator over all residues

-(NSEnumerator*)allSolvent

return enumerator over all solvent

-(char)code

return character code of this chain

-(NSNumber*)codeNumber

return numerical character code of this chain

-(NSString*)compound

return compound name

-(int)countHeterogens

count hetero groups

-(int)countResidues

count residues

-(int)countSolvent

count solvent

-(int)countStandardAminoAcids

count residues which are of the 20 standard amino acids

-(MTChain*)deepCopy

complex utilities

-(MTChain*)deepCopyCA

-(NSString*)description

see -name

-(NSString*)eccode

return E.C. code (if possible)

-(NSArray*)findResiduesCloseTo:(MTCoordinates*)p_coords

returns a list of residues which are close to the given coordinates
must compute the hash table first using: -prepareResidueHash:

-(NSString*)fullPDBCode

return concatenation of the structure's code and this one's code

-(NSString*)get3DSequence

derive sequence of present standard amino acids

-(MTResidue*)getHeterogen:(NSString*)nr

find hetero for key

-(MTResidue*)getResidue:(NSString*)nr

find residue for key

-(NSString*)getSEQRES

return parsed SEQRES sequence

-(NSString*)getSequence

derive amino acid sequence from coordinates. wherever there is a gap in the mainchain and in the number of the residues, insert as many neutral elements 'X' as necessary.

-(MTResidue*)getSolvent:(NSString*)nr

find solvent for key

-(NSNumber*)mkCoordinatesHashX:(double)p_x Y:(double)p_y Z:(double)p_z

compute hash key value

-(NSString*)name

return code of this chain as string

-(id)orderResidues

-(void)prepareResidueHash:(float)gridsize

computes the hash of all residues

-(void)removeResidue:(MTResidue*)p_res

remove residue (either real residue, or hetero group, or solvent)

-(id)rotateBy:(MTMatrix44*)m

apply rotation to this chain

-(NSArray*)selectResiduesCloseTo:(MTChain*)other maxDistance:(float)maxdist

select all residues in both chains which are at most maxdist separated, return in selections

-(NSString*)source

return source organism

-(MTStructure*)structure

give access to the Structure we are part of

-(id)transformBy:(MTMatrix53*)m

apply transformation matrix to this chain

-(id)translateBy:(MTCoordinates*)v

apply translation to this chain


generated 07-Jun-2006 by ObjcDoc 3.0.0