Package edu.duke.cs.osprey.structure
Class Residue
java.lang.Object
edu.duke.cs.osprey.structure.Residue
- All Implemented Interfaces:
Serializable
A Residue is a piece of a molecular system that can mutate, take on RCs, etc.
and is the basic unit for energy calculations: energy is broken down to intra-residue energies,
pairwise interactions between residues, and maybe a few triples etc.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionInformation about the individual atoms.double[]
coordinates of all the atoms: x1, y1, z1, x2, ...int
Index of this residue in the molecule it's inboolean
boolean
The molecule the residue's inGives the name of the residue like "GLU" or "H2O" or whatever and any information about bonds, force-field, rotatable dihedrals, and rotamers Only assignment usingassignTemplate(ResidueTemplateLibrary)
, which will reorder atoms to match template. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
assignTemplate
(ResidueTemplateLibrary templateLib) boolean
assignTemplate
(ResidueTemplateLibrary templateLib, Residue.TemplateMatchingMethod method) boolean
assignTemplate
(List<ResidueTemplate> templCandidates, ForcefieldParams ffParams) void
assignTemplateSimple
(ResidueTemplateLibrary templateLib) boolean
assignTemplateSimple
(ResidueTemplateLibrary templateLib, String type) A much simpler template assigner that works only with atom names.double[][]
void
void
void
copyIntraBondsFrom
(Residue other) An optimized copy method (profiling shows the usual constructors are a bit slow)void
double
distanceTo
(Residue res2) equivalentInMolec
(ArrayList<Residue> resList, Molecule mol) double[][]
estBondDistanceMatrix
(ForcefieldParams ffParams) getAtomByName
(String name) getAtomByNameOrThrow
(String name) int
char
double[]
double
getDihedralAngle
(int i) double[]
boolean[][]
int
getType()
boolean
isBondedTo
(Residue res2) void
Assign all the bonds between atoms in this residue, based on the templatevoid
void
void
setCoordsByAtomName
(String name, double[] atomCoords)
-
Field Details
-
fullName
-
indexInMolecule
public int indexInMoleculeIndex of this residue in the molecule it's in -
molec
The molecule the residue's in -
template
Gives the name of the residue like "GLU" or "H2O" or whatever and any information about bonds, force-field, rotatable dihedrals, and rotamers Only assignment usingassignTemplate(ResidueTemplateLibrary)
, which will reorder atoms to match template. -
atoms
Information about the individual atoms. When assigning the template we will copy this from the template. -
coords
public double[] coordscoordinates of all the atoms: x1, y1, z1, x2, ... -
intraResBondsMarked
public boolean intraResBondsMarked -
interResBondsMarked
public boolean interResBondsMarked -
confProblems
-
pucker
-
secondaryStruct
-
-
Constructor Details
-
Residue
-
Residue
-
Residue
-
-
Method Details
-
copyAtoms
-
copyToMol
An optimized copy method (profiling shows the usual constructors are a bit slow) -
getPDBResNumber
-
getChainId
public char getChainId() -
getType
-
assignTemplate
public boolean assignTemplate(ResidueTemplateLibrary templateLib, Residue.TemplateMatchingMethod method) -
assignTemplate
-
assignTemplate
-
assignTemplateSimple
-
assignTemplateSimple
A much simpler template assigner that works only with atom names. Doesn't require coords to match templates, and hence is completely immune to bugs caused by mis-matched atoms, say, due to issues with stereochemistries. Important for accurately assigning templates to structures in the top8000 dataset. -
markIntraResBondsByTemplate
public void markIntraResBondsByTemplate()Assign all the bonds between atoms in this residue, based on the template -
reconnectInterResBonds
public void reconnectInterResBonds() -
getIntraResBondMatrix
public boolean[][] getIntraResBondMatrix() -
copyIntraBondsFrom
-
checkTemplateAtomNames
public void checkTemplateAtomNames() -
checkBonds
public void checkBonds() -
getAtomByName
-
getAtomByNameOrThrow
-
getAtomIndexByName
-
getCoordsByAtomName
-
setCoordsByAtomName
-
distanceTo
-
isBondedTo
-
atomDistanceMatrix
public double[][] atomDistanceMatrix() -
estBondDistanceMatrix
-
removeInterResBonds
public void removeInterResBonds() -
getNumDihedrals
public int getNumDihedrals() -
getDihedralAngle
public double getDihedralAngle(int i) -
getDihedralAngles
public double[] getDihedralAngles() -
equivalentInMolec
-
equivalentInMolec
-
deleteHydrogens
public void deleteHydrogens() -
addAtom
-