ParserOptionsSpec
Source: ParserOptionsSpec.ts
Options for reading molecular structures with GLViewer.addModel or GLModel.addMolData.
Options are format-dependent; unsupported options have no effect. Use multimodel
to request multiple structures, frames to append them as trajectory frames to an
existing model, or onemol to combine them when the parser supports it. See FileFormats.
Instance Fields
altLoc: string
Alternate location to select (default A), in addition to atoms without an alternate location. Use '*' to load all; supported by pdb/pdbqt, mmtf, and bcif.
assemblyIndex: number
index of the assembly in symmetry ; supported by mmtf
assignBonds: boolean
Infer bonds from coordinates where supported. Defaults to true for pdb/pdbqt, xyz, cif/mcif, and bcif; LAMMPSTRJ requires true explicitly. Disabling inference does not remove bonds supplied by the file.
doAssembly: boolean
Apply assembly or symmetry transformations from the input; supported by cif/mcif, pdb, mmtf, and bcif.
dontConnectDuplicatedAtoms: boolean
do not detect bonds between symmetries generated with duplicateAssemblyAtoms (cif only - other formats never make bonds between symmetries)
duplicateAssemblyAtoms: boolean
Set to true if you wish to duplicate assembly atoms otherwise false ; supported by all formats with symmetries. Not duplicating will result in faster rendering but it will not be possible to individually style symmetries.
frames: boolean
On subsequent addMolData calls, append parsed structures as new frames instead of adding their atoms to the current frame. Does not itself enable reading multiple structures; use multimodel for that.
hbondCutoff: number
Maximum hydrogen-bond distance in angstroms when computing secondary structure; supported by pdb, pqr, mmtf, cif, and bcif.
keepH: boolean
Retain hydrogens in parsers that can strip them. Defaults to false for pdb/pdbqt, mmtf, and bcif, and true for sdf and mol2. Other parsers may always retain hydrogens.
multimodel: boolean
Read multiple models when supported by the input format.
noComputeSecondaryStructure: boolean
Do not compute secondary structure; supported by pdb, mmtf, cif/mcif, and bcif.
CIF does not read file annotations, so disabling computation leaves residues as coil.
noSecondaryStructure: boolean
Do not compute secondary structure; supported by pdb, mmtf, and pqr.
normalizeAssembly: boolean
shift symmetry mates so their centroid is in the unit cell
onemol: boolean
Combine parsed models into one atom list when supported by the format, typically together with multimodel.
parseStyle: unknown
used to define ChemDoodle styles ; supported by cdjson
style: AtomStyleSpec
Apply this style after parsing, replacing the default or file-supplied atom styles.
unboundCations: boolean
When inferring bonds, do not assign bonds to common cations.
vibrate: object
Generate vibration frames from atom displacement vectors when both frames and amplitude are supplied and nonzero.
Properties
frames(number, optional) — Number of vibration frames to create.amplitude(number, optional) — Scale applied to the atom displacement vectors.
wrapAtoms: boolean
Set to true with duplicateAssemblyAtoms to individually wrap atoms (from symmetries) into unit cell