|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectchemaxon.marvin.modules.MacroMolecule.Component
chemaxon.marvin.modules.MacroMolecule.Polymer
The Polymer class represents nucleic acid and amino acid
chains. The sequence is stored along with atom coordinates. Missing
residues as well as residues with the same residue number but different
insertion code are represented.
The entire chain is not represented as one Molecule
instance for the sake of speed and small storage space usage.
| Nested Class Summary | |
class |
MacroMolecule.Polymer.AtomIterator
Enumerates all atoms of a polymer chain. |
class |
MacroMolecule.Polymer.AtomProperty
Provides polymorphic access to atom properties of polymer atoms. |
class |
MacroMolecule.Polymer.BondIterator
Iterates all bonds of the pylomer. |
class |
MacroMolecule.Polymer.Model
|
| Field Summary | |
protected char |
currentICode
|
protected int |
currentModelSerial
these are used in build-up phase |
protected int |
currentResidueIndex
|
protected int |
currentResidueType
|
protected int |
currentSeqNo
|
protected int |
currentSequenceIndex
|
protected char[] |
iCode
insertion code of residues |
protected MacroMolecule.Polymer.Model[] |
models
|
protected int |
molId
|
protected int[] |
residueOffset
index of the first atom of the residue in the atom coordinate arrays |
protected int[] |
residues
residue type ids as defined by the ATOM/HETATOM records |
protected int |
seqBegin
|
protected int |
seqEnd
|
protected int[] |
seqNo
sequence number of residues |
protected int[] |
sequence
residue type ids as defined in the SEQRES records |
| Fields inherited from class chemaxon.marvin.modules.MacroMolecule.Component |
atomCount, bondCount, chainId, definedAtomCount, definedHCount, hCount, name |
| Constructor Summary | |
MacroMolecule.Polymer(char chainId,
int modelCount,
int residueCount,
int atomCount)
Creates an amino acid or nucleic acid polymer with the given name and chain identifier. |
|
| Method Summary | |
void |
addAtom(int serial,
int residueTypeId,
int residueAtomIndex,
int resSeqNo,
char iCode,
float x,
float y,
float z,
float bFactor)
Adds a residue atom to the chain. |
void |
addModelAtom(int modelSerial,
int residueTypeId,
int residueAtomIndex,
int resSeqNo,
char iCode,
float x,
float y,
float z,
float bFactor)
|
void |
addModRes(int residueTypeId,
int residueAtomCount,
int resSeqNo)
|
void |
addSeqRange(int seqBegin,
int seqEnd)
Specifies residue sequence number range within which residue sequence numbers in the ATOM records should fall. |
void |
addSequenceResidue(int residueTypeId)
Adds a new residue to the current chain. |
MoleculeIterators.AtomIteratorInterface |
getAtomIterator(boolean enumerateHydrogens)
Gets a new iterator that can enumerate all atoms of the Component. |
MoleculeIterators.AtomIteratorInterface |
getAtomIterator(int fromResidue,
int toResidue)
|
java.lang.String |
getAtomLabel(int atomIndex)
Gets the label of the specified atom. |
MoleculeIterators.AtomPropertyInterface |
getAtomProperty()
Gets a new AtomPropertyInterface that can retrieve
various atom related properties. |
MoleculeIterators.BondIteratorInterface |
getBondIterator(boolean enumerateHydrogens)
Gets a new iterator that can enumerate all bonds of the Component. |
int |
getResidueCount()
Gets the nuber of residues defined by ATOM/HETATM records in the current chain. |
int |
getSequenceResidueCount()
Gets the nuber of residues defined by SEQRES records in the current chain. |
float |
getX(int index)
Gets the first coordinate of the spacified residue atom. |
float |
getY(int index)
Gets the second coordinate of the spacified residue atom. |
float |
getZ(int index)
Gets the third coordinate of the spacified residue atom. |
boolean |
hasChain(char chainId)
Checks if this component represents the specified chain. |
void |
setSequenceResidueCount(int residueCount)
Specifies the total number of residues in the given chain. |
| Methods inherited from class chemaxon.marvin.modules.MacroMolecule.Component |
addToMolecule, containsAtom, getAtomCount, getChainId, getDefinedAtomCount, getHydrogenCount, getICode, getName, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int molId
protected int seqBegin
protected int seqEnd
protected int[] sequence
protected int[] residues
protected int[] seqNo
protected char[] iCode
protected int[] residueOffset
protected MacroMolecule.Polymer.Model[] models
protected int currentModelSerial
protected int currentSequenceIndex
protected int currentResidueIndex
protected int currentResidueType
protected int currentSeqNo
protected char currentICode
| Constructor Detail |
public MacroMolecule.Polymer(char chainId,
int modelCount,
int residueCount,
int atomCount)
chainId - chain identifierresidueCount - number of residues constituting the polymer chainatomCount - number of atoms in the polymer| Method Detail |
public void setSequenceResidueCount(int residueCount)
residueCount - number of residues in the current component
public void addSeqRange(int seqBegin,
int seqEnd)
seqBegin - smallest sequence number on this chainseqEnd - largest sequence number on this chainpublic void addSequenceResidue(int residueTypeId)
residueTypeId - internal index of type of the residue (as
determined by PDBResidues)
public void addModRes(int residueTypeId,
int residueAtomCount,
int resSeqNo)
public void addAtom(int serial,
int residueTypeId,
int residueAtomIndex,
int resSeqNo,
char iCode,
float x,
float y,
float z,
float bFactor)
throws MacroMolecule.BadMoleculeException
serial - serial atom index in PDBresidueTypeId - internal index of type of the residueresidueAtomIndex - internal index of the atom in the residueresSeqNo - sequence number as specified in the PDB fileiCode - insertion code as specified in the PDB filex - atom coordinate xy - atom coordinate yz - atom coordinate z
BadMoleculeException - not thrown, though it should be implemented later
MacroMolecule.BadMoleculeException
public void addModelAtom(int modelSerial,
int residueTypeId,
int residueAtomIndex,
int resSeqNo,
char iCode,
float x,
float y,
float z,
float bFactor)
throws MacroMolecule.BadMoleculeException
MacroMolecule.BadMoleculeExceptionpublic boolean hasChain(char chainId)
chainId - one letter chain identifier
Componentpublic int getSequenceResidueCount()
public int getResidueCount()
public java.lang.String getAtomLabel(int atomIndex)
MacroMolecule.Component
getAtomLabel in class MacroMolecule.ComponentatomIndex - index of the atom quiried
public float getX(int index)
index - internal atom index as returned by an AtomIteratorInterface
public float getY(int index)
index - internal atom index as returned by an AtomIteratorInterface
public float getZ(int index)
index - internal atom index as returned by an AtomIteratorInterface
public MoleculeIterators.AtomIteratorInterface getAtomIterator(boolean enumerateHydrogens)
MacroMolecule.ComponentComponent.
getAtomIterator in class MacroMolecule.ComponentenumerateHydrogens - indicates if hydrogen atoms are enumerated or not
public MoleculeIterators.AtomIteratorInterface getAtomIterator(int fromResidue,
int toResidue)
public MoleculeIterators.BondIteratorInterface getBondIterator(boolean enumerateHydrogens)
MacroMolecule.ComponentComponent.
getBondIterator in class MacroMolecule.ComponentenumerateHydrogens - indicates if bonds to hydrogen atoms are enumerated or not
public MoleculeIterators.AtomPropertyInterface getAtomProperty()
MacroMolecule.ComponentAtomPropertyInterface that can retrieve
various atom related properties.
getAtomProperty in class MacroMolecule.Component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||