|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jgromacs.data.Structure
public class Structure
Objects of this class represent a single structure
Constructor Summary | |
---|---|
Structure()
Constructs a new Structure object |
|
Structure(java.lang.String name)
Constructs a new Structure object of given name |
Method Summary | |
---|---|
void |
addAtomToResidue(int i,
Atom atom)
Adds the given atom to residue #i |
void |
addAtomToResidueOfIndex(int index,
Atom atom)
Adds the given atom to the residue of given index |
void |
addResidue(Residue residue)
Adds a new residue to the structure |
java.lang.Object |
clone()
Returns an identical Structure object |
java.util.ArrayList<java.lang.Integer> |
convertIndicesToArrayListIndices(IndexSet indices)
Converts atomic indices into list indices |
boolean |
equals(java.lang.Object other)
Returns true if the two structures are identical |
PointList |
getAllAtomCoordinates()
Returns the coordinates of all atoms |
IndexSet |
getAlphaCarbonIndexSet()
Returns the index set of alpha carbon atoms |
Atom |
getAtom(int i)
Returns atom #i of the structure |
Atom |
getAtomByIndex(int index)
Returns the atom of given index |
Atom |
getAtomInResidueOfIndex(int residueindex,
int i)
Returns atom #i of the residue of given index |
Atom |
getAtomInResidueOfIndex(int residueindex,
java.lang.String chainID,
int i)
Returns atom #i of the residue of given index and chain ID |
IndexSet |
getBackboneIndexSet()
Returns the index set of backbone atoms |
java.util.ArrayList<java.lang.String> |
getChainIDs()
Returns the list of chain IDs in the structure |
Structure[] |
getChains()
Returns all chains in an array of Structure objects |
IndexSetList |
getDefaultIndexSetList()
Returns the list of default index sets |
IndexSet |
getHeavyProteinIndexSet()
Returns the index set of protein atoms except of hydrogen atoms |
IndexSet |
getIndexSetOfChainID(java.lang.String chainID)
Returns the index set of atoms of a given chain ID |
IndexSet |
getMainChainIndexSet()
Returns the index set of main chain atoms |
IndexSet |
getMainChainPlusCbIndexSet()
Returns the index set of main chain plus beta carbon atoms |
IndexSet |
getMainChainPlusHIndexSet()
Returns the index set of main chain plus hydrogen atoms |
java.lang.String |
getName()
Returns the name of structure |
IndexSet |
getNonProteinIndexSet()
Returns the index set of non-protein atoms |
int |
getNumberOfAtoms()
Returns the number of atoms in the structure |
int |
getNumberOfChains()
Returns the number of chains in the structure |
int |
getNumberOfResidues()
Returns the number of residues in the structure |
IndexSet |
getProteinIndexSet()
Returns the index set of protein atoms |
Residue |
getResidue(int i)
Returns residue #i of the structure |
Residue |
getResidueByIndex(int index)
Returns the residue of given index |
Residue |
getResidueByIndex(int index,
java.lang.String chainID)
Returns the residue of given index and given chain ID |
java.util.ArrayList<Residue> |
getResiduesAsArrayList()
Returns residues as an ArrayList object |
Sequence |
getSequence()
Returns the amino acid sequence of the structure |
IndexSet |
getSideChainIndexSet()
Returns the index set of side chain atoms |
IndexSet |
getSideChainMinusHIndexSet()
Returns the index set of side chain atoms except of hydrogen atoms |
Structure |
getSubStructure(IndexSet indices)
Returns the substructure defined by the given index set |
IndexSet |
getSystemIndexSet()
Returns the index set of all atoms in the system |
IndexSet |
getWaterIndexSet()
Returns the index set of water atoms |
int |
hashCode()
Returns hash code |
java.util.ArrayList<java.lang.Integer> |
mapAtomIndicesToResidueIndices(IndexSet indices)
Maps atomic indices to residue indices (i.e. |
IndexSet |
mapResidueIndicesToAtomIndices(java.util.ArrayList<java.lang.Integer> indices)
Maps residue indices to atomic indices (i.e. |
void |
removeAtom(Atom atom)
Removes the given atom from the structure |
void |
removeAtom(int i)
Removes atom #i from the structure |
void |
removeAtomByIndex(int index)
Removes the atom of given index from the structure |
void |
removeResidue(int i)
Removes residue #i from the structure |
void |
removeResidue(Residue residue)
Removes a residue from the structure |
void |
setAllAtomCoordinates(PointList pointlist)
Sets the coordinates of all atoms |
void |
setAtomCoordinates(int i,
Point3D coordinates)
Sets the coordinates of atom #i |
void |
setAtomInResidue(int i,
int j,
Atom atom)
Replaces atom #j of residue #i with a new atom |
void |
setAtomInResidueOfIndex(int index,
int i,
Atom atom)
Replaces atom #i of the residue of given index with a new atom |
void |
setAtomOfIndexCoordinates(int index,
Point3D coordinates)
Sets the coordinates of atom of given index |
void |
setName(java.lang.String name)
Sets the name of structure |
void |
setResidue(int i,
Residue residue)
Replaces residue #i with a new residue |
java.lang.String |
toString()
Returns the String representation of structure |
java.lang.String |
toStringAsGRO()
Returns the String representation of structure in GRO format |
java.lang.String |
toStringAsPDB()
Returns the String representation of structure in PDB format |
java.lang.String |
toStringInfo()
Returns summary information about the structure |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Structure()
public Structure(java.lang.String name)
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- of structurepublic java.util.ArrayList<Residue> getResiduesAsArrayList()
public int getNumberOfResidues()
public int getNumberOfAtoms()
public int getNumberOfChains()
public java.util.ArrayList<java.lang.String> getChainIDs()
public Residue getResidue(int i)
public Residue getResidueByIndex(int index, java.lang.String chainID)
index
- index of residuechainID
- chain ID of residue
public Residue getResidueByIndex(int index)
index
- index of residue
public Atom getAtom(int i)
public Atom getAtomByIndex(int index)
index
- index of atom
public Atom getAtomInResidueOfIndex(int residueindex, java.lang.String chainID, int i)
residueindex
- index of residuechainID
- chain ID of residue
public Atom getAtomInResidueOfIndex(int residueindex, int i)
residueindex
- index of residue
public void addResidue(Residue residue)
residue
- new residuepublic void removeResidue(Residue residue)
residue
- the residue to be removedpublic void removeResidue(int i)
public void setResidue(int i, Residue residue)
residue
- new residuepublic void removeAtom(int i)
public void removeAtomByIndex(int index)
index
- index of atompublic void removeAtom(Atom atom)
atom
- the atom to be removedpublic void addAtomToResidue(int i, Atom atom)
atom
- new atompublic void addAtomToResidueOfIndex(int index, Atom atom)
index
- index of residueatom
- new atompublic void setAtomInResidue(int i, int j, Atom atom)
atom
- new atompublic void setAtomInResidueOfIndex(int index, int i, Atom atom)
index
- index of residueatom
- new atompublic IndexSet getSystemIndexSet()
public IndexSet getProteinIndexSet()
public IndexSet getHeavyProteinIndexSet()
public IndexSet getAlphaCarbonIndexSet()
public IndexSet getBackboneIndexSet()
public IndexSet getMainChainIndexSet()
public IndexSet getMainChainPlusCbIndexSet()
public IndexSet getMainChainPlusHIndexSet()
public IndexSet getSideChainIndexSet()
public IndexSet getSideChainMinusHIndexSet()
public IndexSet getNonProteinIndexSet()
public IndexSet getWaterIndexSet()
public IndexSetList getDefaultIndexSetList()
public IndexSet getIndexSetOfChainID(java.lang.String chainID)
chainID
- selected chain ID
public void setAtomCoordinates(int i, Point3D coordinates)
coordinates
- new atomic coordinatespublic void setAtomOfIndexCoordinates(int index, Point3D coordinates)
coordinates
- new atomic coordinatespublic void setAllAtomCoordinates(PointList pointlist)
pointlist
- list of new atomic coordinatespublic PointList getAllAtomCoordinates()
public Sequence getSequence()
public Structure[] getChains()
public Structure getSubStructure(IndexSet indices)
indices
- index set of substructure
public java.util.ArrayList<java.lang.Integer> convertIndicesToArrayListIndices(IndexSet indices)
indices
- set of atomic indices
public java.util.ArrayList<java.lang.Integer> mapAtomIndicesToResidueIndices(IndexSet indices)
indices
- set of atomic indices
public IndexSet mapResidueIndicesToAtomIndices(java.util.ArrayList<java.lang.Integer> indices)
indices
- ArrayList of residue indices
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringAsGRO()
public java.lang.String toStringAsPDB()
public java.lang.String toStringInfo()
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the other structurepublic int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |