Class MTResidue

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

Class Hierarchy

    NSObject
      |
      +---MTResidue

Class Description

Groups of Atom are assembled in a Residue.

Last modified:
16-May-2006 (../libmoltalk/MTResidue.oh)

Instance Variables

protected NSString *name
protected NSNumber *number
protected char subcode
protected NSMutableArray *atomarr
protected MTAtom *t_ca
protected MTChain *chain
protected BOOL verified
protected BOOL atomsComplete
protected NSString *modname
our name as a modified residue
protected NSString *moddesc
description of modification
protected NSString *segid
segment identifier
protected int seqnum

Method Index

Methods

+(NSString*)computeKeyFromInt:(int)p_number subcode:(char)p_subcode

convenience function to compute a residue's key from its number and subcode

+(NSString*)translate3LetterTo1LetterCode: (NSString*)c3letter

convenience function to translate 3-letter codes to 1-letter

-(id)addAtom:(MTAtom*)atom

add atom to this residue

-(NSEnumerator*)allAtoms

return enumerator over all atoms

-(MTChain*)chain

return the chain this residue belongs to

-(NSComparisonResult)compare: (id)other

-(id)copy

-(NSString*)description

returns a string describing this residue (=concatenation of name and number)

-(double)distanceCATo:(MTResidue*)r2

calculate and return distance of this residue's CA atom to the reference's CA atom

-(MTAtom*)getAtomWithInt:(unsigned int)p_number

-(MTAtom*)getAtomWithName: (NSString*)p_name

return a named atom in this residue

-(MTAtom*)getAtomWithNumber:(NSNumber*)p_number

return an atom in this residue with the given number

-(MTAtom*)getCA

return atom with name @"CA"

-(BOOL)haveAtomsPresent

return YES if this residue has all (backbone + sidechain) atoms present

-(BOOL)isModified

returns YES if this residue is a modified one

-(BOOL)isNucleicAcid

return YES if this residue is one of the "known" nucleic acids

-(BOOL)isStandardAminoAcid

return YES if this residue is one of the 20 standard amino acids

-(NSString*)key

returns a key for this residue (=concatenation of number and subcode)

-(NSString*)moddescription

return description of modification of this residue

-(NSString*)modname

return this residue's name (modified, original standard form)

-(id)mutateTo: (MTResidue*)p_res

mutate this residue's side-chain to the one of the other

-(NSString*)name

return this residue's name

-(MTResidue*)nextResidue

follow backbone connectivity and find next residue at carboxyl end

-(NSNumber*)number

return this residue's number

-(NSString*)oneLetterCode

return the one letter code for this type of residue

-(MTResidue*)previousResidue

at amino group or 5prime

-(id)removeAtom:(MTAtom*)atom

remove atom from this residue

-(id)rotateBy: (MTMatrix44*)m

rotate this residue by the given matrix

-(NSString*)segid

return segment identifier

-(int)sequenceNumber

-(char)subcode

return this residue's subcode

-(id)transformBy: (MTMatrix53*)m

transform this residue by the given matrix

-(id)translateBy: (MTCoordinates*)v

translate this residue by the given vector


generated 07-Jun-2006 by ObjcDoc 3.0.0