Class GenerateRotamers

java.lang.Object
ffx.algorithms.misc.GenerateRotamers

public class GenerateRotamers extends Object
The GenerateRotamers class helps generate a rotamer library (particularly for nonstandard amino acids) for a Residue.
Author:
Jacob M. Litman, Michael J. Schnieders
  • Constructor Details

  • Method Details

    • applyAndSaveTorsions

      public void applyAndSaveTorsions(String[] torSets)
      Accessory method for more simplistic saving of specific torsion states.
      Parameters:
      torSets - an array of String objects.
    • setBaselineAARes

      public void setBaselineAARes(AminoAcidUtils.AminoAcid3 aa3)
      Sets a standard amino acid to be the baseline for rotamer generation. For example, use TYR as a baseline for phospho-tyrosine.
      Parameters:
      aa3 - a AminoAcidUtils.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

      public void setElectrostatics(String electrostatics)
      Inactivates electrostatics for atom sets defined by 'start-end,start-end,...'.
      Parameters:
      electrostatics - Input string
    • setInactiveAtoms

      public void setInactiveAtoms(String iatoms)
      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

      public void setVideo(String videoFile)
      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.