Class ModelSet
java.lang.Object
org.jmol.modelset.AtomCollection
org.jmol.modelset.BondCollection
org.jmol.modelset.ModelSet
-
Nested Class Summary
Nested classes/interfaces inherited from class AtomCollection
AtomCollection.AtomSorter -
Field Summary
FieldsModifier and TypeFieldDescriptionModel[]protected BSprotected BSprotected final Atom[]protected BS[]String[]booleanbooleanbooleanprotected booleanintmodel countint[]String[]protected int[]String[]protected Stringbooleanprotected booleanprotected booleanprotected booleanP3[]Fields inherited from class BondCollection
bo, BOND_GROWTH_INCREMENT, bondCount, bsAromatic, defaultCovalentMad, freeBonds, haveAtropicBonds, haveHiddenBonds, MAX_BONDS_LENGTH_TO_CACHE, MAX_NUM_TO_CACHE, moleculeCount, molecules, numCached, v1, v2Fields inherited from class AtomCollection
ac, at, atomTensorList, atomTensors, bioModelset, bsClickable, bsModulated, bsPartialCharges, bspf, bsVisible, CALC_H_ALLOW_H, CALC_H_DOALL, CALC_H_HAVEH, CALC_H_IGNORE_H, CALC_H_JUSTC, CALC_H_QUICK, canSkipLoad, g3d, haveChirality, haveStraightness, maxBondingRadius, occupancies, pointGroup, preserveState, surfaceDistance100s, TAINT_ATOMNAME, TAINT_ATOMNO, TAINT_ATOMTYPE, TAINT_BONDINGRADIUS, TAINT_CHAIN, TAINT_COORD, TAINT_ELEMENT, TAINT_FORMALCHARGE, TAINT_HYDROPHOBICITY, TAINT_MAX, TAINT_OCCUPANCY, TAINT_PARTIALCHARGE, TAINT_RESNO, TAINT_SEQID, TAINT_SITE, TAINT_TEMPERATURE, TAINT_VALENCE, TAINT_VANDERWAALS, TAINT_VIBRATION, tainted, trajectory, userSettableValues, vib, vibrations, vwr -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAtom(int modelIndex, Group group, int atomicAndIsotopeNumber, String atomName, String atomType, int atomSerial, int atomSeqID, int atomSite, P3 xyz, float radius, V3 vib, int formalCharge, float partialCharge, float occupancy, float bfactor, Lst<Object> tensors, boolean isHetero, boolean isNegDisorder, byte specialAtomID, BS atomSymmetry, float bondRadius) addHydrogens(Lst<Atom> vConnections, P3[] pts) these are hydrogens that are being added due to a load 2D command and are therefore not to be flagged as NEWaddStateScript(String script1, BS bsBonds, BS bsAtoms1, BS bsAtoms2, String script2, boolean addFrameNumber, boolean postDefinitions) voidadjustAtomArrays(int[] map, int i0, int ac) intinta generalized formation of HBONDS, carried out in relation to calculate HBONDS {atomsFrom} {atomsTo}.intcalcAtomsMinMax(BS bs, BoxInfo boxInfo) voidcalcBoundBoxDimensions(BS bs, float scale) voidcalcRasmolHydrogenBonds(BS bsA, BS bsB, Lst<Bond> vHBonds, boolean nucleicOnly, int nMax, boolean dsspIgnoreHydrogens, BS bsHBonds) These are not actual hydrogen bonds.floatcalcRotationRadius(int modelIndex, P3 center, boolean useBoundBox) floatvoidvoidvoidcalculateChiralityForAtoms(BS bsAtoms, boolean withReturn) voidcalculateDssrProperty(String dataType) calculateMolecularDipole(int modelIndex, BS bsAtoms) calculatePointGroup(BS bsAtoms, P3 center) ////// atom and shape selecting /////////protected voidcalculatePolymers(Group[] groups, int groupCount, int baseGroupIndex, BS modelsExcluded) voidcalculateStructures(BS bsAtoms, boolean asDSSP, boolean doReport, boolean dsspIgnoreHydrogen, boolean setStructure, int version) calculateStructuresAllExcept(BS alreadyDefined, boolean asDSSP, boolean doReport, boolean dsspIgnoreHydrogen, boolean setStructure, boolean includeAlpha, int version) allows rebuilding of PDB structures; also accessed by ModelManager from EvalintcalculateStruts(BS bs1, BS bs2) see comments in org.jmol.modelsetbio.AlphaPolymer.java Struts are calculated for atoms in bs1 connecting to atoms in bs2.voidprotected voidclearDataFrameReference(int modelIndex) voidclearDB(int atomIndex) voidclearUnitCell(int modelIndex) voidconnect(float[][] connections) voidcreateModels(int n) voidvoiddeleteAtoms(BS bs) voiddeleteBonds(BS bsBonds, boolean isFullModel) voiddeleteModelBonds(int modelIndex) deleteModels(BS bsModels) voidfillAtomData(AtomData atomData, int mode) intfindNearestAtomIndex(int x, int y, BS bsNot, int min) fixDeletedBonds(BS bs) intgetAltLocCountInModel(int modelIndex) /////////// individual models ////////////////intgetAltLocIndexInModel(int modelIndex, char alternateLocationID) getAltLocListInModel(int modelIndex) protected BSgetAtomBitsMaybeDeleted(int tokType, Object specInfo) intgetAtomCIPChiralityCode(Atom atom) Determine the Cahn-Ingold-Prelog R/S chirality of an atomintgetAtomCountInModel(int modelIndex) Quat[]getAtomGroupQuaternions(BS bsAtoms, int nMax, char qtype) floatgetAtomicDSSRData(int i) general lookup for integer type -- from EvalgetAtomSetCenter(BS bs) getAtomsWithin(float distance, T3 coord, BS bsResult, int modelIndex) getAtomsWithinRadius(float distance, BS bs, boolean withinAllModels, RadiusData rd, BS bsSubset) Get atoms within a specific distance of any atom in a specific set of atoms either within all models or within just the model(s) of those atomsgetBasisAtom(int iatom, boolean doCheck) Point3fi[]intgetBioPolymerCountInModel(int modelIndex) intgetBondCountInModel(int modelIndex) /////// bonds /////////getBoundBoxCenter(int modelIndex) getBoundBoxCommand(boolean withOptions) getBoundBoxOrientation(int type, BS bsAtoms, P3[] points) getBoxInfo(BS bs, float scale) BS[]getBsBranches(float[] dihedralList) float[]getCellWeights(BS bsAtoms) P3[][]getCenterAndPoints(Lst<Object[]> vAtomSets, boolean addCenters) intgetChainCountInModelWater(int modelIndex, boolean countWater) getConformation(int modelIndex, int conformationIndex, boolean doSet, BS bsSelected) getConnectingAtoms(BS bsAtoms, BS bsFixed) include this frame and all related framesgetDefaultStructure(BS bsAtoms, BS bsModified) getDefaultVdwType(int modelIndex) int[][]getDihedralMap(int[] alist) booleangetElementsPresentBitSet(int modelIndex) getEquivalentAtoms(int iatom) getFileData(int modelIndex) getFileHeader(int modelIndex) longgetFrameDelayMs(int i) P3[]getFrameOffsets(BS bsAtoms, boolean isFull) getFrameTitle(int modelIndex) intgetGroupCountInModel(int modelIndex) Group[]In versions earlier than 12.1.51, groups[] was a field of ModelCollection.getGroupsWithin(int nResidues, BS bs) getHeteroList(int modelIndex) protected booleanprotected intgetInlineData(int modelIndex) intgetInsertionCodeIndexInModel(int modelIndex, char insertionCode) intgetInsertionCountInModel(int modelIndex) getIterativeModels(boolean allowJmolData) only some models can be iterated through.intgetJmolDataFrameIndex(int modelIndex, String type) intgetJmolDataFrameInt(int modelIndex, int type) intgetJmolDataSourceFrame(int modelIndex) getJmolFrameType(int modelIndex) intgetJmolFrameTypeInt(int modelIndex) intgetLastVibrationVector(int modelIndex, int tok) getModelAtomBitSetIncludingDeleted(int modelIndex, boolean asCopy) Note that this method returns all atoms, included deleted ones.getModelAtomBitSetIncludingDeletedBs(BS bsModels) note -- this method returns ALL atoms, including deleted.getModelAuxiliaryInfo(int modelIndex) getModelBS(BS atomList, boolean allTrajectories) Get the set of models associated with a set of atoms.int[]getModelCellRange(int modelIndex) getModelDataBaseName(BS bsAtoms) getModelDipole(int modelIndex) getModelFileName(int modelIndex) getModelFileType(int modelIndex) intgetModelName(int modelIndex) intgetModelNumber(int modelIndex) getModelNumberDotted(int modelIndex) getModelNumberForAtomLabel(int modelIndex) intgetModelNumberIndex(int modelNumber, boolean useModelNumber, boolean doSetTrajectory) getModelOrientation(int modelIndex) getModelProperty(int modelIndex, String property) getModelSetAuxiliaryInfo(BS bsModels) Retrieve the main modelset info Hashtable (or a new non-null Hashtable) with an up-to-date "models" key.intgetModelSymmetryCount(int modelIndex) getModelTitle(int modelIndex) getModulationList(BS bs, char type, P3 t456) getMoleculeBitSet(BS bs) return cumulative sum of all atoms in molecules containing these atomsgetMoleculeBitSetForAtom(int atomIndex) intgetMoleculeCountInModel(int modelIndex) intgetMoleculeIndex(int atomIndex, boolean inModel) ////// molecules /////////booleangetMSInfoB(String keyName) getPDBHeader(int modelIndex) getPointGroupAsString(BS bsAtoms, String type, int index, float scale, P3[] pts, P3 center, String id) getPointGroupInfo(BS bsAtoms, String type) voidgetPointTransf(int i, Atom a, Quat q, P3 pTemp) pick up the appropriate value for this atomvoidgetPolymerPointsAndVectors(BS bs, Lst<P3[]> vList, boolean isTraceAlpha, float sheetSmoothing) getProteinStructureState(BS bsAtoms, int mode) getSelectedAtomIterator(BS bsSelected, boolean isGreaterOnly, boolean modelZeroBased, boolean hemisphereOnly, boolean isMultiModel) getSequenceBits(String specInfo, BS bsAtoms, BS bsResult) // bio-only methods /////intgetSpin(int atomIndex) M4[]getSymMatrices(int modelIndex) getSymmetryEquivAtoms(BS bsAtoms, SymmetryInterface sym, BS bsModelAtoms) Return a bitset of equivalent atomsvoidgetSymmetryEquivAtomsForAtom(int i, BS bsAtoms, BS bsCheck, BS bsEquiv) Set a bitset of the equivalent atoms of an atom.int[]getSymmetryInvariant(int iatom) getTranslation(int iModel) getUnitCell(int modelIndex) getUnitCellForAtom(int index) getUnitCellPointsWithin(float distance, BS bs, P3 pt, boolean asMap) protected voidgrowAtomArrays(int newLength) voidincludeAllRelatedFrames(BS bsModels, boolean includeOriginatingModels) protected void///////// iterators //////////protected voidinitializeBspt(int modelIndex) voidinvertSelected(P3 pt, P4 plane, int iAtom, BS bsAtoms) Carries out a stereochemical inversion through a point, across a plane, or at a chirality center.booleanisAtomPDB(int i) booleanisBondable(float bondingRadiusA, float bondingRadiusB, float distance2, float minBondDistance2, float bondTolerance) booleanisJmolDataFrame(int modelIndex) booleanisTrajectory(int modelIndex) could be the base model or one of the subframesbooleanisTrajectoryMeasurement(int[] countPlusIndices) booleanisTrajectorySubFrame(int i) int[]makeConnections(float minDistance, float maxDistance, int order, int connectOperation, BS bsA, BS bsB, BS bsBonds, boolean isBonds, boolean addGroup, float energy) // super-overloaded methods ///////int[]makeConnections2(float minD, float maxD, int order, int connectOperation, BS bsA, BS bsB, BS bsBonds, boolean isBonds, boolean addGroup, float energy, SB state) protected voidmergeModelArrays(ModelSet mergeModelSet) initial transfer of model data from old to new model set.static intmodelFileNumberFromFloat(float fDotM) voidmorphAtoms(BS bsAtoms, P3[][] points, int ipt, float f, P3 ptemp) voidmorphTrajectories(int m1, int m2, float f) voidmoveAtoms(M4 m4, M3 mNew, M3 rotation, V3 translation, BS bs, P3 center, boolean isInternal, boolean translationOnly) voidrecalculateLeadMidpointsAndWingVectors(int modelIndex) voidrecalculatePolymers(BS bsModelsExcluded) voidrecalculatePositionDependentQuantities(BS bsAtoms, M4 mat) voidrefreshDataFramePointGroup(int dataFrameIndex) protected voidvoidvoidrestoreAtomPositions(P3[] apos0) P3[]voidsaveModelOrientation(int modelIndex, Orientation orientation) protected voidvoidsetAtomCoords(BS bs, int tokType, Object xyzValues) voidsetAtomCoordsRelative(T3 offset, BS bs) voidsetAtomNamesAndNumbers(int iFirst, int baseAtomIndex, AtomCollection mergeSet, boolean isModelKit) voidsetAtomProperty(BS bs, int tok, int iValue, float fValue, String sValue, float[] values, String[] list) voidsetBoundBox(T3 pt1, T3 pt2, boolean byCorner, float scale) voidsetCentroid(BS bs, int[] minmax) deletes molecules based on: CENTROID -- molecular centroid is not in unit cell CENTROID PACKED -- all molecule atoms are not in unit cell called from ScriptEval.finalizeLoad()setConformation(BS bsAtoms) booleanvoidsetDihedrals(float[] dihedralList, BS[] bsBranches, float f) voidsetEchoStateActive(boolean TF) voidsetFrameDelayMs(long millis, BS bsModels) voidsetFrameTitle(BS bsFrames, Object title) voidvoidsetIteratorForAtom(AtomIndexIterator iterator, int modelIndex, int atomIndex, float distance, RadiusData rd) voidsetIteratorForPoint(AtomIndexIterator iterator, int modelIndex, T3 pt, float distance) setModelCage(int modelIndex, SymmetryInterface simpleCage) This is the model-specific cage created by a UNITCELL or MODELKIT UNITCELL command.setModelCagePts(int iModel, T3[] originABC, String name) voidsetModulation(BS bs, boolean isOn, P3 qtOffset, boolean isQ) Sets the modulation for all atoms in bs.voidsetPdbConectBonding(int baseAtomIndex, int baseModelIndex, BS bsExclude) voidsetProteinType(BS bs, STR type) booleansetRotationRadius(int modelIndex, float angstroms) voidsetSpaceGroup(int mi, SymmetryInterface sg, BS basis) Set up all the model-related fields in association with a new space group.void///////// state definition ///////////voidsetStructureList(Map<STR, float[]> structureList) voidsetTrajectory(int modelIndex) voidsetTrajectoryBs(BS bsModels) voidtranslateModel(int iModel, T3 pt) move atoms by vector pt; used for co-centering with FRAME ALIGN {atoms} TRUEvoidupdateBasisFromSite(int imodel) Methods inherited from class BondCollection
addConnectedHAtoms, addHBond, allowAromaticBond, assignAromaticBondsBs, bondAtoms, bondMutually, dBb, deleteAllBonds2, deleteConnections, displayBonds, fixD, getAtomBitsMDb, getAtomsConnected, getBondColix1, getBondColix2, getBondIterator, getBondIteratorForType, getBondsForSelectedAtoms, getDefaultMadFromOrder, getOrAddBond, isInRange, releaseModelSetBC, removeUnnecessaryBonds, resetAromatic, setBond, setupBCMethods inherited from class AtomCollection
addTensor, calculateHydrogens, calculateSurface, calculateVolume, chainToUpper, clearBfactorRange, clearVisibleSets, deleteModelAtoms, fillADa, findMaxRadii, findNearest2, fixFormalCharges, generateCrystalClass, getAllAtomTensors, getAtom, getAtomBitsMDa, getAtomicCharges, getAtomIdentityInfo, getAtomIndices, getAtomInfo, getAtomPointVector, getAtomsFromAtomNumberInFrame, getAtomsInFrame, getAtomsNearPlane, getAtomTensor, getAtomTensorList, getAtomTypes, getBfactor100Hi, getBfactor100Lo, getBFactors, getBondingRadii, getChainBits, getClickableSet, getElementName, getFirstAtomIndexFromAtomNumber, getHybridizationAndAxes, getHydrophobicity, getLabeler, getMaxVanderwaalsRadius, getMissingHydrogenCount, getModulation, getOccupancyFloat, getPartialCharges, getQuaternion, getRadiusVdwJmol, getSeqcodeBits, getSpecNameOrNull, getSurfaceDistanceMax, getTaintedAtoms, getUserSettableType, getVibCoord, getVibration, getVisibleSet, isAtomHidden, isDeleted, isModulated, mergeAtomArrays, modelSetHasVibrationVectors, releaseModelSetAC, scaleVectorsToMax, setAPa, setAtomCoord, setAtomCoord2, setAtomCoordRelative, setAtomData, setAtomName, setAtomNumber, setAtomsCoordRelative, setAtomTensors, setAtomVibrationVector, setBFactor, setBondingRadius, setBsHidden, setElement, setFormalCharges, setOccupancy, setPartialCharge, setPreserveState, setSite, setTaintedAtoms, setupAC, taintAtom, taintAtoms, unTaintAtoms, validateBspf
-
Field Details
-
haveBioModels
public boolean haveBioModels -
bsSymmetry
-
modelSetName
-
am
-
mc
public int mcmodel count -
unitCells
-
haveUnitCells
public boolean haveUnitCells -
closest
-
modelNumbers
protected int[] modelNumbers -
modelFileNumbers
public int[] modelFileNumbers -
modelNumbersForAtomLabel
-
modelNames
-
frameTitles
-
elementsPresent
-
isXYZ
protected boolean isXYZ -
modelSetProperties
-
msInfo
-
someModelsHaveSymmetry
protected boolean someModelsHaveSymmetry -
someModelsHaveAromaticBonds
protected boolean someModelsHaveAromaticBonds -
someModelsHaveFractionalCoordinates
protected boolean someModelsHaveFractionalCoordinates -
bboxModels
-
stateScripts
-
vibrationSteps
-
bsAll
-
sm
-
proteinStructureTainted
public boolean proteinStructureTainted -
htPeaks
-
haveJmolDataFrames
public boolean haveJmolDataFrames -
modelSetTypeName
-
translations
-
-
Constructor Details
-
ModelSet
-
-
Method Details
-
getBoxInfo
-
releaseModelSet
protected void releaseModelSet() -
getEchoStateActive
public boolean getEchoStateActive() -
setEchoStateActive
public void setEchoStateActive(boolean TF) -
getModelSetTypeName
-
getModelNumberIndex
public int getModelNumberIndex(int modelNumber, boolean useModelNumber, boolean doSetTrajectory) - Parameters:
modelNumber- can be a PDB MODEL number or a simple index number, or a fffnnnnnn f.n numberuseModelNumber-doSetTrajectory-- Returns:
- index
-
getModelDataBaseName
-
setTrajectory
public void setTrajectory(int modelIndex) -
getBitSetTrajectories
-
setTrajectoryBs
-
morphTrajectories
public void morphTrajectories(int m1, int m2, float f) -
getTranslation
-
translateModel
move atoms by vector pt; used for co-centering with FRAME ALIGN {atoms} TRUE- Parameters:
iModel-pt-
-
getFrameOffsets
-
getAtoms
-
findNearestAtomIndex
-
calculatePointGroup
-
getPointGroupInfo
-
getPointGroupAsString
-
getDefaultStructure
-
deleteModelBonds
public void deleteModelBonds(int modelIndex) -
makeConnections
-
setPdbConectBonding
-
deleteAllBonds
public void deleteAllBonds() -
includeAllRelatedFrames
-
deleteModels
-
resetMolecules
public void resetMolecules() -
setAtomProperty
-
getFileData
-
addHydrogens
-
mergeModelArrays
initial transfer of model data from old to new model set. Note that all new models are added later, AFTER thfe old ones. This is very important, because all of the old atom numbers must map onto the same numbers in the new model set, or the state script will not run properly, among other problems.- Parameters:
mergeModelSet-
-
getUnitCell
- Parameters:
modelIndex- Integer.MIN_VALUE requests a return of the cage, without symmetry- Returns:
- Symmetry
-
setModelCagePts
-
getModelName
-
getModelTitle
-
getModelFileName
-
getModelFileType
-
setFrameTitle
-
getFrameTitle
-
getModelNumberForAtomLabel
-
getGroups
In versions earlier than 12.1.51, groups[] was a field of ModelCollection. But this is not necessary, and it was wasting space. This method is only called when polymers are recreated.- Returns:
- full array of groups in modelSet
-
setCrystallographicDefaults
public boolean setCrystallographicDefaults() -
getBoundBoxCenter
-
getBoundBoxCornerVector
-
getBBoxVertices
-
setBoundBox
-
getBoundBoxCommand
-
findAtomsInRectangle
-
getDefaultVdwType
-
setRotationRadius
public boolean setRotationRadius(int modelIndex, float angstroms) -
calcRotationRadius
-
calcBoundBoxDimensions
-
getBoxInfo
-
calcAtomsMinMax
-
calcRotationRadiusBs
-
getCenterAndPoints
-
getAtomSetCenter
-
getAverageAtomPoint
-
setAPm
-
addStateScript
-
getStructureList
-
getInfoM
-
getMSInfoB
-
isTrajectory
public boolean isTrajectory(int modelIndex) could be the base model or one of the subframes- Parameters:
modelIndex-- Returns:
- is any part of a trajectory
-
isTrajectorySubFrame
public boolean isTrajectorySubFrame(int i) -
isTrajectoryMeasurement
public boolean isTrajectoryMeasurement(int[] countPlusIndices) -
getModelBS
-
getIterativeModels
only some models can be iterated through. models for which trajectoryBaseIndexes[i] != i are trajectories only- Parameters:
allowJmolData-- Returns:
- bitset of models
-
fillAtomData
-
getModelNumberDotted
-
getModelNumber
public int getModelNumber(int modelIndex) -
getModelProperty
-
getModelAuxiliaryInfo
-
setInfo
-
getInfo
-
getInfoB
-
getInfoI
-
getInsertionCountInModel
public int getInsertionCountInModel(int modelIndex) -
modelFileNumberFromFloat
public static int modelFileNumberFromFloat(float fDotM) -
getChainCountInModelWater
public int getChainCountInModelWater(int modelIndex, boolean countWater) -
getGroupCountInModel
public int getGroupCountInModel(int modelIndex) -
calcSelectedGroupsCount
public void calcSelectedGroupsCount() -
isJmolDataFrame
public boolean isJmolDataFrame(int modelIndex) -
getJmolDataFrameIndex
-
getJmolDataFrameInt
public int getJmolDataFrameInt(int modelIndex, int type) - Parameters:
modelIndex-type- T.spin, T.ramachandran, T.data, what else?- Returns:
- modelIndex for the frame or -1
-
clearDataFrameReference
protected void clearDataFrameReference(int modelIndex) -
getJmolFrameType
-
getJmolFrameTypeInt
public int getJmolFrameTypeInt(int modelIndex) -
getJmolDataSourceFrame
public int getJmolDataSourceFrame(int modelIndex) -
saveModelOrientation
-
getModelOrientation
-
getPDBHeader
-
getFileHeader
-
getAltLocCountInModel
public int getAltLocCountInModel(int modelIndex) /////////// individual models //////////////// -
getAltLocIndexInModel
public int getAltLocIndexInModel(int modelIndex, char alternateLocationID) -
getInsertionCodeIndexInModel
public int getInsertionCodeIndexInModel(int modelIndex, char insertionCode) -
getAltLocListInModel
-
getModelSymmetryCount
public int getModelSymmetryCount(int modelIndex) -
getModelCellRange
public int[] getModelCellRange(int modelIndex) -
getLastVibrationVector
public int getLastVibrationVector(int modelIndex, int tok) -
getModulationList
-
getElementsPresentBitSet
-
getMoleculeIndex
public int getMoleculeIndex(int atomIndex, boolean inModel) ////// molecules ///////// -
getMoleculeBitSet
-
getMoleculeBitSetForAtom
-
getModelDipole
-
calculateMolecularDipole
public V3 calculateMolecularDipole(int modelIndex, BS bsAtoms) throws JmolAsyncException, RuntimeException - Throws:
JmolAsyncExceptionRuntimeException
-
getMoleculeCountInModel
public int getMoleculeCountInModel(int modelIndex) -
calcSelectedMoleculesCount
public void calcSelectedMoleculesCount() -
setCentroid
deletes molecules based on: CENTROID -- molecular centroid is not in unit cell CENTROID PACKED -- all molecule atoms are not in unit cell called from ScriptEval.finalizeLoad()- Parameters:
bs-minmax- fractional [xmin, ymin, zmin, xmax, ymax, zmax, 1=packed]
-
getMolecules
-
initializeBspf
protected void initializeBspf()///////// iterators ////////// -
initializeBspt
protected void initializeBspt(int modelIndex) -
setIteratorForPoint
-
setIteratorForAtom
public void setIteratorForAtom(AtomIndexIterator iterator, int modelIndex, int atomIndex, float distance, RadiusData rd) - Parameters:
iterator-modelIndex-atomIndex-distance- if -1, then this will be set later, and here we are just running a CubeIterator, no atom-atom distances, no atom sets, no "hemisphere".rd-
-
getSelectedAtomIterator
public AtomIndexIterator getSelectedAtomIterator(BS bsSelected, boolean isGreaterOnly, boolean modelZeroBased, boolean hemisphereOnly, boolean isMultiModel) - Parameters:
bsSelected-isGreaterOnly-modelZeroBased-hemisphereOnly-isMultiModel-- Returns:
- an iterator
-
getBondCountInModel
public int getBondCountInModel(int modelIndex) /////// bonds /////////- Overrides:
getBondCountInModelin classBondCollection- Parameters:
modelIndex- the model of interest or -1 for all- Returns:
- the actual number of connections
-
getAtomCountInModel
public int getAtomCountInModel(int modelIndex) -
getModelAtomBitSetIncludingDeletedBs
-
getModelAtomBitSetIncludingDeleted
Note that this method returns all atoms, included deleted ones. If you don't want deleted atoms, then use vwr.getModelAtomBitSetUndeleted(modelIndex, TRUE)- Parameters:
modelIndex-asCopy- MUST BE TRUE IF THE BITSET IS GOING TO BE MODIFIED!- Returns:
- either the actual bitset or a copy
-
getAtomBitsMaybeDeleted
-
getAtomsWithinRadius
public BS getAtomsWithinRadius(float distance, BS bs, boolean withinAllModels, RadiusData rd, BS bsSubset) Get atoms within a specific distance of any atom in a specific set of atoms either within all models or within just the model(s) of those atoms- Parameters:
distance-bs-withinAllModels-rd-bsSubset- limit selection to this subset of atoms- Returns:
- the set of atoms
-
getAtomsWithin
-
deleteBonds
-
makeConnections2
-
autoBondBs4
-
isBondable
public boolean isBondable(float bondingRadiusA, float bondingRadiusB, float distance2, float minBondDistance2, float bondTolerance) -
autoHbond
a generalized formation of HBONDS, carried out in relation to calculate HBONDS {atomsFrom} {atomsTo}. The calculation can create pseudo-H bonds for files that do not contain H atoms.- Parameters:
bsA- "from" set (must contain H if that is desired)bsB- "to" setonlyIfHaveCalculated-- Returns:
- negative number of pseudo-hbonds or number of actual hbonds formed
-
setStructureIndexes
public void setStructureIndexes()///////// state definition /////////// -
getModelInfoAsString
-
getSymmetryInfoAsString
-
createModels
public void createModels(int n) -
deleteAtoms
-
clearDB
public void clearDB(int atomIndex) -
adjustAtomArrays
public void adjustAtomArrays(int[] map, int i0, int ac) -
growAtomArrays
protected void growAtomArrays(int newLength) -
addAtom
public Atom addAtom(int modelIndex, Group group, int atomicAndIsotopeNumber, String atomName, String atomType, int atomSerial, int atomSeqID, int atomSite, P3 xyz, float radius, V3 vib, int formalCharge, float partialCharge, float occupancy, float bfactor, Lst<Object> tensors, boolean isHetero, boolean isNegDisorder, byte specialAtomID, BS atomSymmetry, float bondRadius) -
getInlineData
-
isAtomPDB
public boolean isAtomPDB(int i) -
setAtomNamesAndNumbers
public void setAtomNamesAndNumbers(int iFirst, int baseAtomIndex, AtomCollection mergeSet, boolean isModelKit) - Parameters:
iFirst- 0 from ModelLoader.freeze; -1 from Viewer.assignAtombaseAtomIndex-mergeSet-isModelKit-
-
connect
public void connect(float[][] connections) -
setFrameDelayMs
-
getFrameDelayMs
public long getFrameDelayMs(int i) -
getModelIndexFromId
-
getModelSetAuxiliaryInfo
-
getDihedralMap
public int[][] getDihedralMap(int[] alist) -
setModulation
-
getBoundBoxOrientation
-
getUnitCellForAtom
-
clearCache
public void clearCache() -
getSymMatrices
-
getSymmetryInvariant
public int[] getSymmetryInvariant(int iatom) -
getBsBranches
-
recalculatePositionDependentQuantities
-
moveAtoms
-
setDihedrals
-
setAtomCoordsRelative
-
setAtomCoords
-
invertSelected
Carries out a stereochemical inversion through a point, across a plane, or at a chirality center.- Parameters:
pt- point to invert around if not nullplane- plane to invert across if not nulliAtom- atom to switch two groups on if >= 0bsAtoms- atoms to switch for the atom option
-
getCellWeights
-
getAtomGroupQuaternions
-
getConformation
-
getSequenceBits
-
getBioPolymerCountInModel
public int getBioPolymerCountInModel(int modelIndex) -
getPolymerPointsAndVectors
-
recalculateLeadMidpointsAndWingVectors
public void recalculateLeadMidpointsAndWingVectors(int modelIndex) -
calcRasmolHydrogenBonds
public void calcRasmolHydrogenBonds(BS bsA, BS bsB, Lst<Bond> vHBonds, boolean nucleicOnly, int nMax, boolean dsspIgnoreHydrogens, BS bsHBonds) These are not actual hydrogen bonds. They are N-O bonds in proteins and nucleic acids The method is called by AminoPolymer and NucleicPolymer methods, which are indirectly called by ModelCollection.autoHbond- Parameters:
bsA-bsB-vHBonds- vector of bonds to fill; if null, creates the HBondsnucleicOnly-nMax-dsspIgnoreHydrogens-bsHBonds-
-
calculateStraightnessAll
public void calculateStraightnessAll() -
calculateStruts
-
getGroupsWithin
-
getProteinStructureState
-
calculateStructures
-
calculateStructuresAllExcept
public String calculateStructuresAllExcept(BS alreadyDefined, boolean asDSSP, boolean doReport, boolean dsspIgnoreHydrogen, boolean setStructure, boolean includeAlpha, int version) allows rebuilding of PDB structures; also accessed by ModelManager from Eval- Parameters:
alreadyDefined- set to skip calculationasDSSP-doReport-dsspIgnoreHydrogen-setStructure-includeAlpha-version- TODO- Returns:
- report
-
recalculatePolymers
-
calculatePolymers
-
calcSelectedMonomersCount
public void calcSelectedMonomersCount() -
setProteinType
-
setStructureList
-
setConformation
-
getHeteroList
-
getUnitCellPointsWithin
-
calculateDssrProperty
-
getAtomicDSSRData
public float getAtomicDSSRData(int i) -
getAtomCIPChiralityCode
Determine the Cahn-Ingold-Prelog R/S chirality of an atom- Parameters:
atom-- Returns:
- [0:none, 1:R, 2:S]
-
calculateChiralityForAtoms
-
getPointTransf
-
getSymmetryEquivAtoms
Return a bitset of equivalent atoms- Parameters:
bsAtoms-sym-bsModelAtoms-- Returns:
- bitset of equivalent atoms
-
getSymmetryEquivAtomsForAtom
Set a bitset of the equivalent atoms of an atom.- Parameters:
i-bsAtoms- optional bitset of atoms remaining of original set of atomsbsCheck- bitset atoms to check; if bsAtoms is not null, also cleared of found atomsbsEquiv- bitset to return
-
setSpaceGroup
Set up all the model-related fields in association with a new space group. The basis may or may not be known. Passing an empty bitset to ths method will fill it with the basis as determined by trying all the operators.- Parameters:
mi-sg-basis-
-
setModelCage
This is the model-specific cage created by a UNITCELL or MODELKIT UNITCELL command. It will be used provided it is different from the symmetry unit cell associated with a particular space group setting, if it exists.- Parameters:
modelIndex-simpleCage-- Returns:
- simpleCage
-
getBasisAtom
-
updateBasisFromSite
public void updateBasisFromSite(int imodel) -
getConnectingAtoms
-
saveAtomPositions
-
restoreAtomPositions
-
clearUnitCell
public void clearUnitCell(int modelIndex) -
fixDeletedBonds
-
getEquivalentAtoms
-
morphAtoms
-
getCurrentSpinAtoms
include this frame and all related frames- Returns:
- atoms with spin, or at least vibrations
-
getSpin
public int getSpin(int atomIndex) -
refreshDataFramePointGroup
public void refreshDataFramePointGroup(int dataFrameIndex)
-