Class BioResolver
java.lang.Object
org.jmol.modelsetbio.BioResolver
- All Implemented Interfaces:
Comparator<String[]>
a class used by ModelLoader to handle all loading
of operations specific to PDB/mmCIF files. By loading
only by class name, only loaded if PDB file is called.
In addition, constants relating only to PDB files are here
-- for coloring by chain, selecting by protein, etc.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic shortstatic final String[]pdbBondInfo describes in a compact way what the hydrogen atom names are for each standard amino acid. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddImplicitHydrogenAtoms(JmolAdapter adapter, int iGroup, int nH) Get bonding info for double bonds and add implicit hydrogen atoms, if needed.intdistinguishAndPropagateGroup(Chain chain, String group3, int seqcode, int firstAtomIndex, int lastAtomIndex, int[] specialAtomIndexes, Atom[] atoms) voidfixPropertyValue(BS bsAtoms, Object data, boolean toHydrogens) int[]getArgbs(int tok) getBioModel(int modelIndex, int trajectoryBaseIndex, Map<String, Object> jmolData, Properties modelProperties, Map<String, Object> modelAuxiliaryInfo) getBioModelSet(ModelSet modelSet) shortgetGroupID(String g3) voidbooleanMMCif, Gromacs, MdTop, Mol2 readers onlybooleanisKnownPDBGroup(String g3, int max) voiditerateOverAllNewStructures(JmolAdapter adapter, Object atomSetCollection) Pull in all spans of helix, etc.static shortknownGroupID(String group3) bytelookupSpecialAtomID(String name) voidsetGroupLists(int ipt) voidsetHaveHsAlready(boolean b) ///////// ADDITION OF HYDROGEN ATOMS /////////////setLoader(ModelLoader modelLoader) toStdAmino3(String g1) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
htGroup
-
carbohydrates
-
pdbBondInfo
pdbBondInfo describes in a compact way what the hydrogen atom names are for each standard amino acid. This list consists of pairs of attached atom/hydrogen atom names, with abbreviations N, C, O, B, D, G, 1, and 2 (for N, C, O, CB, CD, CG, C1', and C2', respectively) given in pdbHAttachments, above. Note that we never add HXT or NH3 "?" here is for methyl groups with H1, H2, H3. "@" indicates a prochiral center, with the assignment order given here -
group3NameCount
public static short group3NameCount -
ATOMID_MAX
public static final int ATOMID_MAX
-
-
Constructor Details
-
BioResolver
public BioResolver()
-
-
Method Details
-
setLoader
-
setViewer
-
getBioModel
-
distinguishAndPropagateGroup
-
setHaveHsAlready
public void setHaveHsAlready(boolean b) ///////// ADDITION OF HYDROGEN ATOMS ///////////// -
initializeHydrogenAddition
public void initializeHydrogenAddition() -
addImplicitHydrogenAtoms
Get bonding info for double bonds and add implicit hydrogen atoms, if needed.- Parameters:
adapter-iGroup- this groupnH- legacy quirk
-
compare
- Specified by:
comparein interfaceComparator<String[]>
-
finalizeHydrogens
public void finalizeHydrogens() -
fixPropertyValue
-
iterateOverAllNewStructures
Pull in all spans of helix, etc. in the file(s) We do turn first, because sometimes a group is defined twice, and this way it gets marked as helix or sheet if it is both one of those and turn. Jmol 14.3 - adds sequence ANNOTATION- Parameters:
adapter-atomSetCollection-
-
setGroupLists
public void setGroupLists(int ipt) -
isKnownPDBGroup
- Parameters:
g3-max- max ID (e.g. 20); can be Integer.MAX_VALUE to allow carbohydrate- Returns:
- true if found
-
lookupSpecialAtomID
-
knownGroupID
-
isHetero
MMCif, Gromacs, MdTop, Mol2 readers only- Parameters:
group3-- Returns:
- true if an identified hetero group
-
toStdAmino3
-
getGroupID
-
getArgbs
public int[] getArgbs(int tok) -
getBioModelSet
-