Class BioPolymer
java.lang.Object
org.jmol.modelsetbio.BioPolymer
- All Implemented Interfaces:
Structure
- Direct Known Subclasses:
AlphaPolymer, CarbohydratePolymer, PhosphorusPolymer
A "BioPolymer" is a constructed set of contiguous (probably connected) "Monomers",
which may be one of Alpha (Calpha atoms), Amino (Calpha + backbone),
Phosphorus (P atoms), Nucleic (DNA/RNA), or Carbohydrate.
BioPolymers are constructed after file loading and after various changes that might
affect secondary structure.
BioPolymers are not Chains. Chains are set at load time and just constitute
collections of unique chain identifiers in the file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintprotected P3[]intprotected booleanprotected booleanbooleanprotected booleanprotected int[]protected P3[]protected P3[]intMonomer[]protected floatbooleanprotected intprotected static final intprotected static final intprotected static final intprotected static final intprotected V3[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanprotected booleanvoidcalcRasmolHydrogenBonds(BioPolymer polymer, BS bsA, BS bsB, Lst<Bond> vHBonds, int nMaxPerResidue, int[][][] min, boolean checkDistances, boolean dsspIgnoreHydrogens) voidcalcSelectedMonomersCount(BS bsSelected) protected floatcalculateRamachandranHelixAngle(int m, char qtype) voidvoidfindNearestAtomIndex(int xMouse, int yMouse, Atom[] closest, short[] mads, int myVisibilityFlag, BS bsNot) protected P3getControlPoint(int i, V3 v) P3[]getControlPoints(boolean isTraceAlpha, float sheetSmoothing, boolean invalidate) protected intgetIndex(int chainID, int seqcode, int istart, int iend) int[]P3[]intgetPolymerPointsAndVectors(int last, BS bs, Lst<P3[]> vList, boolean isTraceAlpha, float sheetSmoothing) voidgetPolymerSequenceAtoms(int group1, int nGroups, BS bsInclude, BS bsResult) getProteinStructure(int monomerIndex) voidvoidgetRangeGroups(int nResidues, BS bsAtoms, BS bsResult) intgetType()final V3[]booleanisCyclic()booleanvoidprotected voidvoidsetAtomBits(BS bs) voidsetAtomBitsAndClear(BS bs, BS bsOut) voidsetConformation(BS bsSelected) toString()
-
Field Details
-
model
-
monomers
-
hasStructure
protected boolean hasStructure -
leadMidpoints
-
leadPoints
-
controlPoints
-
wingVectors
-
leadAtomIndices
protected int[] leadAtomIndices -
type
protected int type -
bioPolymerIndexInModel
public int bioPolymerIndexInModel -
monomerCount
public int monomerCount -
TYPE_NOBONDING
protected static final int TYPE_NOBONDING- See Also:
-
TYPE_AMINO
protected static final int TYPE_AMINO- See Also:
-
TYPE_NUCLEIC
protected static final int TYPE_NUCLEIC- See Also:
-
TYPE_CARBOHYDRATE
protected static final int TYPE_CARBOHYDRATE- See Also:
-
cyclicFlag
public int cyclicFlag -
invalidControl
protected boolean invalidControl -
sheetSmoothing
protected float sheetSmoothing -
hasWingPoints
protected boolean hasWingPoints -
reversed
-
twistedSheets
public boolean twistedSheets -
haveParameters
public boolean haveParameters
-
-
Constructor Details
-
BioPolymer
-
-
Method Details
-
setAtomBits
- Specified by:
setAtomBitsin interfaceStructure
-
setAtomBitsAndClear
- Specified by:
setAtomBitsAndClearin interfaceStructure
-
getRange
-
clearStructures
public void clearStructures() -
getLeadAtomIndices
public int[] getLeadAtomIndices() -
getIndex
protected int getIndex(int chainID, int seqcode, int istart, int iend) -
setConformation
-
recalculateLeadMidpointsAndWingVectors
public void recalculateLeadMidpointsAndWingVectors() -
resetHydrogenPoints
protected void resetHydrogenPoints() -
getLeadMidpoints
-
getControlPoints
-
getControlPoint
-
getWingVectors
-
findNearestAtomIndex
-
calcSelectedMonomersCount
-
getPolymerPointsAndVectors
-
getSequence
-
getPolymerSequenceAtoms
-
getProteinStructure
- Parameters:
monomerIndex-- Returns:
- "HELIX" "TURN" etc
-
calcParameters
public boolean calcParameters() -
calcEtaThetaAngles
protected boolean calcEtaThetaAngles() -
calcPhiPsiAngles
protected boolean calcPhiPsiAngles() -
calculateRamachandranHelixAngle
protected float calculateRamachandranHelixAngle(int m, char qtype) - Parameters:
m-qtype-- Returns:
- calculated value
-
isNucleic
public boolean isNucleic() -
getRangeGroups
-
calcRasmolHydrogenBonds
public void calcRasmolHydrogenBonds(BioPolymer polymer, BS bsA, BS bsB, Lst<Bond> vHBonds, int nMaxPerResidue, int[][][] min, boolean checkDistances, boolean dsspIgnoreHydrogens) - Parameters:
polymer-bsA-bsB-vHBonds-nMaxPerResidue-min-checkDistances-dsspIgnoreHydrogens-
-
getType
public int getType() -
isCyclic
public boolean isCyclic() -
toString
-