Package org.biojava.bio.structure
Class AlphaCTools
- java.lang.Object
-
- org.biojava.bio.structure.AlphaCTools
-
public final class AlphaCTools extends java.lang.ObjectAlphaCTools is a collection of static convenience methods for dealing with Alpha Carbon Backbone Phi / Psi angles. In BioJava Phi Psi angles are represented as Symbols from the ALPHA CARBON ANGLES alphabet. A Backbone could be represented as a SymbolList. A Ramachandran plot might be represented as a Distribution over Phi Psi Symbols.- Version:
- 1.0
- Author:
- Mark Schreiber
-
-
Constructor Summary
Constructors Constructor Description AlphaCTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AlphabetgetAlphaCarbonAngleAlphabet()Returns a reference to the Alphabet that contains Symbols that represent PHI, PSI angles.static doublegetPhiAngle(Symbol phiPsiSym)extracts the Phi angle from aSymbol.static SymbolgetPhiPsiSymbol(double phiAngle, double psiAngle)Makes a Phi - Psi Symbol from the ALPHA CARBON ANGLES alphabet.static doublegetPsiAngle(Symbol phiPsiSym)extracts the Psi angle from aSymbol.
-
-
-
Field Detail
-
MAX_ANGLE
public static final double MAX_ANGLE
MAX_ANGLE .- See Also:
- Constant Field Values
-
MIN_ANGLE
public static final double MIN_ANGLE
MIN_ANGLE .- See Also:
- Constant Field Values
-
-
Method Detail
-
getAlphaCarbonAngleAlphabet
public static Alphabet getAlphaCarbonAngleAlphabet()
Returns a reference to the Alphabet that contains Symbols that represent PHI, PSI angles.- Returns:
- a reference to the ALPHA CARBON ANGLES alphabet
-
getPhiPsiSymbol
public static Symbol getPhiPsiSymbol(double phiAngle, double psiAngle) throws IllegalSymbolException
Makes a Phi - Psi Symbol from the ALPHA CARBON ANGLES alphabet.- Parameters:
phiAngle- the phi angle between -180.0 and +180.0psiAngle- the psi angle between -180.0 and +180.0- Returns:
- a reference to the 'fly weight' Symbol.
- Throws:
IllegalSymbolException- if the bond angles are outside the specified range
-
getPhiAngle
public static double getPhiAngle(Symbol phiPsiSym) throws IllegalSymbolException
extracts the Phi angle from aSymbol.- Parameters:
phiPsiSym- aSymbolfrom the ALPHA CARBON ANGLESAlphabet- Returns:
- a double between -180.0 and +180.0
- Throws:
IllegalSymbolException- if theSymbolis not from the ALPHA CARBON ANGLESAlphabet
-
getPsiAngle
public static double getPsiAngle(Symbol phiPsiSym) throws IllegalSymbolException
extracts the Psi angle from aSymbol.- Parameters:
phiPsiSym- aSymbolfrom the ALPHA CARBON ANGLESAlphabet- Returns:
- a double between -180.0 and +180.0
- Throws:
IllegalSymbolException- if theSymbolis not from the ALPHA CARBON ANGLESAlphabet
-
-