Package ffx.algorithms.misc
Class GenerateRotamers
java.lang.Object
ffx.algorithms.misc.GenerateRotamers
The GenerateRotamers class helps generate a rotamer library (particularly for nonstandard amino
acids) for a Residue.
- Author:
- Jacob M. Litman, Michael J. Schnieders
-
Constructor Summary
ConstructorsConstructorDescriptionGenerateRotamers(MolecularAssembly molecularAssembly, Potential potential, Residue residue, File file, int nChi, AlgorithmListener listener) Intended to create rotamer sets for nonstandard amino acids.GenerateRotamers(MolecularAssembly molecularAssembly, Potential potential, Residue residue, File file, int nChi, AlgorithmListener listener, RotamerLibrary library) Intended to create rotamer sets for nonstandard amino acids. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyAndSaveTorsions(String[] torSets) Accessory method for more simplistic saving of specific torsion states.voidSets a standard amino acid to be the baseline for rotamer generation.voidsetDepth(int start, int end) Set which torsions to work on.voidsetElectrostatics(String electrostatics) Inactivates electrostatics for atom sets defined by 'start-end,start-end,...'.voidsetInactiveAtoms(String iatoms) Inactivates atom sets defined by 'start-end,start-end,...'.voidsetIncrement(double incr) Sets the angle to change torsions by.voidsetPrint(boolean print) Sets algorithm to log all torsions/energies (not just to file).voidsetSearchWidth(double width) Sets the width around each torsion to search (+/-, so 10 degree width will search a 20 degree arc).voidNull file indicates to not write a video.voidMain driver method; spins torsions, evaluates energy, and prints to file.
-
Constructor Details
-
GenerateRotamers
public GenerateRotamers(MolecularAssembly molecularAssembly, Potential potential, Residue residue, File file, int nChi, AlgorithmListener listener) Intended to create rotamer sets for nonstandard amino acids.- Parameters:
molecularAssembly- aMolecularAssemblyobject.potential- aPotentialobject.residue- aResidueobject.file- Output filenChi- Number of rotameric torsions in the residuelistener- aAlgorithmListenerobject.
-
GenerateRotamers
public GenerateRotamers(MolecularAssembly molecularAssembly, Potential potential, Residue residue, File file, int nChi, AlgorithmListener listener, RotamerLibrary library) Intended to create rotamer sets for nonstandard amino acids.- Parameters:
molecularAssembly- aMolecularAssemblyobject.potential- aPotentialobject.residue- aResidueobject.file- Output filenChi- Number of rotameric torsions in the residuelistener- aAlgorithmListenerobject.library- Rotamer library to use
-
-
Method Details
-
applyAndSaveTorsions
Accessory method for more simplistic saving of specific torsion states.- Parameters:
torSets- an array ofStringobjects.
-
setBaselineAARes
Sets a standard amino acid to be the baseline for rotamer generation. For example, use TYR as a baseline for phospho-tyrosine.- Parameters:
aa3- aAminoAcidUtils.AminoAcid3object.
-
setDepth
public void setDepth(int start, int end) Set which torsions to work on. Negative end values set the final depth to be the total number of torsions.- Parameters:
start- The first torsion to work on.end- The last torsion to work on.
-
setElectrostatics
Inactivates electrostatics for atom sets defined by 'start-end,start-end,...'.- Parameters:
electrostatics- Input string
-
setInactiveAtoms
Inactivates atom sets defined by 'start-end,start-end,...'.- Parameters:
iatoms- Input string
-
setIncrement
public void setIncrement(double incr) Sets the angle to change torsions by.- Parameters:
incr- a double.
-
setPrint
public void setPrint(boolean print) Sets algorithm to log all torsions/energies (not just to file).- Parameters:
print- a boolean.
-
setSearchWidth
public void setSearchWidth(double width) Sets the width around each torsion to search (+/-, so 10 degree width will search a 20 degree arc).- Parameters:
width- a double.
-
setVideo
Null file indicates to not write a video.- Parameters:
videoFile- Filename for video or null
-
tryRotamers
public void tryRotamers()Main driver method; spins torsions, evaluates energy, and prints to file.
-