Package pl.poznan.put.torsion
Class AverageTorsionAngleType
java.lang.Object
pl.poznan.put.torsion.AverageTorsionAngleType
- All Implemented Interfaces:
DisplayableExportable
,MasterTorsionAngleType
,TorsionAngleType
- Direct Known Subclasses:
ImmutableAverageTorsionAngleType
@Immutable
public abstract class AverageTorsionAngleType
extends Object
implements TorsionAngleType, MasterTorsionAngleType
An average of one or more basic angle types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal List<TorsionAngleType>
final TorsionAngleValue
calculate
(Collection<TorsionAngleValue> values) Calculates the average torsion angle value by collecting basic angle values and creating anAngleSample
out of them to get the mean direction.final TorsionAngleValue
calculate
(List<PdbResidue> residues, int currentIndex) Calculates the average torsion angle value by calculating basic angle values and creating anAngleSample
out of them to get the mean direction.abstract List<MasterTorsionAngleType>
protected Set<TorsionAngleType>
static AverageTorsionAngleType
static AverageTorsionAngleType
abstract MoleculeType
final Range
Finds a matching range for the given angle value.
-
Constructor Details
-
AverageTorsionAngleType
public AverageTorsionAngleType()
-
-
Method Details
-
forProtein
- Returns:
- The default instance for proteins based on
AminoAcidTorsionAngle.PHI
,AminoAcidTorsionAngle.PSI
, andAminoAcidTorsionAngle.OMEGA
.
-
forNucleicAcid
- Returns:
- The default instance for nucleic acids based on
NucleotideTorsionAngle.ALPHA
,NucleotideTorsionAngle.BETA
,NucleotideTorsionAngle.GAMMA
,NucleotideTorsionAngle.DELTA
,NucleotideTorsionAngle.EPSILON
,NucleotideTorsionAngle.ZETA
andNucleotideTorsionAngle.CHI
.
-
moleculeType
- Specified by:
moleculeType
in interfaceTorsionAngleType
- Returns:
- The molecule this torsion angle is defined for.
-
calculate
Calculates the average torsion angle value by calculating basic angle values and creating anAngleSample
out of them to get the mean direction.- Specified by:
calculate
in interfaceTorsionAngleType
- Parameters:
residues
- The list of residues.currentIndex
- The index of current residue.- Returns:
- The average value of torsion angles condigured for this type.
-
consideredAngles
- Returns:
- The list of angle types to calculate average from.
-
shortDisplayName
- Specified by:
shortDisplayName
in interfaceDisplayableExportable
- Returns:
- A short name to be shown in UI summary.
-
longDisplayName
- Specified by:
longDisplayName
in interfaceDisplayableExportable
- Returns:
- A long name to be shown in UI, may contain Unicode.
-
exportName
- Specified by:
exportName
in interfaceDisplayableExportable
- Returns:
- A name to be used during export to output file, should be ASCII only.
-
calculate
Calculates the average torsion angle value by collecting basic angle values and creating anAngleSample
out of them to get the mean direction.- Parameters:
values
- The collection of torsion angle values.- Returns:
- The average value of torsion angles condigured for this type.
-
angleTypes
- Specified by:
angleTypes
in interfaceMasterTorsionAngleType
- Returns:
- The list of basic angle types this type consists of.
-
range
Description copied from interface:MasterTorsionAngleType
Finds a matching range for the given angle value.- Specified by:
range
in interfaceMasterTorsionAngleType
- Parameters:
angle
- The angle value to find the range for.- Returns:
- An instance of
Range
which incorporates this angle.
-
consideredBasicAngleTypes
-