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
ConstructorDescriptionGenerateRotamers
(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 TypeMethodDescriptionvoid
applyAndSaveTorsions
(String[] torSets) Accessory method for more simplistic saving of specific torsion states.void
Sets a standard amino acid to be the baseline for rotamer generation.void
setDepth
(int start, int end) Set which torsions to work on.void
setElectrostatics
(String electrostatics) Inactivates electrostatics for atom sets defined by 'start-end,start-end,...'.void
setInactiveAtoms
(String iatoms) Inactivates atom sets defined by 'start-end,start-end,...'.void
setIncrement
(double incr) Sets the angle to change torsions by.void
setPrint
(boolean print) Sets algorithm to log all torsions/energies (not just to file).void
setSearchWidth
(double width) Sets the width around each torsion to search (+/-, so 10 degree width will search a 20 degree arc).void
Null file indicates to not write a video.void
Main 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
- aMolecularAssembly
object.potential
- aPotential
object.residue
- aResidue
object.file
- Output filenChi
- Number of rotameric torsions in the residuelistener
- aAlgorithmListener
object.
-
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
- aMolecularAssembly
object.potential
- aPotential
object.residue
- aResidue
object.file
- Output filenChi
- Number of rotameric torsions in the residuelistener
- aAlgorithmListener
object.library
- Rotamer library to use
-
-
Method Details
-
applyAndSaveTorsions
Accessory method for more simplistic saving of specific torsion states.- Parameters:
torSets
- an array ofString
objects.
-
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.AminoAcid3
object.
-
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.
-