molstar 3.8.2 → 3.9.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/build/viewer/index.html +4 -1
- package/build/viewer/molstar.js +1 -1
- package/lib/apps/viewer/app.d.ts +1 -1
- package/lib/apps/viewer/app.js +1 -1
- package/lib/apps/viewer/index.html +4 -1
- package/lib/cli/cif2bcif/converter.js +1 -1
- package/lib/commonjs/apps/viewer/app.d.ts +1 -1
- package/lib/commonjs/apps/viewer/app.js +2 -1
- 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/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/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/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.js +106 -106
- 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/context.d.ts +2 -2
- 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/sequence/polymer.js +1 -1
- package/lib/commonjs/mol-plugin-ui/sequence/sequence.js +1 -1
- package/lib/commonjs/mol-plugin-ui/structure/focus.js +1 -1
- package/lib/commonjs/mol-plugin-ui/viewport.d.ts +2 -2
- 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 -12
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.js +12 -12
- 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-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 +11 -0
- package/lib/examples/alpha-orbitals/index.js +4 -1
- package/lib/examples/basic-wrapper/custom-theme.js +1 -1
- package/lib/examples/proteopedia-wrapper/coloring.js +3 -3
- 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/model-archive/quality-assessment/color/plddt.js +1 -1
- package/lib/extensions/model-archive/quality-assessment/color/qmean.js +1 -1
- 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/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.js +106 -106
- 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/context.d.ts +2 -2
- 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/sequence/polymer.js +1 -1
- package/lib/mol-plugin-ui/sequence/sequence.js +1 -1
- package/lib/mol-plugin-ui/structure/focus.js +1 -1
- package/lib/mol-plugin-ui/viewport.d.ts +2 -2
- 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 -12
- package/lib/mol-repr/structure/visual/bond-intra-unit-line.js +12 -12
- 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-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 +8 -8
|
@@ -31,22 +31,22 @@ export var IndexedCustomProperty;
|
|
|
31
31
|
IndexedCustomProperty.fromAtomArray = fromAtomArray;
|
|
32
32
|
var getResidueSegments = function (model) { return model.atomicHierarchy.residueAtomSegments; };
|
|
33
33
|
function fromResidueMap(map) {
|
|
34
|
-
return new SegmentedMappedIndexedCustomProperty('residue', map, getResidueSegments, 0 /* Atomic */);
|
|
34
|
+
return new SegmentedMappedIndexedCustomProperty('residue', map, getResidueSegments, 0 /* Unit.Kind.Atomic */);
|
|
35
35
|
}
|
|
36
36
|
IndexedCustomProperty.fromResidueMap = fromResidueMap;
|
|
37
37
|
function fromResidueArray(array) {
|
|
38
38
|
// TODO: create "array based custom property" as optimization
|
|
39
|
-
return new SegmentedMappedIndexedCustomProperty('residue', arrayToMap(array), getResidueSegments, 0 /* Atomic */);
|
|
39
|
+
return new SegmentedMappedIndexedCustomProperty('residue', arrayToMap(array), getResidueSegments, 0 /* Unit.Kind.Atomic */);
|
|
40
40
|
}
|
|
41
41
|
IndexedCustomProperty.fromResidueArray = fromResidueArray;
|
|
42
42
|
var getChainSegments = function (model) { return model.atomicHierarchy.chainAtomSegments; };
|
|
43
43
|
function fromChainMap(map) {
|
|
44
|
-
return new SegmentedMappedIndexedCustomProperty('chain', map, getChainSegments, 0 /* Atomic */);
|
|
44
|
+
return new SegmentedMappedIndexedCustomProperty('chain', map, getChainSegments, 0 /* Unit.Kind.Atomic */);
|
|
45
45
|
}
|
|
46
46
|
IndexedCustomProperty.fromChainMap = fromChainMap;
|
|
47
47
|
function fromChainArray(array) {
|
|
48
48
|
// TODO: create "array based custom property" as optimization
|
|
49
|
-
return new SegmentedMappedIndexedCustomProperty('chain', arrayToMap(array), getChainSegments, 0 /* Atomic */);
|
|
49
|
+
return new SegmentedMappedIndexedCustomProperty('chain', arrayToMap(array), getChainSegments, 0 /* Unit.Kind.Atomic */);
|
|
50
50
|
}
|
|
51
51
|
IndexedCustomProperty.fromChainArray = fromChainArray;
|
|
52
52
|
function fromEntityMap(map) {
|
|
@@ -109,7 +109,7 @@ var ElementMappedCustomProperty = /** @class */ (function () {
|
|
|
109
109
|
this.map = map;
|
|
110
110
|
this.id = UUID.create22();
|
|
111
111
|
this.level = 'atom';
|
|
112
|
-
this.kind = 0 /* Atomic */;
|
|
112
|
+
this.kind = 0 /* Unit.Kind.Atomic */;
|
|
113
113
|
}
|
|
114
114
|
ElementMappedCustomProperty.prototype.has = function (idx) { return this.map.has(idx); };
|
|
115
115
|
ElementMappedCustomProperty.prototype.get = function (idx) { return this.map.get(idx); };
|
|
@@ -150,7 +150,7 @@ var EntityMappedCustomProperty = /** @class */ (function () {
|
|
|
150
150
|
this.map = map;
|
|
151
151
|
this.id = UUID.create22();
|
|
152
152
|
this.level = 'entity';
|
|
153
|
-
this.kind = 0 /* Atomic */;
|
|
153
|
+
this.kind = 0 /* Unit.Kind.Atomic */;
|
|
154
154
|
}
|
|
155
155
|
EntityMappedCustomProperty.prototype.has = function (idx) { return this.map.has(idx); };
|
|
156
156
|
EntityMappedCustomProperty.prototype.get = function (idx) { return this.map.get(idx); };
|
|
@@ -12,7 +12,7 @@ function areBackboneConnected(riStart, riEnd, conformation, index, derived) {
|
|
|
12
12
|
var _a = derived.residue, polymerType = _a.polymerType, traceElementIndex = _a.traceElementIndex, directionFromElementIndex = _a.directionFromElementIndex, directionToElementIndex = _a.directionToElementIndex;
|
|
13
13
|
var ptStart = polymerType[riStart];
|
|
14
14
|
var ptEnd = polymerType[riEnd];
|
|
15
|
-
if (ptStart === 0 /* NA */ || ptEnd === 0 /* NA */)
|
|
15
|
+
if (ptStart === 0 /* PolymerType.NA */ || ptEnd === 0 /* PolymerType.NA */)
|
|
16
16
|
return false;
|
|
17
17
|
if (traceElementIndex[riStart] === -1 || traceElementIndex[riEnd] === -1)
|
|
18
18
|
return false;
|
|
@@ -44,7 +44,7 @@ export function getElementFromAtomicNumber(n) {
|
|
|
44
44
|
return ElementSymbol('H');
|
|
45
45
|
}
|
|
46
46
|
export var PolymerTypeAtomRoleId = (_a = {},
|
|
47
|
-
_a[0 /* NA */] = {
|
|
47
|
+
_a[0 /* PolymerType.NA */] = {
|
|
48
48
|
trace: new Set(),
|
|
49
49
|
directionFrom: new Set(),
|
|
50
50
|
directionTo: new Set(),
|
|
@@ -52,7 +52,7 @@ export var PolymerTypeAtomRoleId = (_a = {},
|
|
|
52
52
|
backboneEnd: new Set(),
|
|
53
53
|
coarseBackbone: new Set()
|
|
54
54
|
},
|
|
55
|
-
_a[1 /* Protein */] = {
|
|
55
|
+
_a[1 /* PolymerType.Protein */] = {
|
|
56
56
|
trace: new Set(['CA']),
|
|
57
57
|
directionFrom: new Set(['C']),
|
|
58
58
|
directionTo: new Set(['O', 'OC1', 'O1', 'OX1', 'OXT', 'OT1']),
|
|
@@ -62,7 +62,7 @@ export var PolymerTypeAtomRoleId = (_a = {},
|
|
|
62
62
|
// BB is often used for coarse grained models
|
|
63
63
|
coarseBackbone: new Set(['CA', 'BB', 'CA1'])
|
|
64
64
|
},
|
|
65
|
-
_a[2 /* GammaProtein */] = {
|
|
65
|
+
_a[2 /* PolymerType.GammaProtein */] = {
|
|
66
66
|
trace: new Set(['CA']),
|
|
67
67
|
directionFrom: new Set(['C']),
|
|
68
68
|
directionTo: new Set(['O']),
|
|
@@ -70,7 +70,7 @@ export var PolymerTypeAtomRoleId = (_a = {},
|
|
|
70
70
|
backboneEnd: new Set(['CD']),
|
|
71
71
|
coarseBackbone: new Set(['CA'])
|
|
72
72
|
},
|
|
73
|
-
_a[3 /* BetaProtein */] = {
|
|
73
|
+
_a[3 /* PolymerType.BetaProtein */] = {
|
|
74
74
|
trace: new Set(['CA']),
|
|
75
75
|
directionFrom: new Set(['C']),
|
|
76
76
|
directionTo: new Set(['O']),
|
|
@@ -78,7 +78,7 @@ export var PolymerTypeAtomRoleId = (_a = {},
|
|
|
78
78
|
backboneEnd: new Set(['CG']),
|
|
79
79
|
coarseBackbone: new Set(['CA'])
|
|
80
80
|
},
|
|
81
|
-
_a[4 /* RNA */] = {
|
|
81
|
+
_a[4 /* PolymerType.RNA */] = {
|
|
82
82
|
trace: new Set(['O3\'', 'O3*']),
|
|
83
83
|
directionFrom: new Set(['C4\'', 'C4*']),
|
|
84
84
|
directionTo: new Set(['C3\'', 'C3*']),
|
|
@@ -86,7 +86,7 @@ export var PolymerTypeAtomRoleId = (_a = {},
|
|
|
86
86
|
backboneEnd: new Set(['O3\'', 'O3*']),
|
|
87
87
|
coarseBackbone: new Set(['P'])
|
|
88
88
|
},
|
|
89
|
-
_a[5 /* DNA */] = {
|
|
89
|
+
_a[5 /* PolymerType.DNA */] = {
|
|
90
90
|
trace: new Set(['O3\'', 'O3*']),
|
|
91
91
|
directionFrom: new Set(['C3\'', 'C3*']),
|
|
92
92
|
directionTo: new Set(['C1\'', 'C1*']),
|
|
@@ -94,7 +94,7 @@ export var PolymerTypeAtomRoleId = (_a = {},
|
|
|
94
94
|
backboneEnd: new Set(['O3\'', 'O3*']),
|
|
95
95
|
coarseBackbone: new Set(['P'])
|
|
96
96
|
},
|
|
97
|
-
_a[6 /* PNA */] = {
|
|
97
|
+
_a[6 /* PolymerType.PNA */] = {
|
|
98
98
|
trace: new Set(['N4\'', 'N4*']),
|
|
99
99
|
directionFrom: new Set(['N4\'', 'N4*']),
|
|
100
100
|
directionTo: new Set(['C7\'', 'C7*']),
|
|
@@ -234,77 +234,77 @@ export var PolymerNames = SetUtils.unionMany(AminoAcidNames, BaseNames);
|
|
|
234
234
|
export function getMoleculeType(compType, compId) {
|
|
235
235
|
compId = compId.toUpperCase();
|
|
236
236
|
if (PeptideBaseNames.has(compId)) {
|
|
237
|
-
return 8 /* PNA */;
|
|
237
|
+
return 8 /* MoleculeType.PNA */;
|
|
238
238
|
}
|
|
239
239
|
else if (ProteinComponentTypeNames.has(compType)) {
|
|
240
|
-
return 5 /* Protein */;
|
|
240
|
+
return 5 /* MoleculeType.Protein */;
|
|
241
241
|
}
|
|
242
242
|
else if (RNAComponentTypeNames.has(compType)) {
|
|
243
|
-
return 6 /* RNA */;
|
|
243
|
+
return 6 /* MoleculeType.RNA */;
|
|
244
244
|
}
|
|
245
245
|
else if (DNAComponentTypeNames.has(compType)) {
|
|
246
|
-
return 7 /* DNA */;
|
|
246
|
+
return 7 /* MoleculeType.DNA */;
|
|
247
247
|
}
|
|
248
248
|
else if (SaccharideComponentTypeNames.has(compType)) {
|
|
249
|
-
return 9 /* Saccharide */;
|
|
249
|
+
return 9 /* MoleculeType.Saccharide */;
|
|
250
250
|
}
|
|
251
251
|
else if (WaterNames.has(compId)) {
|
|
252
|
-
return 2 /* Water */;
|
|
252
|
+
return 2 /* MoleculeType.Water */;
|
|
253
253
|
}
|
|
254
254
|
else if (IonNames.has(compId)) {
|
|
255
|
-
return 3 /* Ion */;
|
|
255
|
+
return 3 /* MoleculeType.Ion */;
|
|
256
256
|
}
|
|
257
257
|
else if (LipidNames.has(compId)) {
|
|
258
|
-
return 4 /* Lipid */;
|
|
258
|
+
return 4 /* MoleculeType.Lipid */;
|
|
259
259
|
}
|
|
260
260
|
else if (OtherComponentTypeNames.has(compType)) {
|
|
261
261
|
if (SaccharideCompIdMap.has(compId)) {
|
|
262
262
|
// trust our saccharide table more than given 'NON-POLYMER' or 'OTHER' component type
|
|
263
|
-
return 9 /* Saccharide */;
|
|
263
|
+
return 9 /* MoleculeType.Saccharide */;
|
|
264
264
|
}
|
|
265
265
|
else if (AminoAcidNames.has(compId)) {
|
|
266
|
-
return 5 /* Protein */;
|
|
266
|
+
return 5 /* MoleculeType.Protein */;
|
|
267
267
|
}
|
|
268
268
|
else if (RnaBaseNames.has(compId)) {
|
|
269
|
-
return 6 /* RNA */;
|
|
269
|
+
return 6 /* MoleculeType.RNA */;
|
|
270
270
|
}
|
|
271
271
|
else if (DnaBaseNames.has(compId)) {
|
|
272
|
-
return 7 /* DNA */;
|
|
272
|
+
return 7 /* MoleculeType.DNA */;
|
|
273
273
|
}
|
|
274
274
|
else {
|
|
275
|
-
return 1 /* Other */;
|
|
275
|
+
return 1 /* MoleculeType.Other */;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
else {
|
|
279
|
-
return 0 /* Unknown */;
|
|
279
|
+
return 0 /* MoleculeType.Unknown */;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
export function getPolymerType(compType, molType) {
|
|
283
|
-
if (molType === 5 /* Protein */) {
|
|
283
|
+
if (molType === 5 /* MoleculeType.Protein */) {
|
|
284
284
|
if (GammaProteinComponentTypeNames.has(compType)) {
|
|
285
|
-
return 2 /* GammaProtein */;
|
|
285
|
+
return 2 /* PolymerType.GammaProtein */;
|
|
286
286
|
}
|
|
287
287
|
else if (BetaProteinComponentTypeNames.has(compType)) {
|
|
288
|
-
return 3 /* BetaProtein */;
|
|
288
|
+
return 3 /* PolymerType.BetaProtein */;
|
|
289
289
|
}
|
|
290
290
|
else if (ProteinTerminusComponentTypeNames.has(compType)) {
|
|
291
|
-
return 0 /* NA */;
|
|
291
|
+
return 0 /* PolymerType.NA */;
|
|
292
292
|
}
|
|
293
293
|
else {
|
|
294
|
-
return 1 /* Protein */;
|
|
294
|
+
return 1 /* PolymerType.Protein */;
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
-
else if (molType === 6 /* RNA */) {
|
|
298
|
-
return 4 /* RNA */;
|
|
297
|
+
else if (molType === 6 /* MoleculeType.RNA */) {
|
|
298
|
+
return 4 /* PolymerType.RNA */;
|
|
299
299
|
}
|
|
300
|
-
else if (molType === 7 /* DNA */) {
|
|
301
|
-
return 5 /* DNA */;
|
|
300
|
+
else if (molType === 7 /* MoleculeType.DNA */) {
|
|
301
|
+
return 5 /* PolymerType.DNA */;
|
|
302
302
|
}
|
|
303
|
-
else if (molType === 8 /* PNA */) {
|
|
304
|
-
return 6 /* PNA */;
|
|
303
|
+
else if (molType === 8 /* MoleculeType.PNA */) {
|
|
304
|
+
return 6 /* PolymerType.PNA */;
|
|
305
305
|
}
|
|
306
306
|
else {
|
|
307
|
-
return 0 /* NA */;
|
|
307
|
+
return 0 /* PolymerType.NA */;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
export function getComponentType(compId) {
|
|
@@ -405,89 +405,89 @@ export function isPolymer(moleculeType) {
|
|
|
405
405
|
return isNucleic(moleculeType) || isProtein(moleculeType);
|
|
406
406
|
}
|
|
407
407
|
export function isNucleic(moleculeType) {
|
|
408
|
-
return moleculeType === 7 /* DNA */ || moleculeType === 6 /* RNA */ || moleculeType === 8 /* PNA */;
|
|
408
|
+
return moleculeType === 7 /* MoleculeType.DNA */ || moleculeType === 6 /* MoleculeType.RNA */ || moleculeType === 8 /* MoleculeType.PNA */;
|
|
409
409
|
}
|
|
410
410
|
export function isProtein(moleculeType) {
|
|
411
|
-
return moleculeType === 5 /* Protein */;
|
|
411
|
+
return moleculeType === 5 /* MoleculeType.Protein */;
|
|
412
412
|
}
|
|
413
413
|
export var SecondaryStructureType;
|
|
414
414
|
(function (SecondaryStructureType) {
|
|
415
415
|
SecondaryStructureType.is = BitFlags.has;
|
|
416
416
|
SecondaryStructureType.create = BitFlags.create;
|
|
417
417
|
SecondaryStructureType.SecondaryStructureMmcif = {
|
|
418
|
-
helx_lh_27_p: 2 /* Helix */ | 32 /* LeftHanded */ | 1024 /* Helix27 */,
|
|
419
|
-
helx_lh_3t_p: 2 /* Helix */ | 32 /* LeftHanded */ | 2048 /* Helix3Ten */,
|
|
420
|
-
helx_lh_al_p: 2 /* Helix */ | 32 /* LeftHanded */ | 4096 /* HelixAlpha */,
|
|
421
|
-
helx_lh_a_n: 1 /* DoubleHelix */ | 32 /* LeftHanded */ | 524288 /* DoubleHelixA */,
|
|
422
|
-
helx_lh_b_n: 1 /* DoubleHelix */ | 32 /* LeftHanded */ | 1048576 /* DoubleHelixB */,
|
|
423
|
-
helx_lh_ga_p: 2 /* Helix */ | 32 /* LeftHanded */ | 8192 /* HelixGamma */,
|
|
424
|
-
helx_lh_n: 1 /* DoubleHelix */ | 32 /* LeftHanded */,
|
|
425
|
-
helx_lh_om_p: 2 /* Helix */ | 32 /* LeftHanded */ | 16384 /* HelixOmega */,
|
|
426
|
-
helx_lh_ot_n: 1 /* DoubleHelix */ | 32 /* LeftHanded */ | 131072 /* DoubleHelixOther */,
|
|
427
|
-
helx_lh_ot_p: 2 /* Helix */ | 32 /* LeftHanded */ | 512 /* HelixOther */,
|
|
428
|
-
helx_lh_p: 2 /* Helix */ | 32 /* LeftHanded */,
|
|
429
|
-
helx_lh_pi_p: 2 /* Helix */ | 32 /* LeftHanded */ | 32768 /* HelixPi */,
|
|
430
|
-
helx_lh_pp_p: 2 /* Helix */ | 32 /* LeftHanded */ | 65536 /* HelixPolyproline */,
|
|
431
|
-
helx_lh_z_n: 1 /* DoubleHelix */ | 32 /* LeftHanded */ | 262144 /* DoubleHelixZ */,
|
|
432
|
-
helx_n: 1 /* DoubleHelix */,
|
|
433
|
-
helx_ot_n: 1 /* DoubleHelix */,
|
|
434
|
-
helx_ot_p: 2 /* Helix */,
|
|
435
|
-
helx_p: 2 /* Helix */,
|
|
436
|
-
helx_rh_27_p: 2 /* Helix */ | 64 /* RightHanded */ | 1024 /* Helix27 */,
|
|
437
|
-
helx_rh_3t_p: 2 /* Helix */ | 64 /* RightHanded */ | 2048 /* Helix3Ten */,
|
|
438
|
-
helx_rh_al_p: 2 /* Helix */ | 64 /* RightHanded */ | 4096 /* HelixAlpha */,
|
|
439
|
-
helx_rh_a_n: 1 /* DoubleHelix */ | 64 /* RightHanded */ | 524288 /* DoubleHelixA */,
|
|
440
|
-
helx_rh_b_n: 1 /* DoubleHelix */ | 64 /* RightHanded */ | 1048576 /* DoubleHelixB */,
|
|
441
|
-
helx_rh_ga_p: 2 /* Helix */ | 64 /* RightHanded */ | 8192 /* HelixGamma */,
|
|
442
|
-
helx_rh_n: 1 /* DoubleHelix */ | 64 /* RightHanded */,
|
|
443
|
-
helx_rh_om_p: 2 /* Helix */ | 64 /* RightHanded */ | 16384 /* HelixOmega */,
|
|
444
|
-
helx_rh_ot_n: 1 /* DoubleHelix */ | 64 /* RightHanded */ | 131072 /* DoubleHelixOther */,
|
|
445
|
-
helx_rh_ot_p: 2 /* Helix */ | 64 /* RightHanded */ | 512 /* HelixOther */,
|
|
446
|
-
helx_rh_p: 2 /* Helix */ | 64 /* RightHanded */,
|
|
447
|
-
helx_rh_pi_p: 2 /* Helix */ | 64 /* RightHanded */ | 32768 /* HelixPi */,
|
|
448
|
-
helx_rh_pp_p: 2 /* Helix */ | 64 /* RightHanded */ | 65536 /* HelixPolyproline */,
|
|
449
|
-
helx_rh_z_n: 1 /* DoubleHelix */ | 64 /* RightHanded */ | 262144 /* DoubleHelixZ */,
|
|
450
|
-
strn: 4 /* Beta */ | 4194304 /* BetaStrand */,
|
|
451
|
-
turn_ot_p: 16 /* Turn */ | 33554432 /* TurnOther */,
|
|
452
|
-
turn_p: 16 /* Turn */,
|
|
453
|
-
turn_ty1p_p: 16 /* Turn */ | 256 /* InverseTurn */ | 67108864 /* Turn1 */,
|
|
454
|
-
turn_ty1_p: 16 /* Turn */ | 128 /* ClassicTurn */ | 67108864 /* Turn1 */,
|
|
455
|
-
turn_ty2p_p: 16 /* Turn */ | 256 /* InverseTurn */ | 134217728 /* Turn2 */,
|
|
456
|
-
turn_ty2_p: 16 /* Turn */ | 128 /* ClassicTurn */ | 134217728 /* Turn2 */,
|
|
457
|
-
turn_ty3p_p: 16 /* Turn */ | 256 /* InverseTurn */ | 268435456 /* Turn3 */,
|
|
458
|
-
turn_ty3_p: 16 /* Turn */ | 128 /* ClassicTurn */ | 268435456 /* Turn3 */,
|
|
459
|
-
bend: 8 /* Bend */,
|
|
460
|
-
other: 0 /* None */, // secondary structure type that does not conform to an accepted category, random coil (protein)
|
|
418
|
+
helx_lh_27_p: 2 /* Flag.Helix */ | 32 /* Flag.LeftHanded */ | 1024 /* Flag.Helix27 */,
|
|
419
|
+
helx_lh_3t_p: 2 /* Flag.Helix */ | 32 /* Flag.LeftHanded */ | 2048 /* Flag.Helix3Ten */,
|
|
420
|
+
helx_lh_al_p: 2 /* Flag.Helix */ | 32 /* Flag.LeftHanded */ | 4096 /* Flag.HelixAlpha */,
|
|
421
|
+
helx_lh_a_n: 1 /* Flag.DoubleHelix */ | 32 /* Flag.LeftHanded */ | 524288 /* Flag.DoubleHelixA */,
|
|
422
|
+
helx_lh_b_n: 1 /* Flag.DoubleHelix */ | 32 /* Flag.LeftHanded */ | 1048576 /* Flag.DoubleHelixB */,
|
|
423
|
+
helx_lh_ga_p: 2 /* Flag.Helix */ | 32 /* Flag.LeftHanded */ | 8192 /* Flag.HelixGamma */,
|
|
424
|
+
helx_lh_n: 1 /* Flag.DoubleHelix */ | 32 /* Flag.LeftHanded */,
|
|
425
|
+
helx_lh_om_p: 2 /* Flag.Helix */ | 32 /* Flag.LeftHanded */ | 16384 /* Flag.HelixOmega */,
|
|
426
|
+
helx_lh_ot_n: 1 /* Flag.DoubleHelix */ | 32 /* Flag.LeftHanded */ | 131072 /* Flag.DoubleHelixOther */,
|
|
427
|
+
helx_lh_ot_p: 2 /* Flag.Helix */ | 32 /* Flag.LeftHanded */ | 512 /* Flag.HelixOther */,
|
|
428
|
+
helx_lh_p: 2 /* Flag.Helix */ | 32 /* Flag.LeftHanded */,
|
|
429
|
+
helx_lh_pi_p: 2 /* Flag.Helix */ | 32 /* Flag.LeftHanded */ | 32768 /* Flag.HelixPi */,
|
|
430
|
+
helx_lh_pp_p: 2 /* Flag.Helix */ | 32 /* Flag.LeftHanded */ | 65536 /* Flag.HelixPolyproline */,
|
|
431
|
+
helx_lh_z_n: 1 /* Flag.DoubleHelix */ | 32 /* Flag.LeftHanded */ | 262144 /* Flag.DoubleHelixZ */,
|
|
432
|
+
helx_n: 1 /* Flag.DoubleHelix */,
|
|
433
|
+
helx_ot_n: 1 /* Flag.DoubleHelix */,
|
|
434
|
+
helx_ot_p: 2 /* Flag.Helix */,
|
|
435
|
+
helx_p: 2 /* Flag.Helix */,
|
|
436
|
+
helx_rh_27_p: 2 /* Flag.Helix */ | 64 /* Flag.RightHanded */ | 1024 /* Flag.Helix27 */,
|
|
437
|
+
helx_rh_3t_p: 2 /* Flag.Helix */ | 64 /* Flag.RightHanded */ | 2048 /* Flag.Helix3Ten */,
|
|
438
|
+
helx_rh_al_p: 2 /* Flag.Helix */ | 64 /* Flag.RightHanded */ | 4096 /* Flag.HelixAlpha */,
|
|
439
|
+
helx_rh_a_n: 1 /* Flag.DoubleHelix */ | 64 /* Flag.RightHanded */ | 524288 /* Flag.DoubleHelixA */,
|
|
440
|
+
helx_rh_b_n: 1 /* Flag.DoubleHelix */ | 64 /* Flag.RightHanded */ | 1048576 /* Flag.DoubleHelixB */,
|
|
441
|
+
helx_rh_ga_p: 2 /* Flag.Helix */ | 64 /* Flag.RightHanded */ | 8192 /* Flag.HelixGamma */,
|
|
442
|
+
helx_rh_n: 1 /* Flag.DoubleHelix */ | 64 /* Flag.RightHanded */,
|
|
443
|
+
helx_rh_om_p: 2 /* Flag.Helix */ | 64 /* Flag.RightHanded */ | 16384 /* Flag.HelixOmega */,
|
|
444
|
+
helx_rh_ot_n: 1 /* Flag.DoubleHelix */ | 64 /* Flag.RightHanded */ | 131072 /* Flag.DoubleHelixOther */,
|
|
445
|
+
helx_rh_ot_p: 2 /* Flag.Helix */ | 64 /* Flag.RightHanded */ | 512 /* Flag.HelixOther */,
|
|
446
|
+
helx_rh_p: 2 /* Flag.Helix */ | 64 /* Flag.RightHanded */,
|
|
447
|
+
helx_rh_pi_p: 2 /* Flag.Helix */ | 64 /* Flag.RightHanded */ | 32768 /* Flag.HelixPi */,
|
|
448
|
+
helx_rh_pp_p: 2 /* Flag.Helix */ | 64 /* Flag.RightHanded */ | 65536 /* Flag.HelixPolyproline */,
|
|
449
|
+
helx_rh_z_n: 1 /* Flag.DoubleHelix */ | 64 /* Flag.RightHanded */ | 262144 /* Flag.DoubleHelixZ */,
|
|
450
|
+
strn: 4 /* Flag.Beta */ | 4194304 /* Flag.BetaStrand */,
|
|
451
|
+
turn_ot_p: 16 /* Flag.Turn */ | 33554432 /* Flag.TurnOther */,
|
|
452
|
+
turn_p: 16 /* Flag.Turn */,
|
|
453
|
+
turn_ty1p_p: 16 /* Flag.Turn */ | 256 /* Flag.InverseTurn */ | 67108864 /* Flag.Turn1 */,
|
|
454
|
+
turn_ty1_p: 16 /* Flag.Turn */ | 128 /* Flag.ClassicTurn */ | 67108864 /* Flag.Turn1 */,
|
|
455
|
+
turn_ty2p_p: 16 /* Flag.Turn */ | 256 /* Flag.InverseTurn */ | 134217728 /* Flag.Turn2 */,
|
|
456
|
+
turn_ty2_p: 16 /* Flag.Turn */ | 128 /* Flag.ClassicTurn */ | 134217728 /* Flag.Turn2 */,
|
|
457
|
+
turn_ty3p_p: 16 /* Flag.Turn */ | 256 /* Flag.InverseTurn */ | 268435456 /* Flag.Turn3 */,
|
|
458
|
+
turn_ty3_p: 16 /* Flag.Turn */ | 128 /* Flag.ClassicTurn */ | 268435456 /* Flag.Turn3 */,
|
|
459
|
+
bend: 8 /* Flag.Bend */,
|
|
460
|
+
other: 0 /* Flag.None */, // secondary structure type that does not conform to an accepted category, random coil (protein)
|
|
461
461
|
};
|
|
462
462
|
SecondaryStructureType.SecondaryStructurePdb = {
|
|
463
|
-
1: 2 /* Helix */ | 64 /* RightHanded */ | 4096 /* HelixAlpha */,
|
|
464
|
-
2: 2 /* Helix */ | 64 /* RightHanded */ | 16384 /* HelixOmega */,
|
|
465
|
-
3: 2 /* Helix */ | 64 /* RightHanded */ | 32768 /* HelixPi */,
|
|
466
|
-
4: 2 /* Helix */ | 64 /* RightHanded */ | 8192 /* HelixGamma */,
|
|
467
|
-
5: 2 /* Helix */ | 64 /* RightHanded */ | 2048 /* Helix3Ten */,
|
|
468
|
-
6: 2 /* Helix */ | 32 /* LeftHanded */ | 4096 /* HelixAlpha */,
|
|
469
|
-
7: 2 /* Helix */ | 32 /* LeftHanded */ | 16384 /* HelixOmega */,
|
|
470
|
-
8: 2 /* Helix */ | 32 /* LeftHanded */ | 8192 /* HelixGamma */,
|
|
471
|
-
9: 2 /* Helix */ | 1024 /* Helix27 */,
|
|
472
|
-
10: 2 /* Helix */ | 65536 /* HelixPolyproline */, // Polyproline
|
|
463
|
+
1: 2 /* Flag.Helix */ | 64 /* Flag.RightHanded */ | 4096 /* Flag.HelixAlpha */,
|
|
464
|
+
2: 2 /* Flag.Helix */ | 64 /* Flag.RightHanded */ | 16384 /* Flag.HelixOmega */,
|
|
465
|
+
3: 2 /* Flag.Helix */ | 64 /* Flag.RightHanded */ | 32768 /* Flag.HelixPi */,
|
|
466
|
+
4: 2 /* Flag.Helix */ | 64 /* Flag.RightHanded */ | 8192 /* Flag.HelixGamma */,
|
|
467
|
+
5: 2 /* Flag.Helix */ | 64 /* Flag.RightHanded */ | 2048 /* Flag.Helix3Ten */,
|
|
468
|
+
6: 2 /* Flag.Helix */ | 32 /* Flag.LeftHanded */ | 4096 /* Flag.HelixAlpha */,
|
|
469
|
+
7: 2 /* Flag.Helix */ | 32 /* Flag.LeftHanded */ | 16384 /* Flag.HelixOmega */,
|
|
470
|
+
8: 2 /* Flag.Helix */ | 32 /* Flag.LeftHanded */ | 8192 /* Flag.HelixGamma */,
|
|
471
|
+
9: 2 /* Flag.Helix */ | 1024 /* Flag.Helix27 */,
|
|
472
|
+
10: 2 /* Flag.Helix */ | 65536 /* Flag.HelixPolyproline */, // Polyproline
|
|
473
473
|
};
|
|
474
474
|
SecondaryStructureType.SecondaryStructureStride = {
|
|
475
|
-
H: 2 /* Helix */ | 4096 /* HelixAlpha */,
|
|
476
|
-
G: 2 /* Helix */ | 2048 /* Helix3Ten */,
|
|
477
|
-
I: 2 /* Helix */ | 32768 /* HelixPi */,
|
|
478
|
-
E: 4 /* Beta */ | 8388608 /* BetaSheet */,
|
|
479
|
-
B: 4 /* Beta */ | 4194304 /* BetaStrand */,
|
|
480
|
-
T: 16 /* Turn */,
|
|
481
|
-
C: 536870912 /* NA */, // Coil (none of the above)
|
|
475
|
+
H: 2 /* Flag.Helix */ | 4096 /* Flag.HelixAlpha */,
|
|
476
|
+
G: 2 /* Flag.Helix */ | 2048 /* Flag.Helix3Ten */,
|
|
477
|
+
I: 2 /* Flag.Helix */ | 32768 /* Flag.HelixPi */,
|
|
478
|
+
E: 4 /* Flag.Beta */ | 8388608 /* Flag.BetaSheet */,
|
|
479
|
+
B: 4 /* Flag.Beta */ | 4194304 /* Flag.BetaStrand */,
|
|
480
|
+
T: 16 /* Flag.Turn */,
|
|
481
|
+
C: 536870912 /* Flag.NA */, // Coil (none of the above)
|
|
482
482
|
};
|
|
483
483
|
SecondaryStructureType.SecondaryStructureDssp = {
|
|
484
|
-
H: 2 /* Helix */ | 4096 /* HelixAlpha */,
|
|
485
|
-
B: 4 /* Beta */ | 4194304 /* BetaStrand */,
|
|
486
|
-
E: 4 /* Beta */ | 8388608 /* BetaSheet */,
|
|
487
|
-
G: 2 /* Helix */ | 2048 /* Helix3Ten */,
|
|
488
|
-
I: 2 /* Helix */ | 32768 /* HelixPi */,
|
|
489
|
-
T: 16 /* Turn */,
|
|
490
|
-
S: 8 /* Bend */, // bend
|
|
484
|
+
H: 2 /* Flag.Helix */ | 4096 /* Flag.HelixAlpha */,
|
|
485
|
+
B: 4 /* Flag.Beta */ | 4194304 /* Flag.BetaStrand */,
|
|
486
|
+
E: 4 /* Flag.Beta */ | 8388608 /* Flag.BetaSheet */,
|
|
487
|
+
G: 2 /* Flag.Helix */ | 2048 /* Flag.Helix3Ten */,
|
|
488
|
+
I: 2 /* Flag.Helix */ | 32768 /* Flag.HelixPi */,
|
|
489
|
+
T: 16 /* Flag.Turn */,
|
|
490
|
+
S: 8 /* Flag.Bend */, // bend
|
|
491
491
|
};
|
|
492
492
|
})(SecondaryStructureType || (SecondaryStructureType = {}));
|
|
493
493
|
/** Maximum accessible surface area observed for amino acids. Taken from: http://dx.doi.org/10.1371/journal.pone.0080635 */
|
|
@@ -526,7 +526,7 @@ export var BondType;
|
|
|
526
526
|
}
|
|
527
527
|
BondType.create = create;
|
|
528
528
|
function isCovalent(flags) {
|
|
529
|
-
return (flags & 1 /* Covalent */) !== 0;
|
|
529
|
+
return (flags & 1 /* BondType.Flag.Covalent */) !== 0;
|
|
530
530
|
}
|
|
531
531
|
BondType.isCovalent = isCovalent;
|
|
532
532
|
function isAll(flags) {
|
|
@@ -534,12 +534,12 @@ export var BondType;
|
|
|
534
534
|
}
|
|
535
535
|
BondType.isAll = isAll;
|
|
536
536
|
BondType.Names = {
|
|
537
|
-
'covalent': 1 /* Covalent */,
|
|
538
|
-
'metal-coordination': 2 /* MetallicCoordination */,
|
|
539
|
-
'hydrogen-bond': 4 /* HydrogenBond */,
|
|
540
|
-
'disulfide': 8 /* Disulfide */,
|
|
541
|
-
'aromatic': 16 /* Aromatic */,
|
|
542
|
-
'computed': 32 /* Computed */,
|
|
537
|
+
'covalent': 1 /* Flag.Covalent */,
|
|
538
|
+
'metal-coordination': 2 /* Flag.MetallicCoordination */,
|
|
539
|
+
'hydrogen-bond': 4 /* Flag.HydrogenBond */,
|
|
540
|
+
'disulfide': 8 /* Flag.Disulfide */,
|
|
541
|
+
'aromatic': 16 /* Flag.Aromatic */,
|
|
542
|
+
'computed': 32 /* Flag.Computed */,
|
|
543
543
|
};
|
|
544
544
|
function isName(name) {
|
|
545
545
|
return name in BondType.Names;
|
|
@@ -547,17 +547,17 @@ export var BondType;
|
|
|
547
547
|
BondType.isName = isName;
|
|
548
548
|
function fromName(name) {
|
|
549
549
|
switch (name) {
|
|
550
|
-
case 'covalent': return 1 /* Covalent */;
|
|
551
|
-
case 'metal-coordination': return 2 /* MetallicCoordination */;
|
|
552
|
-
case 'hydrogen-bond': return 4 /* HydrogenBond */;
|
|
553
|
-
case 'disulfide': return 8 /* Disulfide */;
|
|
554
|
-
case 'aromatic': return 16 /* Aromatic */;
|
|
555
|
-
case 'computed': return 32 /* Computed */;
|
|
550
|
+
case 'covalent': return 1 /* Flag.Covalent */;
|
|
551
|
+
case 'metal-coordination': return 2 /* Flag.MetallicCoordination */;
|
|
552
|
+
case 'hydrogen-bond': return 4 /* Flag.HydrogenBond */;
|
|
553
|
+
case 'disulfide': return 8 /* Flag.Disulfide */;
|
|
554
|
+
case 'aromatic': return 16 /* Flag.Aromatic */;
|
|
555
|
+
case 'computed': return 32 /* Flag.Computed */;
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
558
|
BondType.fromName = fromName;
|
|
559
559
|
function fromNames(names) {
|
|
560
|
-
var f = 0 /* None */;
|
|
560
|
+
var f = 0 /* Flag.None */;
|
|
561
561
|
for (var i = 0, il = names.length; i < il; ++i) {
|
|
562
562
|
f |= fromName(names[i]);
|
|
563
563
|
}
|
|
@@ -86,7 +86,7 @@ var QueryContextBondInfo = /** @class */ (function () {
|
|
|
86
86
|
this.aIndex = 0;
|
|
87
87
|
this.b = StructureElement.Location.create(void 0);
|
|
88
88
|
this.bIndex = 0;
|
|
89
|
-
this.type = 0 /* None */;
|
|
89
|
+
this.type = 0 /* BondType.Flag.None */;
|
|
90
90
|
this.order = 0;
|
|
91
91
|
this.testFn = defaultBondTest;
|
|
92
92
|
}
|
|
@@ -76,7 +76,7 @@ function atomGroupsSegmented(_a) {
|
|
|
76
76
|
continue;
|
|
77
77
|
var elements = unit.elements, model = unit.model;
|
|
78
78
|
builder.beginUnit(unit.id);
|
|
79
|
-
if (unit.kind === 0 /* Atomic */) {
|
|
79
|
+
if (unit.kind === 0 /* Unit.Kind.Atomic */) {
|
|
80
80
|
var chainsIt = Segmentation.transientSegments(unit.model.atomicHierarchy.chainAtomSegments, elements);
|
|
81
81
|
var residuesIt = Segmentation.transientSegments(unit.model.atomicHierarchy.residueAtomSegments, elements);
|
|
82
82
|
while (chainsIt.hasNext) {
|
|
@@ -111,7 +111,7 @@ function atomGroupsSegmented(_a) {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
else {
|
|
114
|
-
var chainElementSegments = (1 /* Spheres */ ? model.coarseHierarchy.spheres : model.coarseHierarchy.gaussians).chainElementSegments;
|
|
114
|
+
var chainElementSegments = (1 /* Unit.Kind.Spheres */ ? model.coarseHierarchy.spheres : model.coarseHierarchy.gaussians).chainElementSegments;
|
|
115
115
|
var chainsIt = Segmentation.transientSegments(chainElementSegments, elements);
|
|
116
116
|
while (chainsIt.hasNext) {
|
|
117
117
|
var chainSegment = chainsIt.move();
|
|
@@ -153,7 +153,7 @@ function atomGroupsGrouped(_a) {
|
|
|
153
153
|
if (!unitTest(ctx))
|
|
154
154
|
continue;
|
|
155
155
|
var elements = unit.elements, model = unit.model;
|
|
156
|
-
if (unit.kind === 0 /* Atomic */) {
|
|
156
|
+
if (unit.kind === 0 /* Unit.Kind.Atomic */) {
|
|
157
157
|
var chainsIt = Segmentation.transientSegments(model.atomicHierarchy.chainAtomSegments, elements);
|
|
158
158
|
var residuesIt = Segmentation.transientSegments(model.atomicHierarchy.residueAtomSegments, elements);
|
|
159
159
|
while (chainsIt.hasNext) {
|
|
@@ -180,7 +180,7 @@ function atomGroupsGrouped(_a) {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
else {
|
|
183
|
-
var chainElementSegments = (1 /* Spheres */ ? model.coarseHierarchy.spheres : model.coarseHierarchy.gaussians).chainElementSegments;
|
|
183
|
+
var chainElementSegments = (1 /* Unit.Kind.Spheres */ ? model.coarseHierarchy.spheres : model.coarseHierarchy.gaussians).chainElementSegments;
|
|
184
184
|
var chainsIt = Segmentation.transientSegments(chainElementSegments, elements);
|
|
185
185
|
while (chainsIt.hasNext) {
|
|
186
186
|
var chainSegment = chainsIt.move();
|
|
@@ -288,7 +288,7 @@ export function bondedAtomicPairs(bondTest) {
|
|
|
288
288
|
// Process intra unit bonds
|
|
289
289
|
for (var _a = 0, _b = structure.units; _a < _b.length; _a++) {
|
|
290
290
|
var unit = _b[_a];
|
|
291
|
-
if (unit.kind !== 0 /* Atomic */)
|
|
291
|
+
if (unit.kind !== 0 /* Unit.Kind.Atomic */)
|
|
292
292
|
continue;
|
|
293
293
|
var _c = unit.bonds, intraBondOffset = _c.offset, intraBondB = _c.b, _d = _c.edgeProps, flags = _d.flags, order = _d.order;
|
|
294
294
|
atomicBond.a.unit = unit;
|
|
@@ -20,7 +20,7 @@ export function atomicSequence() {
|
|
|
20
20
|
var units = [];
|
|
21
21
|
for (var _i = 0, _a = inputStructure.units; _i < _a.length; _i++) {
|
|
22
22
|
var unit = _a[_i];
|
|
23
|
-
if (unit.kind !== 0 /* Atomic */)
|
|
23
|
+
if (unit.kind !== 0 /* Unit.Kind.Atomic */)
|
|
24
24
|
continue;
|
|
25
25
|
l.unit = unit;
|
|
26
26
|
var elements = unit.elements;
|
|
@@ -47,7 +47,7 @@ export function water() {
|
|
|
47
47
|
var units = [];
|
|
48
48
|
for (var _i = 0, _a = inputStructure.units; _i < _a.length; _i++) {
|
|
49
49
|
var unit = _a[_i];
|
|
50
|
-
if (unit.kind !== 0 /* Atomic */)
|
|
50
|
+
if (unit.kind !== 0 /* Unit.Kind.Atomic */)
|
|
51
51
|
continue;
|
|
52
52
|
l.unit = unit;
|
|
53
53
|
var elements = unit.elements;
|
|
@@ -66,7 +66,7 @@ export function atomicHet() {
|
|
|
66
66
|
var units = [];
|
|
67
67
|
for (var _i = 0, _a = inputStructure.units; _i < _a.length; _i++) {
|
|
68
68
|
var unit = _a[_i];
|
|
69
|
-
if (unit.kind !== 0 /* Atomic */)
|
|
69
|
+
if (unit.kind !== 0 /* Unit.Kind.Atomic */)
|
|
70
70
|
continue;
|
|
71
71
|
l.unit = unit;
|
|
72
72
|
var elements = unit.elements;
|
|
@@ -94,7 +94,7 @@ export function spheres() {
|
|
|
94
94
|
var units = [];
|
|
95
95
|
for (var _i = 0, _a = inputStructure.units; _i < _a.length; _i++) {
|
|
96
96
|
var unit = _a[_i];
|
|
97
|
-
if (unit.kind !== 1 /* Spheres */)
|
|
97
|
+
if (unit.kind !== 1 /* Unit.Kind.Spheres */)
|
|
98
98
|
continue;
|
|
99
99
|
units.push(unit);
|
|
100
100
|
}
|
|
@@ -19,7 +19,7 @@ function getWholeResidues(ctx, source, structure) {
|
|
|
19
19
|
var builder = source.subsetBuilder(true);
|
|
20
20
|
for (var _a = 0, _b = structure.units; _a < _b.length; _a++) {
|
|
21
21
|
var unit = _b[_a];
|
|
22
|
-
if (unit.kind !== 0 /* Atomic */) {
|
|
22
|
+
if (unit.kind !== 0 /* Unit.Kind.Atomic */) {
|
|
23
23
|
// just copy non-atomic units.
|
|
24
24
|
builder.setUnit(unit.id, unit.elements);
|
|
25
25
|
continue;
|
|
@@ -318,7 +318,7 @@ function expandConnected(ctx, structure) {
|
|
|
318
318
|
// Process intra unit bonds
|
|
319
319
|
for (var _a = 0, _b = structure.units; _a < _b.length; _a++) {
|
|
320
320
|
var unit = _b[_a];
|
|
321
|
-
if (unit.kind !== 0 /* Atomic */) {
|
|
321
|
+
if (unit.kind !== 0 /* Unit.Kind.Atomic */) {
|
|
322
322
|
// add the whole unit
|
|
323
323
|
builder.beginUnit(unit.id);
|
|
324
324
|
for (var i = 0, _i = unit.elements.length; i < _i; i++) {
|
|
@@ -403,7 +403,7 @@ export function surroundingLigands(_a) {
|
|
|
403
403
|
var componentResidues = new ResidueSet({ checkOperator: true });
|
|
404
404
|
for (var _a = 0, _b = surroundings.units; _a < _b.length; _a++) {
|
|
405
405
|
var unit = _b[_a];
|
|
406
|
-
if (unit.kind !== 0 /* Atomic */)
|
|
406
|
+
if (unit.kind !== 0 /* Unit.Kind.Atomic */)
|
|
407
407
|
continue;
|
|
408
408
|
l.unit = unit;
|
|
409
409
|
var elements = unit.elements;
|
|
@@ -441,7 +441,7 @@ export function surroundingLigands(_a) {
|
|
|
441
441
|
var builder = ctx.inputStructure.subsetBuilder(true);
|
|
442
442
|
for (var _c = 0, _d = ctx.inputStructure.units; _c < _d.length; _c++) {
|
|
443
443
|
var unit = _d[_c];
|
|
444
|
-
if (unit.kind !== 0 /* Atomic */)
|
|
444
|
+
if (unit.kind !== 0 /* Unit.Kind.Atomic */)
|
|
445
445
|
continue;
|
|
446
446
|
l.unit = unit;
|
|
447
447
|
var elements = unit.elements;
|
|
@@ -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 {};
|