molstar 3.8.2 → 3.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -20
- package/README.md +202 -202
- package/build/viewer/embedded.html +43 -43
- package/build/viewer/index.html +109 -106
- package/build/viewer/molstar.js +1 -1
- package/lib/apps/docking-viewer/index.html +36 -36
- package/lib/apps/viewer/app.d.ts +5 -2
- package/lib/apps/viewer/app.js +11 -7
- package/lib/apps/viewer/embedded.html +43 -43
- package/lib/apps/viewer/index.html +109 -106
- package/lib/cli/cif2bcif/converter.js +1 -1
- package/lib/commonjs/apps/viewer/app.d.ts +5 -2
- package/lib/commonjs/apps/viewer/app.js +12 -7
- package/lib/commonjs/cli/cif2bcif/converter.js +1 -1
- package/lib/commonjs/examples/alpha-orbitals/index.d.ts +1 -1
- package/lib/commonjs/examples/alpha-orbitals/index.js +4 -1
- package/lib/commonjs/examples/basic-wrapper/custom-theme.js +1 -1
- package/lib/commonjs/examples/proteopedia-wrapper/coloring.js +3 -3
- package/lib/commonjs/extensions/alpha-orbitals/density.d.ts +1 -1
- package/lib/commonjs/extensions/alpha-orbitals/density.js +6 -2
- package/lib/commonjs/extensions/alpha-orbitals/orbitals.d.ts +1 -1
- package/lib/commonjs/extensions/alpha-orbitals/orbitals.js +6 -3
- package/lib/commonjs/extensions/anvil/algorithm.js +1 -1
- package/lib/commonjs/extensions/cellpack/color/generate.js +1 -1
- package/lib/commonjs/extensions/cellpack/color/provided.js +1 -1
- package/lib/commonjs/extensions/cellpack/state.js +1 -1
- package/lib/commonjs/extensions/dnatco/confal-pyramids/color.js +1 -1
- package/lib/commonjs/extensions/g3d/model.js +1 -1
- package/lib/commonjs/extensions/geo-export/ui.js +1 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/color/plddt.js +1 -1
- package/lib/commonjs/extensions/model-archive/quality-assessment/color/qmean.js +1 -1
- package/lib/commonjs/extensions/mp4-export/ui.js +1 -0
- package/lib/commonjs/extensions/pdbe/structure-quality-report/color.js +1 -1
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/color.js +4 -4
- package/lib/commonjs/extensions/rcsb/validation-report/color/density-fit.js +1 -1
- package/lib/commonjs/extensions/rcsb/validation-report/color/geometry-quality.js +2 -2
- package/lib/commonjs/extensions/rcsb/validation-report/color/random-coil-index.js +1 -1
- package/lib/commonjs/extensions/rcsb/validation-report/representation.js +2 -2
- package/lib/commonjs/mol-canvas3d/canvas3d.js +4 -0
- package/lib/commonjs/mol-canvas3d/controls/trackball.js +7 -7
- package/lib/commonjs/mol-canvas3d/helper/camera-helper.js +14 -14
- package/lib/commonjs/mol-canvas3d/helper/interaction-events.js +5 -5
- package/lib/commonjs/mol-canvas3d/passes/draw.js +34 -5
- package/lib/commonjs/mol-canvas3d/passes/fxaa.js +5 -0
- package/lib/commonjs/mol-canvas3d/passes/marking.js +5 -0
- package/lib/commonjs/mol-canvas3d/passes/multi-sample.js +9 -0
- package/lib/commonjs/mol-canvas3d/passes/pick.d.ts +18 -5
- package/lib/commonjs/mol-canvas3d/passes/pick.js +125 -24
- package/lib/commonjs/mol-canvas3d/passes/postprocessing.js +5 -0
- package/lib/commonjs/mol-canvas3d/passes/smaa.js +4 -0
- package/lib/commonjs/mol-canvas3d/passes/wboit.js +4 -0
- package/lib/commonjs/mol-data/db/column.js +5 -5
- package/lib/commonjs/mol-data/db/table.js +2 -2
- package/lib/commonjs/mol-data/util/array.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +0 -1
- package/lib/commonjs/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js +13 -0
- package/lib/commonjs/mol-gl/compute/grid3d.d.ts +2 -2
- package/lib/commonjs/mol-gl/compute/grid3d.js +30 -8
- package/lib/commonjs/mol-gl/compute/histogram-pyramid/reduction.d.ts +1 -1
- package/lib/commonjs/mol-gl/compute/histogram-pyramid/reduction.js +6 -1
- package/lib/commonjs/mol-gl/compute/histogram-pyramid/sum.d.ts +1 -1
- package/lib/commonjs/mol-gl/compute/histogram-pyramid/sum.js +6 -1
- package/lib/commonjs/mol-gl/compute/marching-cubes/active-voxels.d.ts +1 -1
- package/lib/commonjs/mol-gl/compute/marching-cubes/active-voxels.js +6 -1
- package/lib/commonjs/mol-gl/compute/marching-cubes/isosurface.d.ts +1 -1
- package/lib/commonjs/mol-gl/compute/marching-cubes/isosurface.js +10 -10
- package/lib/commonjs/mol-gl/renderer.js +77 -32
- package/lib/commonjs/mol-gl/scene.js +2 -0
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/cylinders.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/cylinders.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/image.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/image.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/lines.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/lines.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/mesh.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/mesh.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/points.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/points.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/spheres.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/spheres.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/text.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/text.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader-code.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader-code.js +41 -9
- package/lib/commonjs/mol-gl/webgl/compat.d.ts +34 -1
- package/lib/commonjs/mol-gl/webgl/compat.js +50 -2
- package/lib/commonjs/mol-gl/webgl/context.d.ts +2 -0
- package/lib/commonjs/mol-gl/webgl/context.js +3 -0
- package/lib/commonjs/mol-gl/webgl/extensions.d.ts +3 -2
- package/lib/commonjs/mol-gl/webgl/extensions.js +6 -1
- package/lib/commonjs/mol-gl/webgl/timer.d.ts +22 -0
- package/lib/commonjs/mol-gl/webgl/timer.js +169 -0
- package/lib/commonjs/mol-io/common/binary-cif/array-encoder.js +18 -18
- package/lib/commonjs/mol-io/common/binary-cif/decoder.js +16 -16
- package/lib/commonjs/mol-io/common/binary-cif/encoding.js +9 -9
- package/lib/commonjs/mol-io/reader/cif/binary/field.js +3 -3
- package/lib/commonjs/mol-io/reader/cif/data-model.js +14 -14
- package/lib/commonjs/mol-io/reader/cif/schema.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/text/parser.js +23 -23
- package/lib/commonjs/mol-io/reader/common/text/column/fixed.js +1 -1
- package/lib/commonjs/mol-io/reader/common/text/column/token.js +1 -1
- package/lib/commonjs/mol-io/reader/common/text/number-parser.js +6 -6
- package/lib/commonjs/mol-io/reader/csv/parser.js +8 -8
- package/lib/commonjs/mol-io/writer/cif/encoder/binary.js +10 -10
- package/lib/commonjs/mol-io/writer/cif/encoder/text.js +7 -7
- package/lib/commonjs/mol-io/writer/cif/encoder.js +8 -8
- package/lib/commonjs/mol-io/writer/mol2/encoder.js +4 -4
- package/lib/commonjs/mol-math/geometry/gaussian-density/gpu.js +13 -2
- package/lib/commonjs/mol-model/sequence/alignment/sequence.js +3 -3
- package/lib/commonjs/mol-model/sequence/sequence.js +9 -9
- package/lib/commonjs/mol-model/structure/export/categories/atom_site_operator_mapping.js +3 -3
- package/lib/commonjs/mol-model/structure/export/categories/secondary-structure.js +2 -2
- package/lib/commonjs/mol-model/structure/export/categories/utils.js +1 -1
- package/lib/commonjs/mol-model/structure/model/model.js +2 -2
- package/lib/commonjs/mol-model/structure/model/properties/custom/indexed.js +6 -6
- package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-ranges.js +1 -1
- package/lib/commonjs/mol-model/structure/model/types.js +116 -116
- package/lib/commonjs/mol-model/structure/query/context.js +1 -1
- package/lib/commonjs/mol-model/structure/query/queries/generators.js +5 -5
- package/lib/commonjs/mol-model/structure/query/queries/internal.js +4 -4
- package/lib/commonjs/mol-model/structure/query/queries/modifiers.js +4 -4
- package/lib/commonjs/mol-model/structure/query/utils/structure-distance.d.ts +5 -54
- package/lib/commonjs/mol-model/structure/query/utils/structure-distance.js +9 -9
- package/lib/commonjs/mol-model/structure/structure/carbohydrates/constants.d.ts +3 -1
- package/lib/commonjs/mol-model/structure/structure/carbohydrates/constants.js +192 -108
- package/lib/commonjs/mol-model/structure/structure/element/loci.js +5 -5
- package/lib/commonjs/mol-model/structure/structure/element/stats.js +5 -5
- package/lib/commonjs/mol-model/structure/structure/properties.js +5 -5
- package/lib/commonjs/mol-model/structure/structure/structure.js +11 -11
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/inter-compute.js +5 -5
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/intra-compute.js +4 -4
- package/lib/commonjs/mol-model/structure/structure/unit/bonds.js +2 -2
- package/lib/commonjs/mol-model/structure/structure/unit/resonance.js +1 -1
- package/lib/commonjs/mol-model/structure/structure/unit/rings/compute.js +6 -6
- package/lib/commonjs/mol-model/structure/structure/unit/rings.js +6 -6
- package/lib/commonjs/mol-model/structure/structure/unit.js +16 -16
- package/lib/commonjs/mol-model/structure/structure/util/superposition-sifts-mapping.js +1 -1
- package/lib/commonjs/mol-model/structure/util.js +4 -4
- package/lib/commonjs/mol-model-formats/structure/basic/atomic.js +2 -2
- package/lib/commonjs/mol-model-formats/structure/basic/parser.js +4 -4
- package/lib/commonjs/mol-model-formats/structure/basic/properties.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/basic/sort.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/basic/util.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/cif-core.js +6 -6
- package/lib/commonjs/mol-model-formats/structure/common/entity.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/cube.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/gro.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/mol.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/mol2.js +4 -4
- package/lib/commonjs/mol-model-formats/structure/prmtop.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/property/bonds/chem_comp.js +3 -3
- package/lib/commonjs/mol-model-formats/structure/property/bonds/index-pair.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/property/bonds/struct_conn.js +6 -6
- package/lib/commonjs/mol-model-formats/structure/property/secondary-structure.js +8 -8
- package/lib/commonjs/mol-model-formats/structure/psf.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/top.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/xyz.js +1 -1
- package/lib/commonjs/mol-model-props/computed/accessible-surface-area/shrake-rupley/radii.js +2 -2
- package/lib/commonjs/mol-model-props/computed/accessible-surface-area/shrake-rupley.js +3 -3
- package/lib/commonjs/mol-model-props/computed/accessible-surface-area.js +2 -2
- package/lib/commonjs/mol-model-props/computed/chemistry/functional-group.js +31 -31
- package/lib/commonjs/mol-model-props/computed/chemistry/geometry.js +22 -22
- package/lib/commonjs/mol-model-props/computed/chemistry/valence-model.js +32 -32
- package/lib/commonjs/mol-model-props/computed/interactions/charged.js +39 -39
- package/lib/commonjs/mol-model-props/computed/interactions/common.js +34 -34
- package/lib/commonjs/mol-model-props/computed/interactions/contacts-builder.js +1 -1
- package/lib/commonjs/mol-model-props/computed/interactions/contacts.js +1 -1
- package/lib/commonjs/mol-model-props/computed/interactions/halogen-bonds.js +12 -12
- package/lib/commonjs/mol-model-props/computed/interactions/hydrogen-bonds.js +32 -32
- package/lib/commonjs/mol-model-props/computed/interactions/hydrophobic.js +9 -9
- package/lib/commonjs/mol-model-props/computed/interactions/metal.js +26 -26
- package/lib/commonjs/mol-model-props/computed/interactions/refine.js +20 -20
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.js +2 -2
- package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.js +2 -2
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/bends.js +1 -1
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/bridges.js +12 -12
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/helices.js +6 -6
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/ladders.js +3 -3
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/sheets.js +11 -11
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/turns.js +3 -3
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp.js +30 -30
- package/lib/commonjs/mol-model-props/computed/themes/accessible-surface-area.js +1 -1
- package/lib/commonjs/mol-model-props/computed/themes/interaction-type.js +10 -10
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/color.js +1 -1
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/format.js +3 -3
- package/lib/commonjs/mol-model-props/sequence/sifts-mapping.js +1 -1
- package/lib/commonjs/mol-model-props/sequence/themes/sifts-mapping.js +1 -1
- package/lib/commonjs/mol-plugin/animation-loop.d.ts +2 -1
- package/lib/commonjs/mol-plugin/animation-loop.js +18 -5
- package/lib/commonjs/mol-plugin/behavior/dynamic/camera.js +12 -12
- package/lib/commonjs/mol-plugin/behavior/dynamic/representation.js +7 -7
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
- package/lib/commonjs/mol-plugin/config.d.ts +3 -0
- package/lib/commonjs/mol-plugin/config.js +3 -1
- package/lib/commonjs/mol-plugin/context.d.ts +2 -2
- package/lib/commonjs/mol-plugin/context.js +3 -0
- package/lib/commonjs/mol-plugin/state.d.ts +1 -14
- package/lib/commonjs/mol-plugin-state/formats/volume.d.ts +12 -11
- package/lib/commonjs/mol-plugin-state/formats/volume.js +20 -13
- package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js +5 -5
- package/lib/commonjs/mol-plugin-state/transforms/representation.js +2 -2
- package/lib/commonjs/mol-plugin-ui/controls/parameters.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/controls.js +1 -1
- package/lib/commonjs/mol-plugin-ui/sequence/polymer.js +1 -1
- package/lib/commonjs/mol-plugin-ui/sequence/sequence.js +1 -1
- package/lib/commonjs/mol-plugin-ui/state/snapshots.js +1 -0
- package/lib/commonjs/mol-plugin-ui/structure/focus.js +1 -1
- package/lib/commonjs/mol-plugin-ui/viewport/screenshot.js +1 -0
- package/lib/commonjs/mol-plugin-ui/viewport.d.ts +2 -2
- package/lib/commonjs/mol-repr/shape/representation.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/representation.js +2 -1
- package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/complex-visual.js +2 -1
- package/lib/commonjs/mol-repr/structure/units-visual.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/units-visual.js +2 -1
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.js +10 -10
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.js +10 -10
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.js +12 -15
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.js +12 -15
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.js +16 -16
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.js +1 -1
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.js +9 -0
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.js +4 -4
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.js +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/util/bond.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/util/common.js +3 -3
- package/lib/commonjs/mol-repr/structure/visual/util/link.js +30 -30
- package/lib/commonjs/mol-repr/structure/visual/util/polymer/backbone.js +6 -6
- package/lib/commonjs/mol-repr/structure/visual/util/polymer/gap-iterator.js +3 -3
- package/lib/commonjs/mol-repr/structure/visual/util/polymer/trace-iterator.js +20 -20
- package/lib/commonjs/mol-repr/structure/visual/util/polymer.js +6 -6
- package/lib/commonjs/mol-repr/volume/representation.d.ts +1 -1
- package/lib/commonjs/mol-repr/volume/representation.js +2 -1
- package/lib/commonjs/mol-script/language/builder.d.ts +1 -0
- package/lib/commonjs/mol-script/language/symbol-table/core.d.ts +2 -2
- package/lib/commonjs/mol-script/runtime/query/table.js +13 -13
- package/lib/commonjs/mol-state/object.d.ts +3 -3
- package/lib/commonjs/mol-task/util/user-timing.js +1 -1
- package/lib/commonjs/mol-theme/clipping.js +19 -19
- package/lib/commonjs/mol-theme/color/atom-id.js +1 -1
- package/lib/commonjs/mol-theme/color/carbohydrate-symbol.js +1 -1
- package/lib/commonjs/mol-theme/color/chain-id.js +4 -4
- package/lib/commonjs/mol-theme/color/element-index.js +1 -1
- package/lib/commonjs/mol-theme/color/element-symbol.js +1 -1
- package/lib/commonjs/mol-theme/color/entity-id.js +4 -4
- package/lib/commonjs/mol-theme/color/entity-source.js +5 -4
- package/lib/commonjs/mol-theme/color/hydrophobicity.js +1 -1
- package/lib/commonjs/mol-theme/color/illustrative.js +1 -1
- package/lib/commonjs/mol-theme/color/model-index.js +1 -1
- package/lib/commonjs/mol-theme/color/molecule-type.js +8 -8
- package/lib/commonjs/mol-theme/color/occupancy.js +1 -1
- package/lib/commonjs/mol-theme/color/operator-hkl.js +1 -1
- package/lib/commonjs/mol-theme/color/operator-name.js +1 -1
- package/lib/commonjs/mol-theme/color/partial-charge.js +1 -1
- package/lib/commonjs/mol-theme/color/polymer-id.js +4 -4
- package/lib/commonjs/mol-theme/color/polymer-index.js +1 -1
- package/lib/commonjs/mol-theme/color/residue-name.js +1 -1
- package/lib/commonjs/mol-theme/color/secondary-structure.js +12 -12
- package/lib/commonjs/mol-theme/color/sequence-id.js +7 -7
- package/lib/commonjs/mol-theme/color/shape-group.js +1 -1
- package/lib/commonjs/mol-theme/color/uncertainty.js +1 -1
- package/lib/commonjs/mol-theme/color/uniform.js +1 -1
- package/lib/commonjs/mol-theme/color/unit-index.js +1 -1
- package/lib/commonjs/mol-theme/color/volume-value.js +1 -1
- package/lib/commonjs/mol-theme/label.js +3 -3
- package/lib/commonjs/mol-util/binding.js +4 -4
- package/lib/commonjs/mol-util/debug.d.ts +6 -1
- package/lib/commonjs/mol-util/debug.js +11 -1
- package/lib/commonjs/mol-util/input/input-observer.js +20 -20
- package/lib/commonjs/mol-util/string-builder.js +1 -1
- package/lib/commonjs/servers/model/preprocess/converter.js +1 -1
- package/lib/commonjs/servers/model/server/query.js +1 -1
- package/lib/commonjs/servers/model/utils/fetch-retry.js +3 -2
- package/lib/commonjs/servers/volume/server/algebra/coordinate.js +6 -6
- package/lib/commonjs/servers/volume/server/query/encode.js +1 -1
- package/lib/examples/alpha-orbitals/index.d.ts +1 -1
- package/lib/examples/alpha-orbitals/index.html +72 -61
- package/lib/examples/alpha-orbitals/index.js +4 -1
- package/lib/examples/basic-wrapper/custom-theme.js +1 -1
- package/lib/examples/basic-wrapper/index.html +137 -137
- package/lib/examples/lighting/index.html +88 -88
- package/lib/examples/proteopedia-wrapper/coloring.js +3 -3
- package/lib/examples/proteopedia-wrapper/index.html +236 -236
- package/lib/extensions/alpha-orbitals/density.d.ts +1 -1
- package/lib/extensions/alpha-orbitals/density.js +6 -2
- package/lib/extensions/alpha-orbitals/orbitals.d.ts +1 -1
- package/lib/extensions/alpha-orbitals/orbitals.js +6 -3
- package/lib/extensions/anvil/algorithm.js +1 -1
- package/lib/extensions/cellpack/color/generate.js +1 -1
- package/lib/extensions/cellpack/color/provided.js +1 -1
- package/lib/extensions/cellpack/state.js +1 -1
- package/lib/extensions/dnatco/confal-pyramids/color.js +1 -1
- package/lib/extensions/g3d/model.js +1 -1
- package/lib/extensions/geo-export/ui.js +1 -0
- package/lib/extensions/model-archive/quality-assessment/color/plddt.js +1 -1
- package/lib/extensions/model-archive/quality-assessment/color/qmean.js +1 -1
- package/lib/extensions/mp4-export/ui.js +1 -0
- package/lib/extensions/pdbe/structure-quality-report/color.js +1 -1
- package/lib/extensions/rcsb/assembly-symmetry/color.js +4 -4
- package/lib/extensions/rcsb/validation-report/color/density-fit.js +1 -1
- package/lib/extensions/rcsb/validation-report/color/geometry-quality.js +2 -2
- package/lib/extensions/rcsb/validation-report/color/random-coil-index.js +1 -1
- package/lib/extensions/rcsb/validation-report/representation.js +2 -2
- package/lib/mol-canvas3d/canvas3d.js +5 -1
- package/lib/mol-canvas3d/controls/trackball.js +7 -7
- package/lib/mol-canvas3d/helper/camera-helper.js +14 -14
- package/lib/mol-canvas3d/helper/interaction-events.js +5 -5
- package/lib/mol-canvas3d/passes/draw.js +34 -5
- package/lib/mol-canvas3d/passes/fxaa.js +5 -0
- package/lib/mol-canvas3d/passes/marking.js +5 -0
- package/lib/mol-canvas3d/passes/multi-sample.js +9 -0
- package/lib/mol-canvas3d/passes/pick.d.ts +18 -5
- package/lib/mol-canvas3d/passes/pick.js +125 -24
- package/lib/mol-canvas3d/passes/postprocessing.js +5 -0
- package/lib/mol-canvas3d/passes/smaa.js +5 -1
- package/lib/mol-canvas3d/passes/wboit.js +5 -1
- package/lib/mol-data/db/column.js +5 -5
- package/lib/mol-data/db/table.js +2 -2
- package/lib/mol-data/util/array.d.ts +1 -1
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +1 -1
- package/lib/mol-geo/geometry/lines/lines.d.ts +0 -1
- package/lib/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/mol-geo/geometry/texture-mesh/color-smoothing.js +13 -0
- package/lib/mol-gl/compute/grid3d.d.ts +2 -2
- package/lib/mol-gl/compute/grid3d.js +30 -8
- package/lib/mol-gl/compute/histogram-pyramid/reduction.d.ts +1 -1
- package/lib/mol-gl/compute/histogram-pyramid/reduction.js +6 -1
- package/lib/mol-gl/compute/histogram-pyramid/sum.d.ts +1 -1
- package/lib/mol-gl/compute/histogram-pyramid/sum.js +6 -1
- package/lib/mol-gl/compute/marching-cubes/active-voxels.d.ts +1 -1
- package/lib/mol-gl/compute/marching-cubes/active-voxels.js +6 -1
- package/lib/mol-gl/compute/marching-cubes/isosurface.d.ts +1 -1
- package/lib/mol-gl/compute/marching-cubes/isosurface.js +10 -10
- package/lib/mol-gl/renderer.js +77 -32
- package/lib/mol-gl/scene.js +2 -0
- package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
- package/lib/mol-gl/shader/cylinders.frag.d.ts +1 -1
- package/lib/mol-gl/shader/cylinders.frag.js +1 -1
- package/lib/mol-gl/shader/direct-volume.frag.d.ts +1 -1
- package/lib/mol-gl/shader/direct-volume.frag.js +1 -1
- package/lib/mol-gl/shader/image.frag.d.ts +1 -1
- package/lib/mol-gl/shader/image.frag.js +1 -1
- package/lib/mol-gl/shader/lines.frag.d.ts +1 -1
- package/lib/mol-gl/shader/lines.frag.js +1 -1
- package/lib/mol-gl/shader/mesh.frag.d.ts +1 -1
- package/lib/mol-gl/shader/mesh.frag.js +1 -1
- package/lib/mol-gl/shader/points.frag.d.ts +1 -1
- package/lib/mol-gl/shader/points.frag.js +1 -1
- package/lib/mol-gl/shader/spheres.frag.d.ts +1 -1
- package/lib/mol-gl/shader/spheres.frag.js +1 -1
- package/lib/mol-gl/shader/text.frag.d.ts +1 -1
- package/lib/mol-gl/shader/text.frag.js +1 -1
- package/lib/mol-gl/shader-code.d.ts +1 -1
- package/lib/mol-gl/shader-code.js +41 -9
- package/lib/mol-gl/webgl/compat.d.ts +34 -1
- package/lib/mol-gl/webgl/compat.js +48 -1
- package/lib/mol-gl/webgl/context.d.ts +2 -0
- package/lib/mol-gl/webgl/context.js +3 -0
- package/lib/mol-gl/webgl/extensions.d.ts +3 -2
- package/lib/mol-gl/webgl/extensions.js +7 -2
- package/lib/mol-gl/webgl/timer.d.ts +22 -0
- package/lib/mol-gl/webgl/timer.js +164 -0
- package/lib/mol-io/common/binary-cif/array-encoder.js +18 -18
- package/lib/mol-io/common/binary-cif/decoder.js +16 -16
- package/lib/mol-io/common/binary-cif/encoding.js +9 -9
- package/lib/mol-io/reader/cif/binary/field.js +3 -3
- package/lib/mol-io/reader/cif/data-model.js +14 -14
- package/lib/mol-io/reader/cif/schema.js +1 -1
- package/lib/mol-io/reader/cif/text/parser.js +23 -23
- package/lib/mol-io/reader/common/text/column/fixed.js +1 -1
- package/lib/mol-io/reader/common/text/column/token.js +1 -1
- package/lib/mol-io/reader/common/text/number-parser.js +6 -6
- package/lib/mol-io/reader/csv/parser.js +8 -8
- package/lib/mol-io/writer/cif/encoder/binary.js +10 -10
- package/lib/mol-io/writer/cif/encoder/text.js +7 -7
- package/lib/mol-io/writer/cif/encoder.js +8 -8
- package/lib/mol-io/writer/mol2/encoder.js +4 -4
- package/lib/mol-math/geometry/gaussian-density/gpu.js +13 -2
- package/lib/mol-model/sequence/alignment/sequence.js +3 -3
- package/lib/mol-model/sequence/sequence.js +9 -9
- package/lib/mol-model/structure/export/categories/atom_site_operator_mapping.js +3 -3
- package/lib/mol-model/structure/export/categories/secondary-structure.js +2 -2
- package/lib/mol-model/structure/export/categories/utils.js +1 -1
- package/lib/mol-model/structure/model/model.js +2 -2
- package/lib/mol-model/structure/model/properties/custom/indexed.js +6 -6
- package/lib/mol-model/structure/model/properties/utils/atomic-ranges.js +1 -1
- package/lib/mol-model/structure/model/types.js +116 -116
- package/lib/mol-model/structure/query/context.js +1 -1
- package/lib/mol-model/structure/query/queries/generators.js +5 -5
- package/lib/mol-model/structure/query/queries/internal.js +4 -4
- package/lib/mol-model/structure/query/queries/modifiers.js +4 -4
- package/lib/mol-model/structure/query/utils/structure-distance.d.ts +5 -54
- package/lib/mol-model/structure/query/utils/structure-distance.js +9 -9
- package/lib/mol-model/structure/structure/carbohydrates/constants.d.ts +3 -1
- package/lib/mol-model/structure/structure/carbohydrates/constants.js +190 -107
- package/lib/mol-model/structure/structure/element/loci.js +5 -5
- package/lib/mol-model/structure/structure/element/stats.js +5 -5
- package/lib/mol-model/structure/structure/properties.js +5 -5
- package/lib/mol-model/structure/structure/structure.js +11 -11
- package/lib/mol-model/structure/structure/unit/bonds/inter-compute.js +5 -5
- package/lib/mol-model/structure/structure/unit/bonds/intra-compute.js +4 -4
- package/lib/mol-model/structure/structure/unit/bonds.js +2 -2
- package/lib/mol-model/structure/structure/unit/resonance.js +1 -1
- package/lib/mol-model/structure/structure/unit/rings/compute.js +6 -6
- package/lib/mol-model/structure/structure/unit/rings.js +6 -6
- package/lib/mol-model/structure/structure/unit.js +16 -16
- package/lib/mol-model/structure/structure/util/superposition-sifts-mapping.js +1 -1
- package/lib/mol-model/structure/util.js +4 -4
- package/lib/mol-model-formats/structure/basic/atomic.js +2 -2
- package/lib/mol-model-formats/structure/basic/parser.js +4 -4
- package/lib/mol-model-formats/structure/basic/properties.js +1 -1
- package/lib/mol-model-formats/structure/basic/sort.js +1 -1
- package/lib/mol-model-formats/structure/basic/util.js +1 -1
- package/lib/mol-model-formats/structure/cif-core.js +6 -6
- package/lib/mol-model-formats/structure/common/entity.js +1 -1
- package/lib/mol-model-formats/structure/cube.js +1 -1
- package/lib/mol-model-formats/structure/gro.js +1 -1
- package/lib/mol-model-formats/structure/mol.js +1 -1
- package/lib/mol-model-formats/structure/mol2.js +4 -4
- package/lib/mol-model-formats/structure/prmtop.js +1 -1
- package/lib/mol-model-formats/structure/property/bonds/chem_comp.js +3 -3
- package/lib/mol-model-formats/structure/property/bonds/index-pair.js +1 -1
- package/lib/mol-model-formats/structure/property/bonds/struct_conn.js +6 -6
- package/lib/mol-model-formats/structure/property/secondary-structure.js +8 -8
- package/lib/mol-model-formats/structure/psf.js +1 -1
- package/lib/mol-model-formats/structure/top.js +1 -1
- package/lib/mol-model-formats/structure/xyz.js +1 -1
- package/lib/mol-model-props/computed/accessible-surface-area/shrake-rupley/radii.js +2 -2
- package/lib/mol-model-props/computed/accessible-surface-area/shrake-rupley.js +3 -3
- package/lib/mol-model-props/computed/accessible-surface-area.js +2 -2
- package/lib/mol-model-props/computed/chemistry/functional-group.js +31 -31
- package/lib/mol-model-props/computed/chemistry/geometry.js +22 -22
- package/lib/mol-model-props/computed/chemistry/valence-model.js +32 -32
- package/lib/mol-model-props/computed/interactions/charged.js +39 -39
- package/lib/mol-model-props/computed/interactions/common.js +34 -34
- package/lib/mol-model-props/computed/interactions/contacts-builder.js +1 -1
- package/lib/mol-model-props/computed/interactions/contacts.js +1 -1
- package/lib/mol-model-props/computed/interactions/halogen-bonds.js +12 -12
- package/lib/mol-model-props/computed/interactions/hydrogen-bonds.js +32 -32
- package/lib/mol-model-props/computed/interactions/hydrophobic.js +9 -9
- package/lib/mol-model-props/computed/interactions/metal.js +26 -26
- package/lib/mol-model-props/computed/interactions/refine.js +20 -20
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.js +2 -2
- package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.js +2 -2
- package/lib/mol-model-props/computed/secondary-structure/dssp/bends.js +1 -1
- package/lib/mol-model-props/computed/secondary-structure/dssp/bridges.js +12 -12
- package/lib/mol-model-props/computed/secondary-structure/dssp/helices.js +6 -6
- package/lib/mol-model-props/computed/secondary-structure/dssp/ladders.js +3 -3
- package/lib/mol-model-props/computed/secondary-structure/dssp/sheets.js +11 -11
- package/lib/mol-model-props/computed/secondary-structure/dssp/turns.js +3 -3
- package/lib/mol-model-props/computed/secondary-structure/dssp.js +30 -30
- package/lib/mol-model-props/computed/themes/accessible-surface-area.js +1 -1
- package/lib/mol-model-props/computed/themes/interaction-type.js +10 -10
- package/lib/mol-model-props/integrative/cross-link-restraint/color.js +1 -1
- package/lib/mol-model-props/integrative/cross-link-restraint/format.js +3 -3
- package/lib/mol-model-props/sequence/sifts-mapping.js +1 -1
- package/lib/mol-model-props/sequence/themes/sifts-mapping.js +1 -1
- package/lib/mol-plugin/animation-loop.d.ts +2 -1
- package/lib/mol-plugin/animation-loop.js +18 -5
- package/lib/mol-plugin/behavior/dynamic/camera.js +12 -12
- package/lib/mol-plugin/behavior/dynamic/representation.js +7 -7
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
- package/lib/mol-plugin/config.d.ts +3 -0
- package/lib/mol-plugin/config.js +3 -1
- package/lib/mol-plugin/context.d.ts +2 -2
- package/lib/mol-plugin/context.js +3 -0
- package/lib/mol-plugin/state.d.ts +1 -14
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-state/formats/volume.d.ts +12 -11
- package/lib/mol-plugin-state/formats/volume.js +20 -13
- package/lib/mol-plugin-state/helpers/structure-selection-query.js +5 -5
- package/lib/mol-plugin-state/transforms/representation.js +2 -2
- package/lib/mol-plugin-ui/controls/parameters.d.ts +1 -1
- package/lib/mol-plugin-ui/controls.js +1 -1
- package/lib/mol-plugin-ui/sequence/polymer.js +1 -1
- package/lib/mol-plugin-ui/sequence/sequence.js +1 -1
- package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
- package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
- package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
- package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
- package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
- package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
- package/lib/mol-plugin-ui/skin/base/components/misc.scss +643 -643
- package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
- package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
- package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
- package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
- package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
- package/lib/mol-plugin-ui/skin/base/components/viewport.scss +128 -128
- package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
- package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
- package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
- package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
- package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
- package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
- package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
- package/lib/mol-plugin-ui/skin/blue.scss +1 -1
- package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
- package/lib/mol-plugin-ui/skin/dark.scss +1 -1
- package/lib/mol-plugin-ui/skin/light.scss +1 -1
- package/lib/mol-plugin-ui/state/snapshots.js +1 -0
- package/lib/mol-plugin-ui/structure/focus.js +1 -1
- package/lib/mol-plugin-ui/viewport/screenshot.js +1 -0
- package/lib/mol-plugin-ui/viewport.d.ts +2 -2
- package/lib/mol-repr/shape/representation.d.ts +1 -1
- package/lib/mol-repr/shape/representation.js +2 -1
- package/lib/mol-repr/structure/complex-visual.d.ts +1 -1
- package/lib/mol-repr/structure/complex-visual.js +2 -1
- package/lib/mol-repr/structure/units-visual.d.ts +1 -1
- package/lib/mol-repr/structure/units-visual.js +2 -1
- package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.js +10 -10
- package/lib/mol-repr/structure/visual/bond-inter-unit-line.js +10 -10
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.js +12 -15
- package/lib/mol-repr/structure/visual/bond-intra-unit-line.js +12 -15
- package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.js +16 -16
- package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.js +1 -1
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.js +9 -0
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.js +4 -4
- package/lib/mol-repr/structure/visual/polymer-direction-wedge.js +1 -1
- package/lib/mol-repr/structure/visual/polymer-trace-mesh.js +2 -2
- package/lib/mol-repr/structure/visual/util/bond.js +2 -2
- package/lib/mol-repr/structure/visual/util/common.js +3 -3
- package/lib/mol-repr/structure/visual/util/link.js +30 -30
- package/lib/mol-repr/structure/visual/util/polymer/backbone.js +6 -6
- package/lib/mol-repr/structure/visual/util/polymer/gap-iterator.js +3 -3
- package/lib/mol-repr/structure/visual/util/polymer/trace-iterator.js +20 -20
- package/lib/mol-repr/structure/visual/util/polymer.js +6 -6
- package/lib/mol-repr/volume/representation.d.ts +1 -1
- package/lib/mol-repr/volume/representation.js +2 -1
- package/lib/mol-script/language/builder.d.ts +1 -0
- package/lib/mol-script/language/symbol-table/core.d.ts +2 -2
- package/lib/mol-script/runtime/query/table.js +13 -13
- package/lib/mol-state/object.d.ts +3 -3
- package/lib/mol-task/util/user-timing.js +1 -1
- package/lib/mol-theme/clipping.js +19 -19
- package/lib/mol-theme/color/atom-id.js +1 -1
- package/lib/mol-theme/color/carbohydrate-symbol.js +1 -1
- package/lib/mol-theme/color/chain-id.js +4 -4
- package/lib/mol-theme/color/element-index.js +1 -1
- package/lib/mol-theme/color/element-symbol.js +1 -1
- package/lib/mol-theme/color/entity-id.js +4 -4
- package/lib/mol-theme/color/entity-source.js +5 -4
- package/lib/mol-theme/color/hydrophobicity.js +1 -1
- package/lib/mol-theme/color/illustrative.js +1 -1
- package/lib/mol-theme/color/model-index.js +1 -1
- package/lib/mol-theme/color/molecule-type.js +8 -8
- package/lib/mol-theme/color/occupancy.js +1 -1
- package/lib/mol-theme/color/operator-hkl.js +1 -1
- package/lib/mol-theme/color/operator-name.js +1 -1
- package/lib/mol-theme/color/partial-charge.js +1 -1
- package/lib/mol-theme/color/polymer-id.js +4 -4
- package/lib/mol-theme/color/polymer-index.js +1 -1
- package/lib/mol-theme/color/residue-name.js +1 -1
- package/lib/mol-theme/color/secondary-structure.js +12 -12
- package/lib/mol-theme/color/sequence-id.js +7 -7
- package/lib/mol-theme/color/shape-group.js +1 -1
- package/lib/mol-theme/color/uncertainty.js +1 -1
- package/lib/mol-theme/color/uniform.js +1 -1
- package/lib/mol-theme/color/unit-index.js +1 -1
- package/lib/mol-theme/color/volume-value.js +1 -1
- package/lib/mol-theme/label.js +3 -3
- package/lib/mol-util/binding.js +4 -4
- package/lib/mol-util/debug.d.ts +6 -1
- package/lib/mol-util/debug.js +9 -1
- package/lib/mol-util/input/input-observer.js +20 -20
- package/lib/mol-util/string-builder.js +1 -1
- package/lib/servers/model/preprocess/converter.js +1 -1
- package/lib/servers/model/server/query.js +1 -1
- package/lib/servers/model/utils/fetch-retry.js +3 -2
- package/lib/servers/volume/server/algebra/coordinate.js +6 -6
- package/lib/servers/volume/server/query/encode.js +1 -1
- package/package.json +162 -162
|
@@ -10,60 +10,11 @@ export declare function checkStructureMinMaxDistance(ctx: QueryContext, a: Struc
|
|
|
10
10
|
export declare function checkStructureMaxRadiusDistance(ctx: QueryContext, a: Structure, b: Structure, maxDist: number, elementRadius: QueryFn<number>): boolean | 0;
|
|
11
11
|
declare namespace MinMaxDist {
|
|
12
12
|
const enum Result {
|
|
13
|
-
BelowMin,
|
|
14
|
-
WithinMax,
|
|
15
|
-
Miss
|
|
16
|
-
}
|
|
17
|
-
const distVec = Vec3.zero();
|
|
18
|
-
function inUnit(ctx: QueryContext, unit: Unit, p: Vec3, eRadius: number, minDist: number, maxDist: number, elementRadius: QueryFn<number>) {
|
|
19
|
-
const { elements, conformation: { position } } = unit, dV = distVec;
|
|
20
|
-
ctx.element.unit = unit;
|
|
21
|
-
let withinRange = false;
|
|
22
|
-
for (let i = 0, _i = elements.length; i < _i; i++) {
|
|
23
|
-
const e = elements[i];
|
|
24
|
-
ctx.element.element = e;
|
|
25
|
-
const d = Math.max(0, Vec3.distance(p, position(e, dV)) - eRadius - elementRadius(ctx));
|
|
26
|
-
if (d < minDist)
|
|
27
|
-
return Result.BelowMin;
|
|
28
|
-
if (d < maxDist)
|
|
29
|
-
withinRange = true;
|
|
30
|
-
}
|
|
31
|
-
return withinRange ? Result.WithinMax : Result.Miss;
|
|
32
|
-
}
|
|
33
|
-
function toPoint(ctx: QueryContext, s: Structure, point: Vec3, radius: number, minDist: number, maxDist: number, elementRadius: QueryFn<number>) {
|
|
34
|
-
const { units } = s;
|
|
35
|
-
let withinRange = false;
|
|
36
|
-
for (let i = 0, _i = units.length; i < _i; i++) {
|
|
37
|
-
const iu = inUnit(ctx, units[i], point, radius, minDist, maxDist, elementRadius);
|
|
38
|
-
if (iu === Result.BelowMin)
|
|
39
|
-
return Result.BelowMin;
|
|
40
|
-
if (iu === Result.WithinMax)
|
|
41
|
-
withinRange = true;
|
|
42
|
-
}
|
|
43
|
-
return withinRange ? Result.WithinMax : Result.Miss;
|
|
44
|
-
}
|
|
45
|
-
const distPivot = Vec3.zero();
|
|
46
|
-
function check(ctx: QueryContext, a: Structure, b: Structure, minDist: number, maxDist: number, elementRadius: QueryFn<number>) {
|
|
47
|
-
if (a.elementCount === 0 || b.elementCount === 0)
|
|
48
|
-
return 0;
|
|
49
|
-
const { units } = a;
|
|
50
|
-
let withinRange = false;
|
|
51
|
-
ctx.element.structure = a;
|
|
52
|
-
for (let i = 0, _i = units.length; i < _i; i++) {
|
|
53
|
-
const unit = units[i];
|
|
54
|
-
const { elements, conformation: { position } } = unit;
|
|
55
|
-
ctx.element.unit = unit;
|
|
56
|
-
for (let i = 0, _i = elements.length; i < _i; i++) {
|
|
57
|
-
const e = elements[i];
|
|
58
|
-
ctx.element.element = e;
|
|
59
|
-
const tp = toPoint(ctx, b, position(e, distPivot), elementRadius(ctx), minDist, maxDist, elementRadius);
|
|
60
|
-
if (tp === Result.BelowMin)
|
|
61
|
-
return Result.BelowMin;
|
|
62
|
-
if (tp === Result.WithinMax)
|
|
63
|
-
withinRange = true;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return withinRange;
|
|
13
|
+
BelowMin = 0,
|
|
14
|
+
WithinMax = 1,
|
|
15
|
+
Miss = 2
|
|
67
16
|
}
|
|
17
|
+
function toPoint(ctx: QueryContext, s: Structure, point: Vec3, radius: number, minDist: number, maxDist: number, elementRadius: QueryFn<number>): Result;
|
|
18
|
+
function check(ctx: QueryContext, a: Structure, b: Structure, minDist: number, maxDist: number, elementRadius: QueryFn<number>): boolean | 0 | Result.BelowMin;
|
|
68
19
|
}
|
|
69
20
|
export {};
|
|
@@ -35,23 +35,23 @@ var MinMaxDist;
|
|
|
35
35
|
ctx.element.element = e;
|
|
36
36
|
var d = Math.max(0, linear_algebra_1.Vec3.distance(p, position(e, dV)) - eRadius - elementRadius(ctx));
|
|
37
37
|
if (d < minDist)
|
|
38
|
-
return 0 /* BelowMin */;
|
|
38
|
+
return 0 /* Result.BelowMin */;
|
|
39
39
|
if (d < maxDist)
|
|
40
40
|
withinRange = true;
|
|
41
41
|
}
|
|
42
|
-
return withinRange ? 1 /* WithinMax */ : 2 /* Miss */;
|
|
42
|
+
return withinRange ? 1 /* Result.WithinMax */ : 2 /* Result.Miss */;
|
|
43
43
|
}
|
|
44
44
|
function toPoint(ctx, s, point, radius, minDist, maxDist, elementRadius) {
|
|
45
45
|
var units = s.units;
|
|
46
46
|
var withinRange = false;
|
|
47
47
|
for (var i = 0, _i = units.length; i < _i; i++) {
|
|
48
48
|
var iu = inUnit(ctx, units[i], point, radius, minDist, maxDist, elementRadius);
|
|
49
|
-
if (iu === 0 /* BelowMin */)
|
|
50
|
-
return 0 /* BelowMin */;
|
|
51
|
-
if (iu === 1 /* WithinMax */)
|
|
49
|
+
if (iu === 0 /* Result.BelowMin */)
|
|
50
|
+
return 0 /* Result.BelowMin */;
|
|
51
|
+
if (iu === 1 /* Result.WithinMax */)
|
|
52
52
|
withinRange = true;
|
|
53
53
|
}
|
|
54
|
-
return withinRange ? 1 /* WithinMax */ : 2 /* Miss */;
|
|
54
|
+
return withinRange ? 1 /* Result.WithinMax */ : 2 /* Result.Miss */;
|
|
55
55
|
}
|
|
56
56
|
MinMaxDist.toPoint = toPoint;
|
|
57
57
|
var distPivot = linear_algebra_1.Vec3.zero();
|
|
@@ -69,9 +69,9 @@ var MinMaxDist;
|
|
|
69
69
|
var e = elements[i_1];
|
|
70
70
|
ctx.element.element = e;
|
|
71
71
|
var tp = toPoint(ctx, b, position(e, distPivot), elementRadius(ctx), minDist, maxDist, elementRadius);
|
|
72
|
-
if (tp === 0 /* BelowMin */)
|
|
73
|
-
return 0 /* BelowMin */;
|
|
74
|
-
if (tp === 1 /* WithinMax */)
|
|
72
|
+
if (tp === 0 /* Result.BelowMin */)
|
|
73
|
+
return 0 /* Result.BelowMin */;
|
|
74
|
+
if (tp === 1 /* Result.WithinMax */)
|
|
75
75
|
withinRange = true;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -60,5 +60,7 @@ export declare type SaccharideComponent = {
|
|
|
60
60
|
export declare const UnknownSaccharideComponent: SaccharideComponent;
|
|
61
61
|
export declare const SaccharidesSnfgMap: Map<string, SaccharideComponent>;
|
|
62
62
|
export declare const MonosaccharidesColorTable: [string, Color][];
|
|
63
|
-
export declare
|
|
63
|
+
export declare type SaccharideCompIdMapType = 'default' | 'glycam';
|
|
64
|
+
export declare function setSaccharideCompIdMapType(type: SaccharideCompIdMapType): void;
|
|
65
|
+
export declare let SaccharideCompIdMap: Map<string, SaccharideComponent>;
|
|
64
66
|
export declare type SaccharideComponentMap = ReadonlyMap<string, SaccharideComponent>;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
var _a, _b;
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.SaccharideCompIdMap = exports.MonosaccharidesColorTable = exports.SaccharidesSnfgMap = exports.UnknownSaccharideComponent = exports.getSaccharideShape = exports.getSaccharideName = exports.SaccharideColors = void 0;
|
|
10
|
+
exports.SaccharideCompIdMap = exports.setSaccharideCompIdMapType = exports.MonosaccharidesColorTable = exports.SaccharidesSnfgMap = exports.UnknownSaccharideComponent = exports.getSaccharideShape = exports.getSaccharideName = exports.SaccharideColors = void 0;
|
|
11
11
|
var color_1 = require("../../../../mol-util/color");
|
|
12
12
|
var saccharides_1 = require("../../model/types/saccharides");
|
|
13
13
|
exports.SaccharideColors = (0, color_1.ColorMap)({
|
|
@@ -23,49 +23,49 @@ exports.SaccharideColors = (0, color_1.ColorMap)({
|
|
|
23
23
|
Secondary: 0xf1ece1
|
|
24
24
|
});
|
|
25
25
|
var SaccharideTypeNameMap = (_a = {},
|
|
26
|
-
_a[0 /* Hexose */] = 'Hexose',
|
|
27
|
-
_a[1 /* HexNAc */] = 'HexNAc',
|
|
28
|
-
_a[2 /* Hexosamine */] = 'Hexosamine',
|
|
29
|
-
_a[3 /* Hexuronate */] = 'Hexuronate',
|
|
30
|
-
_a[4 /* Deoxyhexose */] = 'Deoxyhexose',
|
|
31
|
-
_a[5 /* DeoxyhexNAc */] = 'DeoxyhexNAc',
|
|
32
|
-
_a[6 /* DiDeoxyhexose */] = 'Di-deoxyhexose',
|
|
33
|
-
_a[7 /* Pentose */] = 'Pentose',
|
|
34
|
-
_a[8 /* Deoxynonulosonate */] = 'Deoxynonulosonate',
|
|
35
|
-
_a[9 /* DiDeoxynonulosonate */] = 'Di-deoxynonulosonate',
|
|
36
|
-
_a[10 /* Unknown */] = 'Unknown',
|
|
37
|
-
_a[11 /* Assigned */] = 'Assigned',
|
|
26
|
+
_a[0 /* SaccharideType.Hexose */] = 'Hexose',
|
|
27
|
+
_a[1 /* SaccharideType.HexNAc */] = 'HexNAc',
|
|
28
|
+
_a[2 /* SaccharideType.Hexosamine */] = 'Hexosamine',
|
|
29
|
+
_a[3 /* SaccharideType.Hexuronate */] = 'Hexuronate',
|
|
30
|
+
_a[4 /* SaccharideType.Deoxyhexose */] = 'Deoxyhexose',
|
|
31
|
+
_a[5 /* SaccharideType.DeoxyhexNAc */] = 'DeoxyhexNAc',
|
|
32
|
+
_a[6 /* SaccharideType.DiDeoxyhexose */] = 'Di-deoxyhexose',
|
|
33
|
+
_a[7 /* SaccharideType.Pentose */] = 'Pentose',
|
|
34
|
+
_a[8 /* SaccharideType.Deoxynonulosonate */] = 'Deoxynonulosonate',
|
|
35
|
+
_a[9 /* SaccharideType.DiDeoxynonulosonate */] = 'Di-deoxynonulosonate',
|
|
36
|
+
_a[10 /* SaccharideType.Unknown */] = 'Unknown',
|
|
37
|
+
_a[11 /* SaccharideType.Assigned */] = 'Assigned',
|
|
38
38
|
_a);
|
|
39
39
|
function getSaccharideName(type) {
|
|
40
40
|
return SaccharideTypeNameMap[type];
|
|
41
41
|
}
|
|
42
42
|
exports.getSaccharideName = getSaccharideName;
|
|
43
43
|
var SaccharideTypeShapeMap = (_b = {},
|
|
44
|
-
_b[0 /* Hexose */] = 0 /* FilledSphere */,
|
|
45
|
-
_b[1 /* HexNAc */] = 1 /* FilledCube */,
|
|
46
|
-
_b[2 /* Hexosamine */] = 2 /* CrossedCube */,
|
|
47
|
-
_b[3 /* Hexuronate */] = 3 /* DividedDiamond */,
|
|
48
|
-
_b[4 /* Deoxyhexose */] = 4 /* FilledCone */,
|
|
49
|
-
_b[5 /* DeoxyhexNAc */] = 5 /* DevidedCone */,
|
|
50
|
-
_b[6 /* DiDeoxyhexose */] = 6 /* FlatBox */,
|
|
51
|
-
_b[7 /* Pentose */] = 7 /* FilledStar */,
|
|
52
|
-
_b[8 /* Deoxynonulosonate */] = 8 /* FilledDiamond */,
|
|
53
|
-
_b[9 /* DiDeoxynonulosonate */] = 9 /* FlatDiamond */,
|
|
54
|
-
_b[10 /* Unknown */] = 10 /* FlatHexagon */,
|
|
55
|
-
_b[11 /* Assigned */] = 11 /* Pentagon */,
|
|
44
|
+
_b[0 /* SaccharideType.Hexose */] = 0 /* SaccharideShape.FilledSphere */,
|
|
45
|
+
_b[1 /* SaccharideType.HexNAc */] = 1 /* SaccharideShape.FilledCube */,
|
|
46
|
+
_b[2 /* SaccharideType.Hexosamine */] = 2 /* SaccharideShape.CrossedCube */,
|
|
47
|
+
_b[3 /* SaccharideType.Hexuronate */] = 3 /* SaccharideShape.DividedDiamond */,
|
|
48
|
+
_b[4 /* SaccharideType.Deoxyhexose */] = 4 /* SaccharideShape.FilledCone */,
|
|
49
|
+
_b[5 /* SaccharideType.DeoxyhexNAc */] = 5 /* SaccharideShape.DevidedCone */,
|
|
50
|
+
_b[6 /* SaccharideType.DiDeoxyhexose */] = 6 /* SaccharideShape.FlatBox */,
|
|
51
|
+
_b[7 /* SaccharideType.Pentose */] = 7 /* SaccharideShape.FilledStar */,
|
|
52
|
+
_b[8 /* SaccharideType.Deoxynonulosonate */] = 8 /* SaccharideShape.FilledDiamond */,
|
|
53
|
+
_b[9 /* SaccharideType.DiDeoxynonulosonate */] = 9 /* SaccharideShape.FlatDiamond */,
|
|
54
|
+
_b[10 /* SaccharideType.Unknown */] = 10 /* SaccharideShape.FlatHexagon */,
|
|
55
|
+
_b[11 /* SaccharideType.Assigned */] = 11 /* SaccharideShape.Pentagon */,
|
|
56
56
|
_b);
|
|
57
57
|
function getSaccharideShape(type, ringMemberCount) {
|
|
58
|
-
if (type === 10 /* Unknown */) {
|
|
58
|
+
if (type === 10 /* SaccharideType.Unknown */) {
|
|
59
59
|
if (ringMemberCount === 4)
|
|
60
|
-
return 12 /* DiamondPrism */;
|
|
60
|
+
return 12 /* SaccharideShape.DiamondPrism */;
|
|
61
61
|
else if (ringMemberCount === 5)
|
|
62
|
-
return 13 /* PentagonalPrism */;
|
|
62
|
+
return 13 /* SaccharideShape.PentagonalPrism */;
|
|
63
63
|
else if (ringMemberCount === 6)
|
|
64
|
-
return 14 /* HexagonalPrism */;
|
|
64
|
+
return 14 /* SaccharideShape.HexagonalPrism */;
|
|
65
65
|
else if (ringMemberCount === 7)
|
|
66
|
-
return 15 /* HeptagonalPrism */;
|
|
66
|
+
return 15 /* SaccharideShape.HeptagonalPrism */;
|
|
67
67
|
else
|
|
68
|
-
return 10 /* FlatHexagon */;
|
|
68
|
+
return 10 /* SaccharideShape.FlatHexagon */;
|
|
69
69
|
}
|
|
70
70
|
else {
|
|
71
71
|
return SaccharideTypeShapeMap[type];
|
|
@@ -76,84 +76,84 @@ exports.UnknownSaccharideComponent = {
|
|
|
76
76
|
abbr: 'Unk',
|
|
77
77
|
name: 'Unknown',
|
|
78
78
|
color: exports.SaccharideColors.Secondary,
|
|
79
|
-
type: 10 /* Unknown */
|
|
79
|
+
type: 10 /* SaccharideType.Unknown */
|
|
80
80
|
};
|
|
81
81
|
var Monosaccharides = [
|
|
82
|
-
{ abbr: 'Glc', name: 'Glucose', color: exports.SaccharideColors.Blue, type: 0 /* Hexose */ },
|
|
83
|
-
{ abbr: 'Man', name: 'Mannose', color: exports.SaccharideColors.Green, type: 0 /* Hexose */ },
|
|
84
|
-
{ abbr: 'Gal', name: 'Galactose', color: exports.SaccharideColors.Yellow, type: 0 /* Hexose */ },
|
|
85
|
-
{ abbr: 'Gul', name: 'Gulose', color: exports.SaccharideColors.Orange, type: 0 /* Hexose */ },
|
|
86
|
-
{ abbr: 'Alt', name: 'Altrose', color: exports.SaccharideColors.Pink, type: 0 /* Hexose */ },
|
|
87
|
-
{ abbr: 'All', name: 'Allose', color: exports.SaccharideColors.Purple, type: 0 /* Hexose */ },
|
|
88
|
-
{ abbr: 'Tal', name: 'Talose', color: exports.SaccharideColors.LightBlue, type: 0 /* Hexose */ },
|
|
89
|
-
{ abbr: 'Ido', name: 'Idose', color: exports.SaccharideColors.Brown, type: 0 /* Hexose */ },
|
|
90
|
-
{ abbr: 'GlcNAc', name: 'N-Acetyl Glucosamine', color: exports.SaccharideColors.Blue, type: 1 /* HexNAc */ },
|
|
91
|
-
{ abbr: 'ManNAc', name: 'N-Acetyl Mannosamine', color: exports.SaccharideColors.Green, type: 1 /* HexNAc */ },
|
|
92
|
-
{ abbr: 'GalNAc', name: 'N-Acetyl Galactosamine', color: exports.SaccharideColors.Yellow, type: 1 /* HexNAc */ },
|
|
93
|
-
{ abbr: 'GulNAc', name: 'N-Acetyl Gulosamine', color: exports.SaccharideColors.Orange, type: 1 /* HexNAc */ },
|
|
94
|
-
{ abbr: 'AltNAc', name: 'N-Acetyl Altrosamine', color: exports.SaccharideColors.Pink, type: 1 /* HexNAc */ },
|
|
95
|
-
{ abbr: 'AllNAc', name: 'N-Acetyl Allosamine', color: exports.SaccharideColors.Purple, type: 1 /* HexNAc */ },
|
|
96
|
-
{ abbr: 'TalNAc', name: 'N-Acetyl Talosamine', color: exports.SaccharideColors.LightBlue, type: 1 /* HexNAc */ },
|
|
97
|
-
{ abbr: 'IdoNAc', name: 'N-Acetyl Idosamine', color: exports.SaccharideColors.Brown, type: 1 /* HexNAc */ },
|
|
98
|
-
{ abbr: 'GlcN', name: 'Glucosamine', color: exports.SaccharideColors.Blue, type: 2 /* Hexosamine */ },
|
|
99
|
-
{ abbr: 'ManN', name: 'Mannosamine', color: exports.SaccharideColors.Green, type: 2 /* Hexosamine */ },
|
|
100
|
-
{ abbr: 'GalN', name: 'Galactosamine', color: exports.SaccharideColors.Yellow, type: 2 /* Hexosamine */ },
|
|
101
|
-
{ abbr: 'GulN', name: 'Gulosamine', color: exports.SaccharideColors.Orange, type: 2 /* Hexosamine */ },
|
|
102
|
-
{ abbr: 'AltN', name: 'Altrosamine', color: exports.SaccharideColors.Pink, type: 2 /* Hexosamine */ },
|
|
103
|
-
{ abbr: 'AllN', name: 'Allosamine', color: exports.SaccharideColors.Purple, type: 2 /* Hexosamine */ },
|
|
104
|
-
{ abbr: 'TalN', name: 'Talosamine', color: exports.SaccharideColors.LightBlue, type: 2 /* Hexosamine */ },
|
|
105
|
-
{ abbr: 'IdoN', name: 'Idosamine', color: exports.SaccharideColors.Brown, type: 2 /* Hexosamine */ },
|
|
106
|
-
{ abbr: 'GlcA', name: 'Glucuronic Acid', color: exports.SaccharideColors.Blue, type: 3 /* Hexuronate */ },
|
|
107
|
-
{ abbr: 'ManA', name: 'Mannuronic Acid', color: exports.SaccharideColors.Green, type: 3 /* Hexuronate */ },
|
|
108
|
-
{ abbr: 'GalA', name: 'Galacturonic Acid', color: exports.SaccharideColors.Yellow, type: 3 /* Hexuronate */ },
|
|
109
|
-
{ abbr: 'GulA', name: 'Guluronic Acid', color: exports.SaccharideColors.Orange, type: 3 /* Hexuronate */ },
|
|
110
|
-
{ abbr: 'AltA', name: 'Altruronic Acid', color: exports.SaccharideColors.Pink, type: 3 /* Hexuronate */ },
|
|
111
|
-
{ abbr: 'AllA', name: 'Alluronic Acid', color: exports.SaccharideColors.Purple, type: 3 /* Hexuronate */ },
|
|
112
|
-
{ abbr: 'TalA', name: 'Taluronic Acid', color: exports.SaccharideColors.LightBlue, type: 3 /* Hexuronate */ },
|
|
113
|
-
{ abbr: 'IdoA', name: 'Iduronic Acid', color: exports.SaccharideColors.Brown, type: 3 /* Hexuronate */ },
|
|
114
|
-
{ abbr: 'Qui', name: 'Quinovose', color: exports.SaccharideColors.Blue, type: 4 /* Deoxyhexose */ },
|
|
115
|
-
{ abbr: 'Rha', name: 'Rhamnose', color: exports.SaccharideColors.Green, type: 4 /* Deoxyhexose */ },
|
|
116
|
-
{ abbr: '6dGul', name: '6-Deoxy Gulose', color: exports.SaccharideColors.Orange, type: 4 /* Deoxyhexose */ },
|
|
117
|
-
{ abbr: '6dAlt', name: '6-Deoxy Altrose', color: exports.SaccharideColors.Pink, type: 4 /* Deoxyhexose */ },
|
|
118
|
-
{ abbr: '6dTal', name: '6-Deoxy Talose', color: exports.SaccharideColors.LightBlue, type: 4 /* Deoxyhexose */ },
|
|
119
|
-
{ abbr: 'Fuc', name: 'Fucose', color: exports.SaccharideColors.Red, type: 4 /* Deoxyhexose */ },
|
|
120
|
-
{ abbr: 'QuiNAc', name: 'N-Acetyl Quinovosamine', color: exports.SaccharideColors.Blue, type: 5 /* DeoxyhexNAc */ },
|
|
121
|
-
{ abbr: 'RhaNAc', name: 'N-Acetyl Rhamnosamine', color: exports.SaccharideColors.Green, type: 5 /* DeoxyhexNAc */ },
|
|
122
|
-
{ abbr: '6dAltNAc', name: 'N-Acetyl 6-Deoxy Altrosamine', color: exports.SaccharideColors.Pink, type: 5 /* DeoxyhexNAc */ },
|
|
123
|
-
{ abbr: '6dTalNAc', name: 'N-Acetyl 6-Deoxy Talosamine', color: exports.SaccharideColors.LightBlue, type: 5 /* DeoxyhexNAc */ },
|
|
124
|
-
{ abbr: 'FucNAc', name: 'N-Acetyl Fucosamine', color: exports.SaccharideColors.Red, type: 5 /* DeoxyhexNAc */ },
|
|
125
|
-
{ abbr: 'Oli', name: 'Olivose', color: exports.SaccharideColors.Blue, type: 6 /* DiDeoxyhexose */ },
|
|
126
|
-
{ abbr: 'Tyv', name: 'Tyvelose', color: exports.SaccharideColors.Green, type: 6 /* DiDeoxyhexose */ },
|
|
127
|
-
{ abbr: 'Abe', name: 'Abequose', color: exports.SaccharideColors.Orange, type: 6 /* DiDeoxyhexose */ },
|
|
128
|
-
{ abbr: 'Par', name: 'Paratose', color: exports.SaccharideColors.Pink, type: 6 /* DiDeoxyhexose */ },
|
|
129
|
-
{ abbr: 'Dig', name: 'Digitoxose', color: exports.SaccharideColors.Purple, type: 6 /* DiDeoxyhexose */ },
|
|
130
|
-
{ abbr: 'Col', name: 'Colitose', color: exports.SaccharideColors.LightBlue, type: 6 /* DiDeoxyhexose */ },
|
|
131
|
-
{ abbr: 'Ara', name: 'Arabinose', color: exports.SaccharideColors.Green, type: 7 /* Pentose */ },
|
|
132
|
-
{ abbr: 'Lyx', name: 'Lyxose', color: exports.SaccharideColors.Yellow, type: 7 /* Pentose */ },
|
|
133
|
-
{ abbr: 'Xyl', name: 'Xylose', color: exports.SaccharideColors.Orange, type: 7 /* Pentose */ },
|
|
134
|
-
{ abbr: 'Rib', name: 'Ribose', color: exports.SaccharideColors.Pink, type: 7 /* Pentose */ },
|
|
135
|
-
{ abbr: 'Kdn', name: 'Keto-Deoxy Nonulonic Acid', color: exports.SaccharideColors.Green, type: 8 /* Deoxynonulosonate */ },
|
|
136
|
-
{ abbr: 'Neu5Ac', name: 'N-Acetyl Neuraminic Acid', color: exports.SaccharideColors.Purple, type: 8 /* Deoxynonulosonate */ },
|
|
137
|
-
{ abbr: 'Neu5Gc', name: 'N-Glycolyl Neuraminic Acid', color: exports.SaccharideColors.LightBlue, type: 8 /* Deoxynonulosonate */ },
|
|
138
|
-
{ abbr: 'Neu', name: 'Neuraminic Acid', color: exports.SaccharideColors.Brown, type: 8 /* Deoxynonulosonate */ },
|
|
139
|
-
{ abbr: 'Sia', name: 'Sialic acid', color: exports.SaccharideColors.Red, type: 8 /* Deoxynonulosonate */ },
|
|
140
|
-
{ abbr: 'Pse', name: 'Pseudaminic Acid', color: exports.SaccharideColors.Green, type: 9 /* DiDeoxynonulosonate */ },
|
|
141
|
-
{ abbr: 'Leg', name: 'Legionaminic Acid', color: exports.SaccharideColors.Yellow, type: 9 /* DiDeoxynonulosonate */ },
|
|
142
|
-
{ abbr: 'Aci', name: 'Acinetaminic Acid', color: exports.SaccharideColors.Pink, type: 9 /* DiDeoxynonulosonate */ },
|
|
143
|
-
{ abbr: '4eLeg', name: '4-Epilegionaminic Acid', color: exports.SaccharideColors.LightBlue, type: 9 /* DiDeoxynonulosonate */ },
|
|
144
|
-
{ abbr: 'Bac', name: 'Bacillosamine', color: exports.SaccharideColors.Blue, type: 10 /* Unknown */ },
|
|
145
|
-
{ abbr: 'LDmanHep', name: 'L-Glycero-D-Manno Heptose', color: exports.SaccharideColors.Green, type: 10 /* Unknown */ },
|
|
146
|
-
{ abbr: 'Kdo', name: 'Keto-Deoxy Octulonic Acid', color: exports.SaccharideColors.Yellow, type: 10 /* Unknown */ },
|
|
147
|
-
{ abbr: 'Dha', name: '3-Deoxy Lyxo-Heptulosaric Acid', color: exports.SaccharideColors.Orange, type: 10 /* Unknown */ },
|
|
148
|
-
{ abbr: 'DDmanHep', name: 'D-Glycero-D-Manno-Heptose', color: exports.SaccharideColors.Pink, type: 10 /* Unknown */ },
|
|
149
|
-
{ abbr: 'MurNAc', name: 'N-Acetyl Muramic Acid', color: exports.SaccharideColors.Purple, type: 10 /* Unknown */ },
|
|
150
|
-
{ abbr: 'MurNGc', name: 'N-Glycolyl Muramic Acid', color: exports.SaccharideColors.LightBlue, type: 10 /* Unknown */ },
|
|
151
|
-
{ abbr: 'Mur', name: 'Muramic Acid', color: exports.SaccharideColors.Brown, type: 10 /* Unknown */ },
|
|
152
|
-
{ abbr: 'Api', name: 'Apicose', color: exports.SaccharideColors.Green, type: 11 /* Assigned */ },
|
|
153
|
-
{ abbr: 'Fru', name: 'Fructose', color: exports.SaccharideColors.Green, type: 11 /* Assigned */ },
|
|
154
|
-
{ abbr: 'Tag', name: 'Tagatose', color: exports.SaccharideColors.Yellow, type: 11 /* Assigned */ },
|
|
155
|
-
{ abbr: 'Sor', name: 'Sorbose', color: exports.SaccharideColors.Orange, type: 11 /* Assigned */ },
|
|
156
|
-
{ abbr: 'Psi', name: 'Psicose', color: exports.SaccharideColors.Pink, type: 11 /* Assigned */ },
|
|
82
|
+
{ abbr: 'Glc', name: 'Glucose', color: exports.SaccharideColors.Blue, type: 0 /* SaccharideType.Hexose */ },
|
|
83
|
+
{ abbr: 'Man', name: 'Mannose', color: exports.SaccharideColors.Green, type: 0 /* SaccharideType.Hexose */ },
|
|
84
|
+
{ abbr: 'Gal', name: 'Galactose', color: exports.SaccharideColors.Yellow, type: 0 /* SaccharideType.Hexose */ },
|
|
85
|
+
{ abbr: 'Gul', name: 'Gulose', color: exports.SaccharideColors.Orange, type: 0 /* SaccharideType.Hexose */ },
|
|
86
|
+
{ abbr: 'Alt', name: 'Altrose', color: exports.SaccharideColors.Pink, type: 0 /* SaccharideType.Hexose */ },
|
|
87
|
+
{ abbr: 'All', name: 'Allose', color: exports.SaccharideColors.Purple, type: 0 /* SaccharideType.Hexose */ },
|
|
88
|
+
{ abbr: 'Tal', name: 'Talose', color: exports.SaccharideColors.LightBlue, type: 0 /* SaccharideType.Hexose */ },
|
|
89
|
+
{ abbr: 'Ido', name: 'Idose', color: exports.SaccharideColors.Brown, type: 0 /* SaccharideType.Hexose */ },
|
|
90
|
+
{ abbr: 'GlcNAc', name: 'N-Acetyl Glucosamine', color: exports.SaccharideColors.Blue, type: 1 /* SaccharideType.HexNAc */ },
|
|
91
|
+
{ abbr: 'ManNAc', name: 'N-Acetyl Mannosamine', color: exports.SaccharideColors.Green, type: 1 /* SaccharideType.HexNAc */ },
|
|
92
|
+
{ abbr: 'GalNAc', name: 'N-Acetyl Galactosamine', color: exports.SaccharideColors.Yellow, type: 1 /* SaccharideType.HexNAc */ },
|
|
93
|
+
{ abbr: 'GulNAc', name: 'N-Acetyl Gulosamine', color: exports.SaccharideColors.Orange, type: 1 /* SaccharideType.HexNAc */ },
|
|
94
|
+
{ abbr: 'AltNAc', name: 'N-Acetyl Altrosamine', color: exports.SaccharideColors.Pink, type: 1 /* SaccharideType.HexNAc */ },
|
|
95
|
+
{ abbr: 'AllNAc', name: 'N-Acetyl Allosamine', color: exports.SaccharideColors.Purple, type: 1 /* SaccharideType.HexNAc */ },
|
|
96
|
+
{ abbr: 'TalNAc', name: 'N-Acetyl Talosamine', color: exports.SaccharideColors.LightBlue, type: 1 /* SaccharideType.HexNAc */ },
|
|
97
|
+
{ abbr: 'IdoNAc', name: 'N-Acetyl Idosamine', color: exports.SaccharideColors.Brown, type: 1 /* SaccharideType.HexNAc */ },
|
|
98
|
+
{ abbr: 'GlcN', name: 'Glucosamine', color: exports.SaccharideColors.Blue, type: 2 /* SaccharideType.Hexosamine */ },
|
|
99
|
+
{ abbr: 'ManN', name: 'Mannosamine', color: exports.SaccharideColors.Green, type: 2 /* SaccharideType.Hexosamine */ },
|
|
100
|
+
{ abbr: 'GalN', name: 'Galactosamine', color: exports.SaccharideColors.Yellow, type: 2 /* SaccharideType.Hexosamine */ },
|
|
101
|
+
{ abbr: 'GulN', name: 'Gulosamine', color: exports.SaccharideColors.Orange, type: 2 /* SaccharideType.Hexosamine */ },
|
|
102
|
+
{ abbr: 'AltN', name: 'Altrosamine', color: exports.SaccharideColors.Pink, type: 2 /* SaccharideType.Hexosamine */ },
|
|
103
|
+
{ abbr: 'AllN', name: 'Allosamine', color: exports.SaccharideColors.Purple, type: 2 /* SaccharideType.Hexosamine */ },
|
|
104
|
+
{ abbr: 'TalN', name: 'Talosamine', color: exports.SaccharideColors.LightBlue, type: 2 /* SaccharideType.Hexosamine */ },
|
|
105
|
+
{ abbr: 'IdoN', name: 'Idosamine', color: exports.SaccharideColors.Brown, type: 2 /* SaccharideType.Hexosamine */ },
|
|
106
|
+
{ abbr: 'GlcA', name: 'Glucuronic Acid', color: exports.SaccharideColors.Blue, type: 3 /* SaccharideType.Hexuronate */ },
|
|
107
|
+
{ abbr: 'ManA', name: 'Mannuronic Acid', color: exports.SaccharideColors.Green, type: 3 /* SaccharideType.Hexuronate */ },
|
|
108
|
+
{ abbr: 'GalA', name: 'Galacturonic Acid', color: exports.SaccharideColors.Yellow, type: 3 /* SaccharideType.Hexuronate */ },
|
|
109
|
+
{ abbr: 'GulA', name: 'Guluronic Acid', color: exports.SaccharideColors.Orange, type: 3 /* SaccharideType.Hexuronate */ },
|
|
110
|
+
{ abbr: 'AltA', name: 'Altruronic Acid', color: exports.SaccharideColors.Pink, type: 3 /* SaccharideType.Hexuronate */ },
|
|
111
|
+
{ abbr: 'AllA', name: 'Alluronic Acid', color: exports.SaccharideColors.Purple, type: 3 /* SaccharideType.Hexuronate */ },
|
|
112
|
+
{ abbr: 'TalA', name: 'Taluronic Acid', color: exports.SaccharideColors.LightBlue, type: 3 /* SaccharideType.Hexuronate */ },
|
|
113
|
+
{ abbr: 'IdoA', name: 'Iduronic Acid', color: exports.SaccharideColors.Brown, type: 3 /* SaccharideType.Hexuronate */ },
|
|
114
|
+
{ abbr: 'Qui', name: 'Quinovose', color: exports.SaccharideColors.Blue, type: 4 /* SaccharideType.Deoxyhexose */ },
|
|
115
|
+
{ abbr: 'Rha', name: 'Rhamnose', color: exports.SaccharideColors.Green, type: 4 /* SaccharideType.Deoxyhexose */ },
|
|
116
|
+
{ abbr: '6dGul', name: '6-Deoxy Gulose', color: exports.SaccharideColors.Orange, type: 4 /* SaccharideType.Deoxyhexose */ },
|
|
117
|
+
{ abbr: '6dAlt', name: '6-Deoxy Altrose', color: exports.SaccharideColors.Pink, type: 4 /* SaccharideType.Deoxyhexose */ },
|
|
118
|
+
{ abbr: '6dTal', name: '6-Deoxy Talose', color: exports.SaccharideColors.LightBlue, type: 4 /* SaccharideType.Deoxyhexose */ },
|
|
119
|
+
{ abbr: 'Fuc', name: 'Fucose', color: exports.SaccharideColors.Red, type: 4 /* SaccharideType.Deoxyhexose */ },
|
|
120
|
+
{ abbr: 'QuiNAc', name: 'N-Acetyl Quinovosamine', color: exports.SaccharideColors.Blue, type: 5 /* SaccharideType.DeoxyhexNAc */ },
|
|
121
|
+
{ abbr: 'RhaNAc', name: 'N-Acetyl Rhamnosamine', color: exports.SaccharideColors.Green, type: 5 /* SaccharideType.DeoxyhexNAc */ },
|
|
122
|
+
{ abbr: '6dAltNAc', name: 'N-Acetyl 6-Deoxy Altrosamine', color: exports.SaccharideColors.Pink, type: 5 /* SaccharideType.DeoxyhexNAc */ },
|
|
123
|
+
{ abbr: '6dTalNAc', name: 'N-Acetyl 6-Deoxy Talosamine', color: exports.SaccharideColors.LightBlue, type: 5 /* SaccharideType.DeoxyhexNAc */ },
|
|
124
|
+
{ abbr: 'FucNAc', name: 'N-Acetyl Fucosamine', color: exports.SaccharideColors.Red, type: 5 /* SaccharideType.DeoxyhexNAc */ },
|
|
125
|
+
{ abbr: 'Oli', name: 'Olivose', color: exports.SaccharideColors.Blue, type: 6 /* SaccharideType.DiDeoxyhexose */ },
|
|
126
|
+
{ abbr: 'Tyv', name: 'Tyvelose', color: exports.SaccharideColors.Green, type: 6 /* SaccharideType.DiDeoxyhexose */ },
|
|
127
|
+
{ abbr: 'Abe', name: 'Abequose', color: exports.SaccharideColors.Orange, type: 6 /* SaccharideType.DiDeoxyhexose */ },
|
|
128
|
+
{ abbr: 'Par', name: 'Paratose', color: exports.SaccharideColors.Pink, type: 6 /* SaccharideType.DiDeoxyhexose */ },
|
|
129
|
+
{ abbr: 'Dig', name: 'Digitoxose', color: exports.SaccharideColors.Purple, type: 6 /* SaccharideType.DiDeoxyhexose */ },
|
|
130
|
+
{ abbr: 'Col', name: 'Colitose', color: exports.SaccharideColors.LightBlue, type: 6 /* SaccharideType.DiDeoxyhexose */ },
|
|
131
|
+
{ abbr: 'Ara', name: 'Arabinose', color: exports.SaccharideColors.Green, type: 7 /* SaccharideType.Pentose */ },
|
|
132
|
+
{ abbr: 'Lyx', name: 'Lyxose', color: exports.SaccharideColors.Yellow, type: 7 /* SaccharideType.Pentose */ },
|
|
133
|
+
{ abbr: 'Xyl', name: 'Xylose', color: exports.SaccharideColors.Orange, type: 7 /* SaccharideType.Pentose */ },
|
|
134
|
+
{ abbr: 'Rib', name: 'Ribose', color: exports.SaccharideColors.Pink, type: 7 /* SaccharideType.Pentose */ },
|
|
135
|
+
{ abbr: 'Kdn', name: 'Keto-Deoxy Nonulonic Acid', color: exports.SaccharideColors.Green, type: 8 /* SaccharideType.Deoxynonulosonate */ },
|
|
136
|
+
{ abbr: 'Neu5Ac', name: 'N-Acetyl Neuraminic Acid', color: exports.SaccharideColors.Purple, type: 8 /* SaccharideType.Deoxynonulosonate */ },
|
|
137
|
+
{ abbr: 'Neu5Gc', name: 'N-Glycolyl Neuraminic Acid', color: exports.SaccharideColors.LightBlue, type: 8 /* SaccharideType.Deoxynonulosonate */ },
|
|
138
|
+
{ abbr: 'Neu', name: 'Neuraminic Acid', color: exports.SaccharideColors.Brown, type: 8 /* SaccharideType.Deoxynonulosonate */ },
|
|
139
|
+
{ abbr: 'Sia', name: 'Sialic acid', color: exports.SaccharideColors.Red, type: 8 /* SaccharideType.Deoxynonulosonate */ },
|
|
140
|
+
{ abbr: 'Pse', name: 'Pseudaminic Acid', color: exports.SaccharideColors.Green, type: 9 /* SaccharideType.DiDeoxynonulosonate */ },
|
|
141
|
+
{ abbr: 'Leg', name: 'Legionaminic Acid', color: exports.SaccharideColors.Yellow, type: 9 /* SaccharideType.DiDeoxynonulosonate */ },
|
|
142
|
+
{ abbr: 'Aci', name: 'Acinetaminic Acid', color: exports.SaccharideColors.Pink, type: 9 /* SaccharideType.DiDeoxynonulosonate */ },
|
|
143
|
+
{ abbr: '4eLeg', name: '4-Epilegionaminic Acid', color: exports.SaccharideColors.LightBlue, type: 9 /* SaccharideType.DiDeoxynonulosonate */ },
|
|
144
|
+
{ abbr: 'Bac', name: 'Bacillosamine', color: exports.SaccharideColors.Blue, type: 10 /* SaccharideType.Unknown */ },
|
|
145
|
+
{ abbr: 'LDmanHep', name: 'L-Glycero-D-Manno Heptose', color: exports.SaccharideColors.Green, type: 10 /* SaccharideType.Unknown */ },
|
|
146
|
+
{ abbr: 'Kdo', name: 'Keto-Deoxy Octulonic Acid', color: exports.SaccharideColors.Yellow, type: 10 /* SaccharideType.Unknown */ },
|
|
147
|
+
{ abbr: 'Dha', name: '3-Deoxy Lyxo-Heptulosaric Acid', color: exports.SaccharideColors.Orange, type: 10 /* SaccharideType.Unknown */ },
|
|
148
|
+
{ abbr: 'DDmanHep', name: 'D-Glycero-D-Manno-Heptose', color: exports.SaccharideColors.Pink, type: 10 /* SaccharideType.Unknown */ },
|
|
149
|
+
{ abbr: 'MurNAc', name: 'N-Acetyl Muramic Acid', color: exports.SaccharideColors.Purple, type: 10 /* SaccharideType.Unknown */ },
|
|
150
|
+
{ abbr: 'MurNGc', name: 'N-Glycolyl Muramic Acid', color: exports.SaccharideColors.LightBlue, type: 10 /* SaccharideType.Unknown */ },
|
|
151
|
+
{ abbr: 'Mur', name: 'Muramic Acid', color: exports.SaccharideColors.Brown, type: 10 /* SaccharideType.Unknown */ },
|
|
152
|
+
{ abbr: 'Api', name: 'Apicose', color: exports.SaccharideColors.Green, type: 11 /* SaccharideType.Assigned */ },
|
|
153
|
+
{ abbr: 'Fru', name: 'Fructose', color: exports.SaccharideColors.Green, type: 11 /* SaccharideType.Assigned */ },
|
|
154
|
+
{ abbr: 'Tag', name: 'Tagatose', color: exports.SaccharideColors.Yellow, type: 11 /* SaccharideType.Assigned */ },
|
|
155
|
+
{ abbr: 'Sor', name: 'Sorbose', color: exports.SaccharideColors.Orange, type: 11 /* SaccharideType.Assigned */ },
|
|
156
|
+
{ abbr: 'Psi', name: 'Psicose', color: exports.SaccharideColors.Pink, type: 11 /* SaccharideType.Assigned */ },
|
|
157
157
|
];
|
|
158
158
|
exports.SaccharidesSnfgMap = (function () {
|
|
159
159
|
var map = new Map();
|
|
@@ -293,7 +293,77 @@ var CharmmSaccharideNames = {
|
|
|
293
293
|
Fru: ['AFRU', 'BFRU'],
|
|
294
294
|
Neu5Ac: ['ANE5AC', 'BNE5AC'],
|
|
295
295
|
};
|
|
296
|
-
|
|
296
|
+
/**
|
|
297
|
+
* From http://glycam.org/docs/othertoolsservice/2016/06/09/3d-snfg-list-of-residue-names/#GLYCAM
|
|
298
|
+
*/
|
|
299
|
+
var GlycamSaccharideNames = {
|
|
300
|
+
Glc: ['0GA', '0GB', '1GA', '1GB', '2GA', '2GB', '3GA', '3GB', '4GA', '4GB', '6GA', '6GB', 'ZGA', 'ZGB', 'YGA', 'YGB', 'XGA', 'XGB', 'WGA', 'WGB', 'VGA', 'VGB', 'UGA', 'UGB', 'TGA', 'TGB', 'SGA', 'SGB', 'RGA', 'RGB', 'QGA', 'QGB', 'PGA', 'PGB', '0gA', '0gB', '1gA', '1gB', '2gA', '2gB', '3gA', '3gB', '4gA', '4gB', '6gA', '6gB', 'ZgA', 'ZgB', 'YgA', 'YgB', 'XgA', 'XgB', 'WgA', 'WgB', 'VgA', 'VgB', 'UgA', 'UgB', 'TgA', 'TgB', 'SgA', 'SgB', 'RgA', 'RgB', 'QgA', 'QgB', 'PgA', 'PgB'],
|
|
301
|
+
GlcNAc: ['0YA', '0YB', '1YA', '1YB', '3YA', '3YB', '4YA', '4YB', '6YA', '6YB', 'WYA', 'WYB', 'VYA', 'VYB', 'UYA', 'UYB', 'QYA', 'QYB', '0yA', '0yB', '1yA', '1yB', '3yA', '3yB', '4yA', '4yB', '6yA', '6yB', 'WyA', 'WyB', 'VyA', 'VyB', 'UyA', 'UyB', 'QyA', 'QyB', '0YS', '0Ys', '3YS', '3Ys', '4YS', '4Ys', '6YS', '6Ys', 'QYS', 'QYs', 'UYS', 'UYs', 'VYS', 'VYs', 'WYS', 'WYs', '0yS', '0ys', '3yS', '3ys', '4yS', '4ys'],
|
|
302
|
+
GlcA: ['0ZA', '0ZB', '1ZA', '1ZB', '2ZA', '2ZB', '3ZA', '3ZB', '4ZA', '4ZB', 'ZZA', 'ZZB', 'YZA', 'YZB', 'WZA', 'WZB', 'TZA', 'TZB', '0zA', '0zB', '1zA', '1zB', '2zA', '2zB', '3zA', '3zB', '4zA', '4zB', 'ZzA', 'ZzB', 'YzA', 'YzB', 'WzA', 'WzB', 'TzA', 'TzB', '0ZBP'],
|
|
303
|
+
GlcN: ['0YN', '3YN', '4YN', '6YN', 'WYN', 'VYN', 'UYN', 'QYN', '3Yn', '4Yn', 'WYn', '0Yn', '0YP', '3YP', '4YP', '6YP', 'WYP', 'VYP', 'UYP', 'QYP', '0Yp', '3Yp', '4Yp', 'WYp'],
|
|
304
|
+
Man: ['0MA', '0MB', '1MA', '1MB', '2MA', '2MB', '3MA', '3MB', '4MA', '4MB', '6MA', '6MB', 'ZMA', 'ZMB', 'YMA', 'YMB', 'XMA', 'XMB', 'WMA', 'WMB', 'VMA', 'VMB', 'UMA', 'UMB', 'TMA', 'TMB', 'SMA', 'SMB', 'RMA', 'RMB', 'QMA', 'QMB', 'PMA', 'PMB', '0mA', '0mB', '1mA', '1mB', '2mA', '2mB', '3mA', '3mB', '4mA', '4mB', '6mA', '6mB', 'ZmA', 'ZmB', 'YmA', 'YmB', 'XmA', 'XmB', 'WmA', 'WmB', 'VmA', 'VmB', 'UmA', 'UmB', 'TmA', 'TmB', 'SmA', 'SmB', 'RmA', 'RmB', 'QmA', 'QmB', 'PmA', 'PmB'],
|
|
305
|
+
ManNAc: ['0WA', '0WB', '1WA', '1WB', '3WA', '3WB', '4WA', '4WB', '6WA', '6WB', 'WWA', 'WWB', 'VWA', 'VWB', 'UWA', 'UWB', 'QWA', 'QWB', '0wA', '0wB', '1wA', '1wB', '3wA', '3wB', '4wA', '4wB', '6wA', '6wB', 'WwA', 'WwB', 'VwA', 'VwB', 'UwA', 'UwB', 'QwA', 'QwB'],
|
|
306
|
+
Ara: ['0AA', '0AB', '1AA', '1AB', '2AA', '2AB', '3AA', '3AB', '4AA', '4AB', 'ZAA', 'ZAB', 'YAA', 'YAB', 'WAA', 'WAB', 'TAA', 'TAB', '0AD', '0AU', '1AD', '1AU', '2AD', '2AU', '3AD', '3AU', '5AD', '5AU', 'ZAD', 'ZAU', '0aA', '0aB', '1aA', '1aB', '2aA', '2aB', '3aA', '3aB', '4aA', '4aB', 'ZaA', 'ZaB', 'YaA', 'YaB', 'WaA', 'WaB', 'TaA', 'TaB', '0aD', '0aU', '1aD', '1aU', '2aD', '2aU', '3aD', '3aU', '5aD', '5aU', 'ZaD', 'ZaU'],
|
|
307
|
+
Gal: ['0LA', '0LB', '1LA', '1LB', '2LA', '2LB', '3LA', '3LB', '4LA', '4LB', '6LA', '6LB', 'ZLA', 'ZLB', 'YLA', 'YLB', 'XLA', 'XLB', 'WLA', 'WLB', 'VLA', 'VLB', 'ULA', 'ULB', 'TLA', 'TLB', 'SLA', 'SLB', 'RLA', 'RLB', 'QLA', 'QLB', 'PLA', 'PLB', '0lA', '0lB', '1lA', '1lB', '2lA', '2lB', '3lA', '3lB', '4lA', '4lB', '6lA', '6lB', 'ZlA', 'ZlB', 'YlA', 'YlB', 'XlA', 'XlB', 'WlA', 'WlB', 'VlA', 'VlB', 'UlA', 'UlB', 'TlA', 'TlB', 'SlA', 'SlB', 'RlA', 'RlB', 'QlA', 'QlB', 'PlA', 'PlB'],
|
|
308
|
+
GalNAc: ['0VA', '0VB', '1VA', '1VB', '3VA', '3VB', '4VA', '4VB', '6VA', '6VB', 'WVA', 'WVB', 'VVA', 'VVB', 'UVA', 'UVB', 'QVA', 'QVB', '0vA', '0vB', '1vA', '1vB', '3vA', '3vB', '4vA', '4vB', '6vA', '6vB', 'WvA', 'WvB', 'VvA', 'VvB', 'UvA', 'UvB', 'QvA', 'QvB'],
|
|
309
|
+
GalA: ['0OA', '0OB', '1OA', '1OB', '2OA', '2OB', '3OA', '3OB', '4OA', '4OB', 'ZOA', 'ZOB', 'YOA', 'YOB', 'WOA', 'WOB', 'TOA', 'TOB', '0oA', '0oB', '1oA', '1oB', '2oA', '2oB', '3oA', '3oB', '4oA', '4oB', 'ZoA', 'ZoB', 'YoA', 'YoB', 'WoA', 'WoB', 'ToA', 'ToB'],
|
|
310
|
+
Gul: ['0KA', '0KB', '1KA', '1KB', '2KA', '2KB', '3KA', '3KB', '4KA', '4KB', '6KA', '6KB', 'ZKA', 'ZKB', 'YKA', 'YKB', 'XKA', 'XKB', 'WKA', 'WKB', 'VKA', 'VKB', 'UKA', 'UKB', 'TKA', 'TKB', 'SKA', 'SKB', 'RKA', 'RKB', 'QKA', 'QKB', 'PKA', 'PKB', '0kA', '0kB', '1kA', '1kB', '2kA', '2kB', '3kA', '3kB', '4kA', '4kB', '6kA', '6kB', 'ZkA', 'ZkB', 'YkA', 'YkB', 'XkA', 'XkB', 'WkA', 'WkB', 'VkA', 'VkB', 'UkA', 'UkB', 'TkA', 'TkB', 'SkA', 'SkB', 'RkA', 'RkB', 'QkA', 'QkB', 'PkA', 'PkB'],
|
|
311
|
+
Alt: ['0EA', '0EB', '1EA', '1EB', '2EA', '2EB', '3EA', '3EB', '4EA', '4EB', '6EA', '6EB', 'ZEA', 'ZEB', 'YEA', 'YEB', 'XEA', 'XEB', 'WEA', 'WEB', 'VEA', 'VEB', 'UEA', 'UEB', 'TEA', 'TEB', 'SEA', 'SEB', 'REA', 'REB', 'QEA', 'QEB', 'PEA', 'PEB', '0eA', '0eB', '1eA', '1eB', '2eA', '2eB', '3eA', '3eB', '4eA', '4eB', '6eA', '6eB', 'ZeA', 'ZeB', 'YeA', 'YeB', 'XeA', 'XeB', 'WeA', 'WeB', 'VeA', 'VeB', 'UeA', 'UeB', 'TeA', 'TeB', 'SeA', 'SeB', 'ReA', 'ReB', 'QeA', 'QeB', 'PeA', 'PeB'],
|
|
312
|
+
All: ['0NA', '0NB', '1NA', '1NB', '2NA', '2NB', '3NA', '3NB', '4NA', '4NB', '6NA', '6NB', 'ZNA', 'ZNB', 'YNA', 'YNB', 'XNA', 'XNB', 'WNA', 'WNB', 'VNA', 'VNB', 'UNA', 'UNB', 'TNA', 'TNB', 'SNA', 'SNB', 'RNA', 'RNB', 'QNA', 'QNB', 'PNA', 'PNB', '0nA', '0nB', '1nA', '1nB', '2nA', '2nB', '3nA', '3nB', '4nA', '4nB', '6nA', '6nB', 'ZnA', 'ZnB', 'YnA', 'YnB', 'XnA', 'XnB', 'WnA', 'WnB', 'VnA', 'VnB', 'UnA', 'UnB', 'TnA', 'TnB', 'SnA', 'SnB', 'RnA', 'RnB', 'QnA', 'QnB', 'PnA', 'PnB'],
|
|
313
|
+
Tal: ['0TA', '0TB', '1TA', '1TB', '2TA', '2TB', '3TA', '3TB', '4TA', '4TB', '6TA', '6TB', 'ZTA', 'ZTB', 'YTA', 'YTB', 'XTA', 'XTB', 'WTA', 'WTB', 'VTA', 'VTB', 'UTA', 'UTB', 'TTA', 'TTB', 'STA', 'STB', 'RTA', 'RTB', 'QTA', 'QTB', 'PTA', 'PTB', '0tA', '0tB', '1tA', '1tB', '2tA', '2tB', '3tA', '3tB', '4tA', '4tB', '6tA', '6tB', 'ZtA', 'ZtB', 'YtA', 'YtB', 'XtA', 'XtB', 'WtA', 'WtB', 'VtA', 'VtB', 'UtA', 'UtB', 'TtA', 'TtB', 'StA', 'StB', 'RtA', 'RtB', 'QtA', 'QtB', 'PtA', 'PtB'],
|
|
314
|
+
Ido: ['0IA', '0IB', '1IA', '1IB', '2IA', '2IB', '3IA', '3IB', '4IA', '4IB', '6IA', '6IB', 'ZIA', 'ZIB', 'YIA', 'YIB', 'XIA', 'XIB', 'WIA', 'WIB', 'VIA', 'VIB', 'UIA', 'UIB', 'TIA', 'TIB', 'SIA', 'SIB', 'RIA', 'RIB', 'QIA', 'QIB', 'PIA', 'PIB', '0iA', '0iB', '1iA', '1iB', '2iA', '2iB', '3iA', '3iB', '4iA', '4iB', '6iA', '6iB', 'ZiA', 'ZiB', 'YiA', 'YiB', 'XiA', 'XiB', 'WiA', 'WiB', 'ViA', 'ViB', 'UiA', 'UiB', 'TiA', 'TiB', 'SiA', 'SiB', 'RiA', 'RiB', 'QiA', 'QiB', 'PiA', 'PiB'],
|
|
315
|
+
IdoA: ['0UA', '0UB', '1UA', '1UB', '2UA', '2UB', '3UA', '3UB', '4UA', '4UB', 'ZUA', 'ZUB', 'YUA', 'YUB', 'WUA', 'WUB', 'TUA', 'TUB', '0uA', '0uB', '1uA', '1uB', '2uA', '2uB', '3uA', '3uB', '4uA', '4uB', 'ZuA', 'ZuB', 'YuA', 'YuB', 'WuA', 'WuB', 'TuA', 'TuB', 'YuAP'],
|
|
316
|
+
Fuc: ['0FA', '0FB', '1FA', '1FB', '2FA', '2FB', '3FA', '3FB', '4FA', '4FB', 'ZFA', 'ZFB', 'YFA', 'YFB', 'WFA', 'WFB', 'TFA', 'TFB', '0fA', '0fB', '1fA', '1fB', '2fA', '2fB', '3fA', '3fB', '4fA', '4fB', 'ZfA', 'ZfB', 'YfA', 'YfB', 'WfA', 'WfB', 'TfA', 'TfB'],
|
|
317
|
+
Rha: ['0HA', '0HB', '1HA', '1HB', '2HA', '2HB', '3HA', '3HB', '4HA', '4HB', 'ZHA', 'ZHB', 'YHA', 'YHB', 'WHA', 'WHB', 'THA', 'THB', '0hA', '0hB', '1hA', '1hB', '2hA', '2hB', '3hA', '3hB', '4hA', '4hB', 'ZhA', 'ZhB', 'YhA', 'YhB', 'WhA', 'WhB', 'ThA', 'ThB'],
|
|
318
|
+
Qui: ['0QA', '0QB', '1QA', '1QB', '2QA', '2QB', '3QA', '3QB', '4QA', '4QB', 'ZQA', 'ZQB', 'YQA', 'YQB', 'WQA', 'WQB', 'TQA', 'TQB', '0qA', '0qB', '1qA', '1qB', '2qA', '2qB', '3qA', '3qB', '4qA', '4qB', 'ZqA', 'ZqB', 'YqA', 'YqB', 'WqA', 'WqB', 'TqA', 'TqB'],
|
|
319
|
+
Lyx: ['0DA', '0DB', '1DA', '1DB', '2DA', '2DB', '3DA', '3DB', '4DA', '4DB', 'ZDA', 'ZDB', 'YDA', 'YDB', 'WDA', 'WDB', 'TDA', 'TDB', '0DD', '0DU', '1DD', '1DU', '2DD', '2DU', '3DD', '3DU', '5DD', '5DU', 'ZDD', 'ZDU', '0dA', '0dB', '1dA', '1dB', '2dA', '2dB', '3dA', '3dB', '4dA', '4dB', 'ZdA', 'ZdB', 'YdA', 'YdB', 'WdA', 'WdB', 'TdA', 'TdB', '0dD', '0dU', '1dD', '1dU', '2dD', '2dU', '3dD', '3dU', '5dD', '5dU', 'ZdD', 'ZdU'],
|
|
320
|
+
Xyl: ['0XA', '0XB', '1XA', '1XB', '2XA', '2XB', '3XA', '3XB', '4XA', '4XB', 'ZXA', 'ZXB', 'YXA', 'YXB', 'WXA', 'WXB', 'TXA', 'TXB', '0XD', '0XU', '1XD', '1XU', '2XD', '2XU', '3XD', '3XU', '5XD', '5XU', 'ZXD', 'ZXU', '0xA', '0xB', '1xA', '1xB', '2xA', '2xB', '3xA', '3xB', '4xA', '4xB', 'ZxA', 'ZxB', 'YxA', 'YxB', 'WxA', 'WxB', 'TxA', 'TxB', '0xD', '0xU', '1xD', '1xU', '2xD', '2xU', '3xD', '3xU', '5xD', '5xU', 'ZxD', 'ZxU'],
|
|
321
|
+
Rib: ['0RA', '0RB', '1RA', '1RB', '2RA', '2RB', '3RA', '3RB', '4RA', '4RB', 'ZRA', 'ZRB', 'YRA', 'YRB', 'WRA', 'WRB', 'TRA', 'TRB', '0RD', '0RU', '1RD', '1RU', '2RD', '2RU', '3RD', '3RU', '5RD', '5RU', 'ZRD', 'ZRU', '0rA', '0rB', '1rA', '1rB', '2rA', '2rB', '3rA', '3rB', '4rA', '4rB', 'ZrA', 'ZrB', 'YrA', 'YrB', 'WrA', 'WrB', 'TrA', 'TrB', '0rD', '0rU', '1rD', '1rU', '2rD', '2rU', '3rD', '3rU', '5rD', '5rU', 'ZrD', 'ZrU'],
|
|
322
|
+
Fru: ['0CA', '0CB', '1CA', '1CB', '2CA', '2CB', '3CA', '3CB', '4CA', '4CB', '5CA', '5CB', 'WCA', 'WCB', '0CD', '0CU', '1CD', '1CU', '2CD', '2CU', '3CD', '3CU', '4CD', '4CU', '6CD', '6CU', 'WCD', 'WCU', 'VCD', 'VCU', 'UCD', 'UCU', 'QCD', 'QCU', '0cA', '0cB', '1cA', '1cB', '2cA', '2cB', '3cA', '3cB', '4cA', '4cB', '5cA', '5cB', 'WcA', 'WcB', '0cD', '0cU', '1cD', '1cU', '2cD', '2cU', '3cD', '3cU', '4cD', '4cU', '6cD', '6cU', 'WcD', 'WcU', 'VcD', 'VcU', 'UcD', 'UcU', 'QcD', 'QcU'],
|
|
323
|
+
Tag: ['0JA', '0JB', '1JA', '1JB', '2JA', '2JB', '3JA', '3JB', '4JA', '4JB', '5JA', '5JB', 'WJA', 'WJB', '0JD', '0JU', '1JD', '1JU', '2JD', '2JU', '3JD', '3JU', '4JD', '4JU', '6JD', '6JU', 'WJD', 'WJU', 'VJD', 'VJU', 'UJD', 'UJU', 'QJD', 'QJU', '0jA', '0jB', '1jA', '1jB', '2jA', '2jB', '3jA', '3jB', '4jA', '4jB', '5jA', '5jB', 'WjA', 'WjB', '0jD', '0jU', '1jD', '1jU', '2jD', '2jU', '3jD', '3jU', '4jD', '4jU', '6jD', '6jU', 'WjD', 'WjU', 'VjD', 'VjU', 'UjD', 'UjU', 'QjD', 'QjU'],
|
|
324
|
+
Sor: ['0BA', '0BB', '1BA', '1BB', '2BA', '2BB', '3BA', '3BB', '4BA', '4BB', '5BA', '5BB', 'WBA', 'WBB', '0BD', '0BU', '1BD', '1BU', '2BD', '2BU', '3BD', '3BU', '4BD', '4BU', '6BD', '6BU', 'WBD', 'WBU', 'VBD', 'VBU', 'UBD', 'UBU', 'QBD', 'QBU', '0bA', '0bB', '1bA', '1bB', '2bA', '2bB', '3bA', '3bB', '4bA', '4bB', '5bA', '5bB', 'WbA', 'WbB', '0bD', '0bU', '1bD', '1bU', '2bD', '2bU', '3bD', '3bU', '4bD', '4bU', '6bD', '6bU', 'WbD', 'WbU', 'VbD', 'VbU', 'UbD', 'UbU', 'QbD', 'QbU'],
|
|
325
|
+
Psi: ['0PA', '0PB', '1PA', '1PB', '2PA', '2PB', '3PA', '3PB', '4PA', '4PB', '5PA', '5PB', 'WPA', 'WPB', '0PD', '0PU', '1PD', '1PU', '2PD', '2PU', '3PD', '3PU', '4PD', '4PU', '6PD', '6PU', 'WPD', 'WPU', 'VPD', 'VPU', 'UPD', 'UPU', 'QPD', 'QPU', '0pA', '0pB', '1pA', '1pB', '2pA', '2pB', '3pA', '3pB', '4pA', '4pB', '5pA', '5pB', 'WpA', 'WpB', '0pD', '0pU', '1pD', '1pU', '2pD', '2pU', '3pD', '3pU', '4pD', '4pU', '6pD', '6pU', 'WpD', 'WpU', 'VpD', 'VpU', 'UpD', 'UpU', 'QpD', 'QpU'],
|
|
326
|
+
Neu5Ac: ['0SA', '0SB', '4SA', '4SB', '7SA', '7SB', '8SA', '8SB', '9SA', '9SB', 'ASA', 'ASB', 'BSA', 'BSB', 'CSA', 'CSB', 'DSA', 'DSB', 'ESA', 'ESB', 'FSA', 'FSB', 'GSA', 'GSB', 'HSA', 'HSB', 'ISA', 'ISB', 'JSA', 'JSB', 'KSA', 'KSB', '0sA', '0sB', '4sA', '4sB', '7sA', '7sB', '8sA', '8sB', '9sA', '9sB', 'AsA', 'AsB', 'BsA', 'BsB', 'CsA', 'CsB', 'DsA', 'DsB', 'EsA', 'EsB', 'FsA', 'FsB', 'GsA', 'GsB', 'HsA', 'HsB', 'IsA', 'IsB', 'JsA', 'JsB', 'KsA', 'KsB'],
|
|
327
|
+
Neu5Gc: ['0GL', '4GL', '7GL', '8GL', '9GL', 'CGL', 'DGL', 'EGL', 'FGL', 'GGL', 'HGL', 'IGL', 'JGL', 'KGL', '0gL', '4gL', '7gL', '8gL', '9gL', 'AgL', 'BgL', 'CgL', 'DgL', 'EgL', 'FgL', 'GgL', 'HgL', 'IgL', 'JgL', 'KgL'],
|
|
328
|
+
Tyv: ['0TV', '0Tv', '1TV', '1Tv', '2TV', '2Tv', '4TV', '4Tv', 'YTV', 'YTv', '0tV', '0tv', '1tV', '1tv', '2tV', '2tv', '4tV', '4tv', 'YtV', 'Ytv'],
|
|
329
|
+
Abe: ['0AE', '2AE', '4AE', 'YGa', '0AF', '2AF', '4AF', 'YAF'],
|
|
330
|
+
Bac: ['0BC', '3BC', '0bC', '3bC'],
|
|
331
|
+
Kdn: ['0KN', '4KN', '5KN', '7KN', '8KN', '9KN', 'AKN', 'BKN', 'CKN', 'DKN', 'EKN', 'FKN', 'GKN', 'HKN', 'IKN', 'JKN', 'KKN', 'LKN', 'MKN', 'NKN', 'OKN', 'PKN', 'QKN', 'RKN', 'SKN', 'TKN', 'UKN', 'VKN', 'WKN', 'XKN', 'YKN', '0Kn', '4Kn', '5Kn', '7Kn', '8Kn', '9Kn', 'AKn', 'BKn', 'CKn', 'DKn', 'EKn', 'FKn', 'GKn', 'HKn', 'IKn', 'JKn', 'KKn', 'LKn', 'MKn', 'NKn', 'OKn', 'PKn', 'QKn', 'RKn', 'SKn', 'TKn', 'UKn', 'VKn', 'WKn', 'XKn', 'YKn'],
|
|
332
|
+
Kdo: ['0KO', '4KO', '5KO', '7KO', '8KO', 'AKO', 'BKO', 'CKO', 'DKO', 'EKO', 'FKO', 'GKO', 'HKO', 'IKO', 'JKO', 'KKO', '0Ko', '4Ko', '5Ko', '7Ko', '8Ko', 'AKo', 'BKo', 'CKo', 'DKo', 'EKo', 'FKo', 'GKo', 'HKo', 'IKo', 'JKo', 'KKo'],
|
|
333
|
+
};
|
|
334
|
+
var DefaultSaccharideCompIdMap = (function () {
|
|
335
|
+
var map = new Map();
|
|
336
|
+
for (var i = 0, il = Monosaccharides.length; i < il; ++i) {
|
|
337
|
+
var saccharide = Monosaccharides[i];
|
|
338
|
+
var common = CommonSaccharideNames[saccharide.abbr];
|
|
339
|
+
if (common) {
|
|
340
|
+
for (var j = 0, jl = common.length; j < jl; ++j) {
|
|
341
|
+
map.set(common[j], saccharide);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
var charmm = CharmmSaccharideNames[saccharide.abbr];
|
|
345
|
+
if (charmm) {
|
|
346
|
+
for (var j = 0, jl = charmm.length; j < jl; ++j) {
|
|
347
|
+
map.set(charmm[j], saccharide);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
var glycam = GlycamSaccharideNames[saccharide.abbr];
|
|
351
|
+
if (glycam) {
|
|
352
|
+
for (var j = 0, jl = glycam.length; j < jl; ++j) {
|
|
353
|
+
// On collision, use PDB name as default.
|
|
354
|
+
if (!map.has(glycam[j])) {
|
|
355
|
+
map.set(glycam[j], saccharide);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
saccharides_1.SaccharideNames.forEach(function (name) {
|
|
361
|
+
if (!map.has(name))
|
|
362
|
+
map.set(name, exports.UnknownSaccharideComponent);
|
|
363
|
+
});
|
|
364
|
+
return map;
|
|
365
|
+
})();
|
|
366
|
+
var GlycamSaccharideCompIdMap = (function () {
|
|
297
367
|
var map = new Map();
|
|
298
368
|
for (var i = 0, il = Monosaccharides.length; i < il; ++i) {
|
|
299
369
|
var saccharide = Monosaccharides[i];
|
|
@@ -309,6 +379,15 @@ exports.SaccharideCompIdMap = (function () {
|
|
|
309
379
|
map.set(charmm[j], saccharide);
|
|
310
380
|
}
|
|
311
381
|
}
|
|
382
|
+
var glycam = GlycamSaccharideNames[saccharide.abbr];
|
|
383
|
+
if (glycam) {
|
|
384
|
+
for (var j = 0, jl = glycam.length; j < jl; ++j) {
|
|
385
|
+
// On collision, use PDB name as default.
|
|
386
|
+
if (!map.has(glycam[j])) {
|
|
387
|
+
map.set(glycam[j], saccharide);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
312
391
|
}
|
|
313
392
|
saccharides_1.SaccharideNames.forEach(function (name) {
|
|
314
393
|
if (!map.has(name))
|
|
@@ -316,3 +395,8 @@ exports.SaccharideCompIdMap = (function () {
|
|
|
316
395
|
});
|
|
317
396
|
return map;
|
|
318
397
|
})();
|
|
398
|
+
function setSaccharideCompIdMapType(type) {
|
|
399
|
+
exports.SaccharideCompIdMap = type === 'default' ? DefaultSaccharideCompIdMap : GlycamSaccharideCompIdMap;
|
|
400
|
+
}
|
|
401
|
+
exports.setSaccharideCompIdMapType = setSaccharideCompIdMapType;
|
|
402
|
+
exports.SaccharideCompIdMap = DefaultSaccharideCompIdMap;
|
|
@@ -282,7 +282,7 @@ exports.Loci = Loci;
|
|
|
282
282
|
elements[elements.length] = lociElement;
|
|
283
283
|
continue;
|
|
284
284
|
}
|
|
285
|
-
if (lociElement.unit.kind === 0 /* Atomic */) {
|
|
285
|
+
if (lociElement.unit.kind === 0 /* Unit.Kind.Atomic */) {
|
|
286
286
|
var unitElements = lociElement.unit.elements;
|
|
287
287
|
var h = lociElement.unit.model.atomicHierarchy;
|
|
288
288
|
var label_alt_id = lociElement.unit.model.atomicHierarchy.atoms.label_alt_id;
|
|
@@ -326,9 +326,9 @@ exports.Loci = Loci;
|
|
|
326
326
|
Loci.extendToWholeResidues = extendToWholeResidues;
|
|
327
327
|
function getChainSegments(unit) {
|
|
328
328
|
switch (unit.kind) {
|
|
329
|
-
case 0 /* Atomic */: return unit.model.atomicHierarchy.chainAtomSegments;
|
|
330
|
-
case 1 /* Spheres */: return unit.model.coarseHierarchy.spheres.chainElementSegments;
|
|
331
|
-
case 2 /* Gaussians */: return unit.model.coarseHierarchy.gaussians.chainElementSegments;
|
|
329
|
+
case 0 /* Unit.Kind.Atomic */: return unit.model.atomicHierarchy.chainAtomSegments;
|
|
330
|
+
case 1 /* Unit.Kind.Spheres */: return unit.model.coarseHierarchy.spheres.chainElementSegments;
|
|
331
|
+
case 2 /* Unit.Kind.Gaussians */: return unit.model.coarseHierarchy.gaussians.chainElementSegments;
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
function isWholeUnit(element) {
|
|
@@ -393,7 +393,7 @@ exports.Loci = Loci;
|
|
|
393
393
|
var elements = [];
|
|
394
394
|
for (var i = 0, len = loci.elements.length; i < len; i++) {
|
|
395
395
|
var e = loci.elements[i];
|
|
396
|
-
if (unit_1.Unit.Traits.is(e.unit.traits, 2 /* Partitioned */)) {
|
|
396
|
+
if (unit_1.Unit.Traits.is(e.unit.traits, 2 /* Unit.Trait.Partitioned */)) {
|
|
397
397
|
var start = i;
|
|
398
398
|
while (i < len && unit_1.Unit.areSameChainOperatorGroup(loci.elements[i].unit, e.unit)) {
|
|
399
399
|
i++;
|
|
@@ -51,7 +51,7 @@ var Stats;
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
else if (size === 1) {
|
|
54
|
-
if (unit_1.Unit.Traits.is(unit.traits, 1 /* MultiChain */)) {
|
|
54
|
+
if (unit_1.Unit.Traits.is(unit.traits, 1 /* Unit.Trait.MultiChain */)) {
|
|
55
55
|
// handled in `handleUnitChainsSimple`
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
@@ -136,7 +136,7 @@ var Stats;
|
|
|
136
136
|
if (size === 0)
|
|
137
137
|
return;
|
|
138
138
|
var elements = unit.elements;
|
|
139
|
-
if (!unit_1.Unit.Traits.is(unit.traits, 1 /* MultiChain */)) {
|
|
139
|
+
if (!unit_1.Unit.Traits.is(unit.traits, 1 /* Unit.Trait.MultiChain */)) {
|
|
140
140
|
if (size === elements.length) {
|
|
141
141
|
stats.chainCount += 1;
|
|
142
142
|
if (stats.chainCount === 1) {
|
|
@@ -210,7 +210,7 @@ var Stats;
|
|
|
210
210
|
if (size === 0)
|
|
211
211
|
continue;
|
|
212
212
|
var elements = unit.elements;
|
|
213
|
-
if (!unit_1.Unit.Traits.is(unit.traits, 1 /* MultiChain */)) {
|
|
213
|
+
if (!unit_1.Unit.Traits.is(unit.traits, 1 /* Unit.Trait.MultiChain */)) {
|
|
214
214
|
var eI = elements[int_1.OrderedSet.start(indices)];
|
|
215
215
|
addCountHelper(chainCounts, index[eI], elements.length);
|
|
216
216
|
continue;
|
|
@@ -278,7 +278,7 @@ var Stats;
|
|
|
278
278
|
for (var _i = 0, _b = loci.elements; _i < _b.length; _i++) {
|
|
279
279
|
var e = _b[_i];
|
|
280
280
|
handleElement(stats, loci.structure, e);
|
|
281
|
-
if (!unit_1.Unit.Traits.is(e.unit.traits, 2 /* Partitioned */)) {
|
|
281
|
+
if (!unit_1.Unit.Traits.is(e.unit.traits, 2 /* Unit.Trait.Partitioned */)) {
|
|
282
282
|
handleUnitChainsSimple(stats, loci.structure, e);
|
|
283
283
|
}
|
|
284
284
|
else {
|
|
@@ -289,7 +289,7 @@ var Stats;
|
|
|
289
289
|
if (hasPartitions) {
|
|
290
290
|
for (var i = 0, len = loci.elements.length; i < len; i++) {
|
|
291
291
|
var e = loci.elements[i];
|
|
292
|
-
if (!unit_1.Unit.Traits.is(e.unit.traits, 2 /* Partitioned */))
|
|
292
|
+
if (!unit_1.Unit.Traits.is(e.unit.traits, 2 /* Unit.Trait.Partitioned */))
|
|
293
293
|
continue;
|
|
294
294
|
var start = i;
|
|
295
295
|
while (i < len && unit_1.Unit.areSameChainOperatorGroup(loci.elements[i].unit, e.unit)) {
|