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 enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionInformation about the individual atoms.double[]coordinates of all the atoms: x1, y1, z1, x2, ...intIndex of this residue in the molecule it's inbooleanbooleanThe 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 TypeMethodDescriptionvoidbooleanassignTemplate(ResidueTemplateLibrary templateLib) booleanassignTemplate(ResidueTemplateLibrary templateLib, Residue.TemplateMatchingMethod method) booleanassignTemplate(List<ResidueTemplate> templCandidates, ForcefieldParams ffParams) voidassignTemplateSimple(ResidueTemplateLibrary templateLib) booleanassignTemplateSimple(ResidueTemplateLibrary templateLib, String type) A much simpler template assigner that works only with atom names.double[][]voidvoidvoidcopyIntraBondsFrom(Residue other) An optimized copy method (profiling shows the usual constructors are a bit slow)voiddoubledistanceTo(Residue res2) equivalentInMolec(ArrayList<Residue> resList, Molecule mol) double[][]estBondDistanceMatrix(ForcefieldParams ffParams) getAtomByName(String name) getAtomByNameOrThrow(String name) intchardouble[]doublegetDihedralAngle(int i) double[]boolean[][]intgetType()booleanisBondedTo(Residue res2) voidAssign all the bonds between atoms in this residue, based on the templatevoidvoidvoidsetCoordsByAtomName(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
-