molstar 3.5.0 → 3.7.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 +1 -1
- package/build/viewer/molstar.css +1 -1
- package/build/viewer/molstar.js +1 -1
- package/build/viewer/molstar.js.LICENSE.txt +12 -14
- package/lib/apps/docking-viewer/index.js +1 -1
- package/lib/apps/viewer/app.js +1 -1
- package/lib/apps/viewer/index.html +1 -1
- package/lib/cli/chem-comp-dict/util.d.ts +20 -20
- package/lib/cli/cifschema/util/cif-dic.d.ts +1 -1
- package/lib/cli/cifschema/util/cif-dic.js +7 -5
- package/lib/cli/cifschema/util/generate.d.ts +1 -1
- package/lib/cli/cifschema/util/generate.js +12 -3
- package/lib/cli/cifschema/util/schema.d.ts +3 -3
- package/lib/cli/cifschema/util/schema.js +1 -1
- package/lib/commonjs/apps/docking-viewer/index.js +2 -2
- package/lib/commonjs/apps/viewer/app.js +2 -2
- package/lib/commonjs/cli/chem-comp-dict/util.d.ts +20 -20
- package/lib/commonjs/cli/cifschema/util/cif-dic.d.ts +1 -1
- package/lib/commonjs/cli/cifschema/util/cif-dic.js +7 -5
- package/lib/commonjs/cli/cifschema/util/generate.d.ts +1 -1
- package/lib/commonjs/cli/cifschema/util/generate.js +12 -3
- package/lib/commonjs/cli/cifschema/util/schema.d.ts +3 -3
- package/lib/commonjs/cli/cifschema/util/schema.js +1 -1
- package/lib/commonjs/examples/alpha-orbitals/index.js +22 -17
- package/lib/commonjs/examples/basic-wrapper/index.js +2 -2
- package/lib/commonjs/examples/lighting/index.js +2 -2
- package/lib/commonjs/examples/proteopedia-wrapper/index.js +2 -2
- package/lib/commonjs/extensions/anvil/behavior.d.ts +1 -0
- package/lib/commonjs/extensions/anvil/representation.d.ts +4 -0
- package/lib/commonjs/extensions/cellpack/representation.d.ts +1 -0
- package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +3 -0
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +1 -0
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -0
- package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +5 -0
- package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +2 -0
- package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +1 -0
- package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +1 -0
- package/lib/commonjs/mol-canvas3d/helper/helper.d.ts +2 -0
- package/lib/commonjs/mol-canvas3d/passes/image.d.ts +1 -0
- package/lib/commonjs/mol-data/db/column.d.ts +10 -3
- package/lib/commonjs/mol-data/db/column.js +39 -17
- package/lib/commonjs/mol-geo/geometry/color-data.d.ts +2 -8
- package/lib/commonjs/mol-geo/geometry/color-data.js +16 -3
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +4 -2
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +4 -3
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +4 -3
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +4 -3
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +16 -5
- package/lib/commonjs/mol-gl/renderable/cylinders.d.ts +2 -1
- package/lib/commonjs/mol-gl/renderable/cylinders.js +2 -2
- package/lib/commonjs/mol-gl/renderable/mesh.d.ts +2 -1
- package/lib/commonjs/mol-gl/renderable/mesh.js +2 -2
- package/lib/commonjs/mol-gl/renderable/spheres.d.ts +2 -1
- package/lib/commonjs/mol-gl/renderable/spheres.js +2 -2
- package/lib/commonjs/mol-gl/renderable/texture-mesh.d.ts +2 -1
- package/lib/commonjs/mol-gl/renderable/texture-mesh.js +2 -2
- package/lib/commonjs/mol-gl/renderer.js +54 -23
- package/lib/commonjs/mol-gl/shader/chunks/apply-interior-color.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/apply-interior-color.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/check-picking-alpha.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/check-picking-alpha.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/chunks/wboit-write.glsl.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/chunks/wboit-write.glsl.js +2 -2
- 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 +2 -2
- package/lib/commonjs/mol-gl/shader/image.frag.js +2 -2
- package/lib/commonjs/mol-gl/shader/lines.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/lines.frag.js +2 -2
- package/lib/commonjs/mol-gl/shader/points.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/points.frag.js +2 -2
- package/lib/commonjs/mol-gl/shader/text.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/text.frag.js +2 -2
- package/lib/commonjs/mol-gl/webgl/buffer.d.ts +2 -2
- package/lib/commonjs/mol-gl/webgl/buffer.js +12 -12
- package/lib/commonjs/mol-gl/webgl/program.d.ts +1 -1
- package/lib/commonjs/mol-gl/webgl/program.js +10 -4
- package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +8 -8
- package/lib/commonjs/mol-io/reader/cif/schema/bird.js +12 -11
- package/lib/commonjs/mol-io/reader/cif/schema/ccd-extras.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +12 -12
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.js +13 -12
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif-extras.d.ts +5 -5
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif-extras.js +2 -2
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +30 -26
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +44 -39
- package/lib/commonjs/mol-io/reader/cif/schema.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema.js +22 -2
- package/lib/commonjs/mol-io/writer/ligand-encoder.d.ts +4 -2
- package/lib/commonjs/mol-io/writer/ligand-encoder.js +9 -4
- package/lib/commonjs/mol-io/writer/mol/encoder.js +17 -5
- package/lib/commonjs/mol-io/writer/mol2/encoder.js +17 -4
- package/lib/commonjs/mol-model/structure/model/model.js +14 -6
- package/lib/commonjs/mol-model/structure/model/properties/common.js +1 -1
- package/lib/commonjs/mol-model/structure/model/types.d.ts +19 -17
- package/lib/commonjs/mol-model/structure/model/types.js +30 -31
- package/lib/commonjs/mol-model/structure/query/queries/generators.js +1 -1
- package/lib/commonjs/mol-model/structure/structure/properties.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/inter-compute.js +2 -4
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/intra-compute.js +1 -3
- package/lib/commonjs/mol-model/structure/structure/unit/rings.js +3 -0
- package/lib/commonjs/mol-model-formats/shape/ply.d.ts +2 -0
- package/lib/commonjs/mol-model-formats/structure/basic/entities.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/basic/schema.d.ts +2 -2
- package/lib/commonjs/mol-model-formats/structure/common/component.d.ts +3 -3
- package/lib/commonjs/mol-model-formats/structure/common/component.js +46 -46
- package/lib/commonjs/mol-model-formats/structure/pdb/atom-site.d.ts +2 -2
- package/lib/commonjs/mol-model-formats/structure/pdb/atom-site.js +72 -7
- package/lib/commonjs/mol-model-formats/structure/pdb/secondary-structure.js +11 -11
- package/lib/commonjs/mol-model-formats/structure/pdb/to-cif.js +7 -2
- package/lib/commonjs/mol-model-formats/structure/property/bonds/chem_comp.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/property/bonds/struct_conn.js +1 -1
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +3 -0
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/util.js +3 -2
- package/lib/commonjs/mol-plugin/commands.d.ts +1 -0
- package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +3 -0
- package/lib/commonjs/mol-plugin-state/actions/structure.d.ts +6 -6
- package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js +1 -1
- package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +6 -0
- package/lib/commonjs/mol-plugin-ui/base.d.ts +3 -1
- package/lib/commonjs/mol-plugin-ui/controls/color.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/controls/common.d.ts +2 -0
- package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.js +21 -7
- package/lib/commonjs/mol-plugin-ui/plugin.d.ts +2 -0
- package/lib/commonjs/mol-plugin-ui/plugin.js +2 -2
- package/lib/commonjs/mol-plugin-ui/react18.d.ts +11 -0
- package/lib/commonjs/mol-plugin-ui/react18.js +38 -0
- package/lib/commonjs/mol-plugin-ui/spec.d.ts +1 -0
- package/lib/commonjs/mol-plugin-ui/state/common.js +6 -7
- package/lib/commonjs/mol-plugin-ui/structure/focus.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/structure/focus.js +2 -2
- package/lib/commonjs/mol-plugin-ui/task.d.ts +2 -21
- package/lib/commonjs/mol-plugin-ui/task.js +39 -43
- package/lib/commonjs/mol-plugin-ui/viewport/help.d.ts +4 -1
- package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/params.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/registry.d.ts +10 -0
- package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/units-visual.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/util.d.ts +2 -1
- package/lib/commonjs/mol-repr/util.js +2 -2
- package/lib/commonjs/mol-repr/volume/isosurface.d.ts +5 -0
- package/lib/commonjs/mol-repr/volume/registry.d.ts +1 -0
- package/lib/commonjs/mol-theme/color.d.ts +9 -2
- package/lib/commonjs/mol-theme/color.js +1 -1
- package/lib/commonjs/servers/model/server/query.js +1 -3
- package/lib/commonjs/servers/model/version.d.ts +1 -1
- package/lib/commonjs/servers/model/version.js +1 -1
- package/lib/examples/alpha-orbitals/index.js +21 -16
- package/lib/examples/basic-wrapper/index.js +1 -1
- package/lib/examples/lighting/index.js +1 -1
- package/lib/examples/proteopedia-wrapper/index.js +1 -1
- package/lib/extensions/anvil/behavior.d.ts +1 -0
- package/lib/extensions/anvil/representation.d.ts +4 -0
- package/lib/extensions/cellpack/representation.d.ts +1 -0
- package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +3 -0
- package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +1 -0
- package/lib/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -0
- package/lib/extensions/rcsb/validation-report/representation.d.ts +5 -0
- package/lib/mol-canvas3d/canvas3d.d.ts +2 -0
- package/lib/mol-canvas3d/helper/camera-helper.d.ts +1 -0
- package/lib/mol-canvas3d/helper/handle-helper.d.ts +1 -0
- package/lib/mol-canvas3d/helper/helper.d.ts +2 -0
- package/lib/mol-canvas3d/passes/image.d.ts +1 -0
- package/lib/mol-data/db/column.d.ts +10 -3
- package/lib/mol-data/db/column.js +39 -18
- package/lib/mol-geo/geometry/color-data.d.ts +2 -8
- package/lib/mol-geo/geometry/color-data.js +16 -3
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +4 -2
- package/lib/mol-geo/geometry/cylinders/cylinders.js +4 -3
- package/lib/mol-geo/geometry/mesh/mesh.d.ts +2 -1
- package/lib/mol-geo/geometry/mesh/mesh.js +4 -3
- package/lib/mol-geo/geometry/spheres/spheres.d.ts +2 -1
- package/lib/mol-geo/geometry/spheres/spheres.js +4 -3
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +2 -1
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +16 -5
- package/lib/mol-gl/renderable/cylinders.d.ts +2 -1
- package/lib/mol-gl/renderable/cylinders.js +2 -2
- package/lib/mol-gl/renderable/mesh.d.ts +2 -1
- package/lib/mol-gl/renderable/mesh.js +2 -2
- package/lib/mol-gl/renderable/spheres.d.ts +2 -1
- package/lib/mol-gl/renderable/spheres.js +2 -2
- package/lib/mol-gl/renderable/texture-mesh.d.ts +2 -1
- package/lib/mol-gl/renderable/texture-mesh.js +2 -2
- package/lib/mol-gl/renderer.js +54 -23
- package/lib/mol-gl/shader/chunks/apply-interior-color.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/apply-interior-color.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/check-picking-alpha.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/check-picking-alpha.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/chunks/wboit-write.glsl.d.ts +2 -2
- package/lib/mol-gl/shader/chunks/wboit-write.glsl.js +2 -2
- 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 +2 -2
- package/lib/mol-gl/shader/image.frag.js +2 -2
- package/lib/mol-gl/shader/lines.frag.d.ts +2 -2
- package/lib/mol-gl/shader/lines.frag.js +2 -2
- package/lib/mol-gl/shader/points.frag.d.ts +2 -2
- package/lib/mol-gl/shader/points.frag.js +2 -2
- package/lib/mol-gl/shader/text.frag.d.ts +2 -2
- package/lib/mol-gl/shader/text.frag.js +2 -2
- package/lib/mol-gl/webgl/buffer.d.ts +2 -2
- package/lib/mol-gl/webgl/buffer.js +12 -12
- package/lib/mol-gl/webgl/program.d.ts +1 -1
- package/lib/mol-gl/webgl/program.js +10 -4
- package/lib/mol-io/reader/cif/schema/bird.d.ts +8 -8
- package/lib/mol-io/reader/cif/schema/bird.js +12 -11
- package/lib/mol-io/reader/cif/schema/ccd-extras.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/ccd.d.ts +12 -12
- package/lib/mol-io/reader/cif/schema/ccd.js +13 -12
- package/lib/mol-io/reader/cif/schema/mmcif-extras.d.ts +5 -5
- package/lib/mol-io/reader/cif/schema/mmcif-extras.js +2 -2
- package/lib/mol-io/reader/cif/schema/mmcif.d.ts +30 -26
- package/lib/mol-io/reader/cif/schema/mmcif.js +44 -39
- package/lib/mol-io/reader/cif/schema.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema.js +22 -2
- package/lib/mol-io/writer/ligand-encoder.d.ts +4 -2
- package/lib/mol-io/writer/ligand-encoder.js +9 -4
- package/lib/mol-io/writer/mol/encoder.js +17 -5
- package/lib/mol-io/writer/mol2/encoder.js +17 -4
- package/lib/mol-model/structure/model/model.js +14 -6
- package/lib/mol-model/structure/model/properties/common.js +1 -1
- package/lib/mol-model/structure/model/types.d.ts +19 -17
- package/lib/mol-model/structure/model/types.js +30 -31
- package/lib/mol-model/structure/query/queries/generators.js +1 -1
- package/lib/mol-model/structure/structure/properties.d.ts +1 -1
- package/lib/mol-model/structure/structure/unit/bonds/inter-compute.js +2 -4
- package/lib/mol-model/structure/structure/unit/bonds/intra-compute.js +1 -3
- package/lib/mol-model/structure/structure/unit/rings.js +3 -0
- package/lib/mol-model-formats/shape/ply.d.ts +2 -0
- package/lib/mol-model-formats/structure/basic/entities.js +1 -1
- package/lib/mol-model-formats/structure/basic/schema.d.ts +2 -2
- package/lib/mol-model-formats/structure/common/component.d.ts +3 -3
- package/lib/mol-model-formats/structure/common/component.js +46 -46
- package/lib/mol-model-formats/structure/pdb/atom-site.d.ts +2 -2
- package/lib/mol-model-formats/structure/pdb/atom-site.js +72 -7
- package/lib/mol-model-formats/structure/pdb/secondary-structure.js +11 -11
- package/lib/mol-model-formats/structure/pdb/to-cif.js +7 -2
- package/lib/mol-model-formats/structure/property/bonds/chem_comp.js +1 -1
- package/lib/mol-model-formats/structure/property/bonds/struct_conn.js +1 -1
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -0
- package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -0
- package/lib/mol-model-props/computed/representations/interactions.d.ts +3 -0
- package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -0
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/util.js +3 -2
- package/lib/mol-plugin/commands.d.ts +1 -0
- package/lib/mol-plugin/util/viewport-screenshot.d.ts +3 -0
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-state/actions/structure.d.ts +6 -6
- package/lib/mol-plugin-state/helpers/structure-selection-query.d.ts +1 -1
- package/lib/mol-plugin-state/helpers/structure-selection-query.js +1 -1
- package/lib/mol-plugin-state/transforms/representation.d.ts +6 -0
- package/lib/mol-plugin-ui/base.d.ts +3 -1
- package/lib/mol-plugin-ui/controls/color.d.ts +1 -1
- package/lib/mol-plugin-ui/controls/common.d.ts +2 -0
- package/lib/mol-plugin-ui/hooks/use-behavior.d.ts +1 -1
- package/lib/mol-plugin-ui/hooks/use-behavior.js +20 -7
- package/lib/mol-plugin-ui/plugin.d.ts +2 -0
- package/lib/mol-plugin-ui/plugin.js +2 -2
- package/lib/mol-plugin-ui/react18.d.ts +11 -0
- package/lib/mol-plugin-ui/react18.js +34 -0
- package/lib/mol-plugin-ui/spec.d.ts +1 -0
- package/lib/mol-plugin-ui/state/common.js +7 -8
- package/lib/mol-plugin-ui/structure/focus.d.ts +1 -1
- package/lib/mol-plugin-ui/structure/focus.js +2 -2
- package/lib/mol-plugin-ui/task.d.ts +2 -21
- package/lib/mol-plugin-ui/task.js +40 -46
- package/lib/mol-plugin-ui/viewport/help.d.ts +4 -1
- package/lib/mol-repr/shape/loci/angle.d.ts +1 -0
- package/lib/mol-repr/shape/loci/dihedral.d.ts +1 -0
- package/lib/mol-repr/shape/loci/orientation.d.ts +1 -0
- package/lib/mol-repr/shape/loci/plane.d.ts +1 -0
- package/lib/mol-repr/shape/model/unitcell.d.ts +1 -0
- package/lib/mol-repr/structure/complex-visual.d.ts +3 -0
- package/lib/mol-repr/structure/params.d.ts +4 -0
- package/lib/mol-repr/structure/registry.d.ts +10 -0
- package/lib/mol-repr/structure/representation/backbone.d.ts +3 -0
- package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +3 -0
- package/lib/mol-repr/structure/representation/carbohydrate.d.ts +3 -0
- package/lib/mol-repr/structure/representation/cartoon.d.ts +3 -0
- package/lib/mol-repr/structure/representation/ellipsoid.d.ts +3 -0
- package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +3 -0
- package/lib/mol-repr/structure/representation/molecular-surface.d.ts +3 -0
- package/lib/mol-repr/structure/representation/orientation.d.ts +3 -0
- package/lib/mol-repr/structure/representation/putty.d.ts +3 -0
- package/lib/mol-repr/structure/representation/spacefill.d.ts +3 -0
- package/lib/mol-repr/structure/units-visual.d.ts +4 -0
- package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -0
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -0
- package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -0
- package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -0
- package/lib/mol-repr/structure/visual/element-sphere.d.ts +2 -0
- package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +4 -0
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -0
- package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -0
- package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -0
- package/lib/mol-repr/util.d.ts +2 -1
- package/lib/mol-repr/util.js +2 -2
- package/lib/mol-repr/volume/isosurface.d.ts +5 -0
- package/lib/mol-repr/volume/registry.d.ts +1 -0
- package/lib/mol-theme/color.d.ts +9 -2
- package/lib/mol-theme/color.js +1 -1
- package/lib/servers/model/server/query.js +1 -3
- package/lib/servers/model/version.d.ts +1 -1
- package/lib/servers/model/version.js +1 -1
- package/package.json +21 -19
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2017-
|
|
3
|
+
* Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
|
-
* Code-generated 'mmCIF' schema file. Dictionary versions: mmCIF 5.
|
|
5
|
+
* Code-generated 'mmCIF' schema file. Dictionary versions: mmCIF 5.357, IHM 1.17, MA 1.3.6.
|
|
6
6
|
*
|
|
7
7
|
* @author molstar/ciftools package
|
|
8
8
|
*/
|
|
@@ -17,6 +17,7 @@ var coord = Schema.coord;
|
|
|
17
17
|
var Aliased = Schema.Aliased;
|
|
18
18
|
var Matrix = Schema.Matrix;
|
|
19
19
|
var Vector = Schema.Vector;
|
|
20
|
+
var lstr = Schema.lstr;
|
|
20
21
|
var List = Schema.List;
|
|
21
22
|
exports.mmCIF_Schema = {
|
|
22
23
|
/**
|
|
@@ -511,7 +512,7 @@ exports.mmCIF_Schema = {
|
|
|
511
512
|
* _chem_comp.mon_nstd_parent, _chem_comp.mon_nstd_class and
|
|
512
513
|
* _chem_comp.mon_nstd_details data items.
|
|
513
514
|
*/
|
|
514
|
-
mon_nstd_flag: Aliased(
|
|
515
|
+
mon_nstd_flag: Aliased(lstr),
|
|
515
516
|
/**
|
|
516
517
|
* The full name of the component.
|
|
517
518
|
*/
|
|
@@ -522,7 +523,7 @@ exports.mmCIF_Schema = {
|
|
|
522
523
|
* linking monomers, monomers with some type of N-terminal (or 5')
|
|
523
524
|
* cap and monomers with some type of C-terminal (or 3') cap.
|
|
524
525
|
*/
|
|
525
|
-
type: Aliased(
|
|
526
|
+
type: Aliased(lstr),
|
|
526
527
|
/**
|
|
527
528
|
* Synonym list for the component.
|
|
528
529
|
*/
|
|
@@ -559,7 +560,7 @@ exports.mmCIF_Schema = {
|
|
|
559
560
|
* bond associated with the specified atoms, expressed as a bond
|
|
560
561
|
* order.
|
|
561
562
|
*/
|
|
562
|
-
value_order: Aliased(
|
|
563
|
+
value_order: Aliased(lstr),
|
|
563
564
|
/**
|
|
564
565
|
* Ordinal index for the component bond list.
|
|
565
566
|
*/
|
|
@@ -567,11 +568,11 @@ exports.mmCIF_Schema = {
|
|
|
567
568
|
/**
|
|
568
569
|
* Stereochemical configuration across a double bond.
|
|
569
570
|
*/
|
|
570
|
-
pdbx_stereo_config: Aliased(
|
|
571
|
+
pdbx_stereo_config: Aliased(lstr),
|
|
571
572
|
/**
|
|
572
573
|
* A flag indicating an aromatic bond.
|
|
573
574
|
*/
|
|
574
|
-
pdbx_aromatic_flag: Aliased(
|
|
575
|
+
pdbx_aromatic_flag: Aliased(lstr),
|
|
575
576
|
},
|
|
576
577
|
/**
|
|
577
578
|
* Data items in the CITATION category record details about the
|
|
@@ -703,7 +704,7 @@ exports.mmCIF_Schema = {
|
|
|
703
704
|
/**
|
|
704
705
|
* An abbreviation that identifies the database.
|
|
705
706
|
*/
|
|
706
|
-
database_id: Aliased(
|
|
707
|
+
database_id: Aliased(lstr),
|
|
707
708
|
/**
|
|
708
709
|
* The code assigned by the database identified in
|
|
709
710
|
* _database_2.database_id.
|
|
@@ -766,7 +767,7 @@ exports.mmCIF_Schema = {
|
|
|
766
767
|
* manipulated sources are expected to have further information in
|
|
767
768
|
* the ENTITY_SRC_GEN category.
|
|
768
769
|
*/
|
|
769
|
-
src_method: Aliased(
|
|
770
|
+
src_method: Aliased(lstr),
|
|
770
771
|
/**
|
|
771
772
|
* Defines the type of the entity.
|
|
772
773
|
*
|
|
@@ -779,7 +780,7 @@ exports.mmCIF_Schema = {
|
|
|
779
780
|
* Water entities are not expected to have corresponding
|
|
780
781
|
* entries in the ENTITY category.
|
|
781
782
|
*/
|
|
782
|
-
type: Aliased(
|
|
783
|
+
type: Aliased(lstr),
|
|
783
784
|
/**
|
|
784
785
|
* A description of the entity.
|
|
785
786
|
*
|
|
@@ -819,12 +820,12 @@ exports.mmCIF_Schema = {
|
|
|
819
820
|
* one monomer-to-monomer link different from that implied by
|
|
820
821
|
* _entity_poly.type.
|
|
821
822
|
*/
|
|
822
|
-
nstd_linkage: Aliased(
|
|
823
|
+
nstd_linkage: Aliased(lstr),
|
|
823
824
|
/**
|
|
824
825
|
* A flag to indicate whether the polymer contains at least
|
|
825
826
|
* one monomer that is not considered standard.
|
|
826
827
|
*/
|
|
827
|
-
nstd_monomer: Aliased(
|
|
828
|
+
nstd_monomer: Aliased(lstr),
|
|
828
829
|
/**
|
|
829
830
|
* The type of the polymer.
|
|
830
831
|
*/
|
|
@@ -893,6 +894,10 @@ exports.mmCIF_Schema = {
|
|
|
893
894
|
* parent is not specified. Deoxynucleotides are
|
|
894
895
|
* represented by their canonical one-letter codes of A,
|
|
895
896
|
* C, G, or T.
|
|
897
|
+
*
|
|
898
|
+
* For modifications with several parent amino acids,
|
|
899
|
+
* all corresponding parent amino acid codes will be listed
|
|
900
|
+
* (ex. chromophores).
|
|
896
901
|
*/
|
|
897
902
|
pdbx_seq_one_letter_code_can: str,
|
|
898
903
|
/**
|
|
@@ -918,7 +923,7 @@ exports.mmCIF_Schema = {
|
|
|
918
923
|
* A flag to indicate whether this monomer in the polymer is
|
|
919
924
|
* heterogeneous in sequence.
|
|
920
925
|
*/
|
|
921
|
-
hetero: Aliased(
|
|
926
|
+
hetero: Aliased(lstr),
|
|
922
927
|
/**
|
|
923
928
|
* This data item is a pointer to _chem_comp.id in the CHEM_COMP
|
|
924
929
|
* category.
|
|
@@ -995,7 +1000,7 @@ exports.mmCIF_Schema = {
|
|
|
995
1000
|
* The classification of the software according to the most
|
|
996
1001
|
* common types.
|
|
997
1002
|
*/
|
|
998
|
-
type: Aliased(
|
|
1003
|
+
type: Aliased(lstr),
|
|
999
1004
|
/**
|
|
1000
1005
|
* The version of the software.
|
|
1001
1006
|
*/
|
|
@@ -1118,7 +1123,7 @@ exports.mmCIF_Schema = {
|
|
|
1118
1123
|
* This data item is a pointer to _struct_conf_type.id in the
|
|
1119
1124
|
* STRUCT_CONF_TYPE category.
|
|
1120
1125
|
*/
|
|
1121
|
-
conf_type_id: Aliased(
|
|
1126
|
+
conf_type_id: Aliased(lstr),
|
|
1122
1127
|
/**
|
|
1123
1128
|
* A description of special aspects of the conformation assignment.
|
|
1124
1129
|
*/
|
|
@@ -1218,7 +1223,7 @@ exports.mmCIF_Schema = {
|
|
|
1218
1223
|
* This data item is a pointer to _struct_conn_type.id in the
|
|
1219
1224
|
* STRUCT_CONN_TYPE category.
|
|
1220
1225
|
*/
|
|
1221
|
-
conn_type_id: Aliased(
|
|
1226
|
+
conn_type_id: Aliased(lstr),
|
|
1222
1227
|
/**
|
|
1223
1228
|
* A description of special aspects of the connection.
|
|
1224
1229
|
*/
|
|
@@ -1438,7 +1443,7 @@ exports.mmCIF_Schema = {
|
|
|
1438
1443
|
* The chemical bond order associated with the specified atoms in
|
|
1439
1444
|
* this contact.
|
|
1440
1445
|
*/
|
|
1441
|
-
pdbx_value_order: Aliased(
|
|
1446
|
+
pdbx_value_order: Aliased(lstr),
|
|
1442
1447
|
},
|
|
1443
1448
|
/**
|
|
1444
1449
|
* Data items in the STRUCT_CONN_TYPE category record details
|
|
@@ -1453,7 +1458,7 @@ exports.mmCIF_Schema = {
|
|
|
1453
1458
|
/**
|
|
1454
1459
|
* The chemical or structural type of the interaction.
|
|
1455
1460
|
*/
|
|
1456
|
-
id: Aliased(
|
|
1461
|
+
id: Aliased(lstr),
|
|
1457
1462
|
/**
|
|
1458
1463
|
* A reference that specifies the criteria used to define the
|
|
1459
1464
|
* interaction.
|
|
@@ -1807,7 +1812,7 @@ exports.mmCIF_Schema = {
|
|
|
1807
1812
|
/**
|
|
1808
1813
|
* The cell settings for this space-group symmetry.
|
|
1809
1814
|
*/
|
|
1810
|
-
cell_setting: Aliased(
|
|
1815
|
+
cell_setting: Aliased(lstr),
|
|
1811
1816
|
/**
|
|
1812
1817
|
* Space-group number from International Tables for Crystallography
|
|
1813
1818
|
* Vol. A (2002).
|
|
@@ -1867,7 +1872,7 @@ exports.mmCIF_Schema = {
|
|
|
1867
1872
|
* This code indicates whether the entry belongs to
|
|
1868
1873
|
* Structural Genomics Project.
|
|
1869
1874
|
*/
|
|
1870
|
-
SG_entry: Aliased(
|
|
1875
|
+
SG_entry: Aliased(lstr),
|
|
1871
1876
|
/**
|
|
1872
1877
|
* The site where the file was deposited.
|
|
1873
1878
|
*/
|
|
@@ -1891,7 +1896,7 @@ exports.mmCIF_Schema = {
|
|
|
1891
1896
|
* A value of 'N' indicates that the no PDB format data file is
|
|
1892
1897
|
* corresponding to this entry is available in the PDB archive.
|
|
1893
1898
|
*/
|
|
1894
|
-
pdb_format_compatible: Aliased(
|
|
1899
|
+
pdb_format_compatible: Aliased(lstr),
|
|
1895
1900
|
},
|
|
1896
1901
|
/**
|
|
1897
1902
|
* The PDBX_NONPOLY_SCHEME category provides residue level nomenclature
|
|
@@ -2044,7 +2049,7 @@ exports.mmCIF_Schema = {
|
|
|
2044
2049
|
* The value of polymer flag indicates whether the unobserved or
|
|
2045
2050
|
* zero occupancy residue is part of a polymer chain or not
|
|
2046
2051
|
*/
|
|
2047
|
-
polymer_flag: Aliased(
|
|
2052
|
+
polymer_flag: Aliased(lstr),
|
|
2048
2053
|
/**
|
|
2049
2054
|
* The value of occupancy flag indicates whether the residue
|
|
2050
2055
|
* is unobserved (= 1) or the coordinates have an occupancy of zero (=0)
|
|
@@ -2297,7 +2302,7 @@ exports.mmCIF_Schema = {
|
|
|
2297
2302
|
/**
|
|
2298
2303
|
* Defines the polymer characteristic of the entity.
|
|
2299
2304
|
*/
|
|
2300
|
-
type: Aliased(
|
|
2305
|
+
type: Aliased(lstr),
|
|
2301
2306
|
/**
|
|
2302
2307
|
* Additional details about this entity.
|
|
2303
2308
|
*/
|
|
@@ -2392,7 +2397,7 @@ exports.mmCIF_Schema = {
|
|
|
2392
2397
|
/**
|
|
2393
2398
|
* The bond order target for the chemical linkage.
|
|
2394
2399
|
*/
|
|
2395
|
-
value_order: Aliased(
|
|
2400
|
+
value_order: Aliased(lstr),
|
|
2396
2401
|
/**
|
|
2397
2402
|
* The entity component identifier for the first of two entities containing the linkage.
|
|
2398
2403
|
*/
|
|
@@ -2478,7 +2483,7 @@ exports.mmCIF_Schema = {
|
|
|
2478
2483
|
/**
|
|
2479
2484
|
* The bond order target for the non-standard linkage.
|
|
2480
2485
|
*/
|
|
2481
|
-
value_order: Aliased(
|
|
2486
|
+
value_order: Aliased(lstr),
|
|
2482
2487
|
},
|
|
2483
2488
|
/**
|
|
2484
2489
|
* Data items in the PDBX_MOLECULE category identify reference molecules
|
|
@@ -2513,11 +2518,11 @@ exports.mmCIF_Schema = {
|
|
|
2513
2518
|
/**
|
|
2514
2519
|
* Broadly defines the function of the molecule.
|
|
2515
2520
|
*/
|
|
2516
|
-
class: Aliased(
|
|
2521
|
+
class: Aliased(lstr),
|
|
2517
2522
|
/**
|
|
2518
2523
|
* Defines the structural classification of the molecule.
|
|
2519
2524
|
*/
|
|
2520
|
-
type: Aliased(
|
|
2525
|
+
type: Aliased(lstr),
|
|
2521
2526
|
/**
|
|
2522
2527
|
* A name of the molecule.
|
|
2523
2528
|
*/
|
|
@@ -2664,7 +2669,7 @@ exports.mmCIF_Schema = {
|
|
|
2664
2669
|
/**
|
|
2665
2670
|
* This data item contains the descriptor type.
|
|
2666
2671
|
*/
|
|
2667
|
-
type: Aliased(
|
|
2672
|
+
type: Aliased(lstr),
|
|
2668
2673
|
/**
|
|
2669
2674
|
* This data item contains the name of the program
|
|
2670
2675
|
* or library used to compute the descriptor.
|
|
@@ -2739,7 +2744,7 @@ exports.mmCIF_Schema = {
|
|
|
2739
2744
|
* A flag to indicate whether this monomer in the entity is
|
|
2740
2745
|
* heterogeneous in sequence.
|
|
2741
2746
|
*/
|
|
2742
|
-
hetero: Aliased(
|
|
2747
|
+
hetero: Aliased(lstr),
|
|
2743
2748
|
/**
|
|
2744
2749
|
* This data item is a pointer to _chem_comp.id in the CHEM_COMP
|
|
2745
2750
|
* category.
|
|
@@ -2811,7 +2816,7 @@ exports.mmCIF_Schema = {
|
|
|
2811
2816
|
/**
|
|
2812
2817
|
* The chiral configuration of the first atom making the linkage.
|
|
2813
2818
|
*/
|
|
2814
|
-
atom_stereo_config_1: Aliased(
|
|
2819
|
+
atom_stereo_config_1: Aliased(lstr),
|
|
2815
2820
|
/**
|
|
2816
2821
|
* The atom identifier/name for the second atom making the linkage.
|
|
2817
2822
|
*/
|
|
@@ -2823,11 +2828,11 @@ exports.mmCIF_Schema = {
|
|
|
2823
2828
|
/**
|
|
2824
2829
|
* The chiral configuration of the second atom making the linkage.
|
|
2825
2830
|
*/
|
|
2826
|
-
atom_stereo_config_2: Aliased(
|
|
2831
|
+
atom_stereo_config_2: Aliased(lstr),
|
|
2827
2832
|
/**
|
|
2828
2833
|
* The bond order target for the chemical linkage.
|
|
2829
2834
|
*/
|
|
2830
|
-
value_order: Aliased(
|
|
2835
|
+
value_order: Aliased(lstr),
|
|
2831
2836
|
},
|
|
2832
2837
|
/**
|
|
2833
2838
|
* Data items in the PDBX_ENTITY_BRANCH category specify the list
|
|
@@ -2858,7 +2863,7 @@ exports.mmCIF_Schema = {
|
|
|
2858
2863
|
* A flag to indicate whether this monomer in the entity is
|
|
2859
2864
|
* heterogeneous in sequence.
|
|
2860
2865
|
*/
|
|
2861
|
-
hetero: Aliased(
|
|
2866
|
+
hetero: Aliased(lstr),
|
|
2862
2867
|
/**
|
|
2863
2868
|
* Pointer to _atom_site.label_asym_id.
|
|
2864
2869
|
*/
|
|
@@ -3331,15 +3336,15 @@ exports.mmCIF_Schema = {
|
|
|
3331
3336
|
/**
|
|
3332
3337
|
* A flag to indicate if the modeling is multi scale.
|
|
3333
3338
|
*/
|
|
3334
|
-
multi_scale_flag: Aliased(
|
|
3339
|
+
multi_scale_flag: Aliased(lstr),
|
|
3335
3340
|
/**
|
|
3336
3341
|
* A flag to indicate if the modeling is multi state.
|
|
3337
3342
|
*/
|
|
3338
|
-
multi_state_flag: Aliased(
|
|
3343
|
+
multi_state_flag: Aliased(lstr),
|
|
3339
3344
|
/**
|
|
3340
3345
|
* A flag to indicate if the modeling involves an ensemble ordered by time or other order.
|
|
3341
3346
|
*/
|
|
3342
|
-
ordered_flag: Aliased(
|
|
3347
|
+
ordered_flag: Aliased(lstr),
|
|
3343
3348
|
/**
|
|
3344
3349
|
* The file id corresponding to the script used in the modeling protocol step.
|
|
3345
3350
|
* This data item is a pointer to _ihm_external_files.id in the IHM_EXTERNAL_FILES category.
|
|
@@ -3628,7 +3633,7 @@ exports.mmCIF_Schema = {
|
|
|
3628
3633
|
* A flag that indicates whether the dataset is archived in
|
|
3629
3634
|
* an IHM related database or elsewhere.
|
|
3630
3635
|
*/
|
|
3631
|
-
database_hosted: Aliased(
|
|
3636
|
+
database_hosted: Aliased(lstr),
|
|
3632
3637
|
},
|
|
3633
3638
|
/**
|
|
3634
3639
|
* Category to define groups or collections of input datasets.
|
|
@@ -4235,7 +4240,7 @@ exports.mmCIF_Schema = {
|
|
|
4235
4240
|
* whether the whole image is used or only a portion of it is used (by masking
|
|
4236
4241
|
* or by other means) as restraint in the modeling.
|
|
4237
4242
|
*/
|
|
4238
|
-
image_segment_flag: Aliased(
|
|
4243
|
+
image_segment_flag: Aliased(lstr),
|
|
4239
4244
|
/**
|
|
4240
4245
|
* Number of 2D projections of the model used in the fitting.
|
|
4241
4246
|
*/
|
|
@@ -4388,7 +4393,7 @@ exports.mmCIF_Schema = {
|
|
|
4388
4393
|
* whether the whole SAS profile is used or only a portion of it is used
|
|
4389
4394
|
* (by masking or by other means) as restraint in the modeling.
|
|
4390
4395
|
*/
|
|
4391
|
-
profile_segment_flag: Aliased(
|
|
4396
|
+
profile_segment_flag: Aliased(lstr),
|
|
4392
4397
|
/**
|
|
4393
4398
|
* The type of atoms in the model fit to the SAS data.
|
|
4394
4399
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2017-
|
|
2
|
+
* Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2017-
|
|
3
|
+
* Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
6
6
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
@@ -48,13 +48,33 @@ function toTable(schema, category) {
|
|
|
48
48
|
exports.toTable = toTable;
|
|
49
49
|
function getColumnCtor(t) {
|
|
50
50
|
switch (t.valueType) {
|
|
51
|
-
case 'str': return function (f, c, k) { return
|
|
51
|
+
case 'str': return function (f, c, k) { return createStringColumn(t, f, f.str, f.toStringArray); };
|
|
52
52
|
case 'int': return function (f, c, k) { return createColumn(t, f, f.int, f.toIntArray); };
|
|
53
53
|
case 'float': return function (f, c, k) { return createColumn(t, f, f.float, f.toFloatArray); };
|
|
54
54
|
case 'list': throw new Error('Use createListColumn instead.');
|
|
55
55
|
case 'tensor': throw new Error('Use createTensorColumn instead.');
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
+
function createStringColumn(schema, field, value, toArray) {
|
|
59
|
+
return {
|
|
60
|
+
schema: schema,
|
|
61
|
+
__array: field.__array,
|
|
62
|
+
isDefined: field.isDefined,
|
|
63
|
+
rowCount: field.rowCount,
|
|
64
|
+
value: schema.transform === 'lowercase'
|
|
65
|
+
? function (row) { return value(row).toLowerCase(); }
|
|
66
|
+
: schema.transform === 'uppercase'
|
|
67
|
+
? function (row) { return value(row).toUpperCase(); }
|
|
68
|
+
: value,
|
|
69
|
+
valueKind: field.valueKind,
|
|
70
|
+
areValuesEqual: field.areValuesEqual,
|
|
71
|
+
toArray: schema.transform === 'lowercase'
|
|
72
|
+
? function (p) { return Array.from(toArray(p)).map(function (x) { return x.toLowerCase(); }); }
|
|
73
|
+
: schema.transform === 'uppercase'
|
|
74
|
+
? function (p) { return Array.from(toArray(p)).map(function (x) { return x.toUpperCase(); }); }
|
|
75
|
+
: toArray,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
58
78
|
function createColumn(schema, field, value, toArray) {
|
|
59
79
|
return {
|
|
60
80
|
schema: schema,
|
|
@@ -8,11 +8,12 @@ import { Writer } from './writer';
|
|
|
8
8
|
import { Encoder, Category } from './cif/encoder';
|
|
9
9
|
import { ComponentAtom } from '../../mol-model-formats/structure/property/atoms/chem_comp';
|
|
10
10
|
import { ComponentBond } from '../../mol-model-formats/structure/property/bonds/chem_comp';
|
|
11
|
+
import { ElementSymbol } from '../../mol-model/structure/model/types';
|
|
11
12
|
interface Atom {
|
|
12
13
|
Cartn_x: number;
|
|
13
14
|
Cartn_y: number;
|
|
14
15
|
Cartn_z: number;
|
|
15
|
-
type_symbol:
|
|
16
|
+
type_symbol: ElementSymbol;
|
|
16
17
|
index: number;
|
|
17
18
|
}
|
|
18
19
|
declare function Atom(partial: any): Atom;
|
|
@@ -39,7 +40,8 @@ export declare abstract class LigandEncoder implements Encoder<string> {
|
|
|
39
40
|
getData(): string;
|
|
40
41
|
protected getAtoms<Ctx>(instance: Category.Instance<Ctx>, source: any): Map<string, Atom>;
|
|
41
42
|
private _getAtoms;
|
|
42
|
-
protected skipHydrogen(type_symbol:
|
|
43
|
+
protected skipHydrogen(type_symbol: ElementSymbol): boolean;
|
|
44
|
+
protected isHydrogen(type_symbol: ElementSymbol): boolean;
|
|
43
45
|
private getSortedFields;
|
|
44
46
|
private getField;
|
|
45
47
|
protected getName<Ctx>(instance: Category.Instance<Ctx>, source: any): string;
|
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.LigandEncoder = void 0;
|
|
9
9
|
var tslib_1 = require("tslib");
|
|
10
10
|
var mol_util_1 = require("../../mol-util");
|
|
11
|
+
var common_1 = require("../../mol-model/structure/structure/unit/bonds/common");
|
|
11
12
|
function Atom(partial) {
|
|
12
13
|
return tslib_1.__assign({}, partial);
|
|
13
14
|
}
|
|
@@ -80,11 +81,12 @@ var LigandEncoder = /** @class */ (function () {
|
|
|
80
81
|
while (it_1.hasNext) {
|
|
81
82
|
var key = it_1.move();
|
|
82
83
|
var lai = label_atom_id.value(key, data, index);
|
|
84
|
+
// ignore all alternate locations after the first
|
|
85
|
+
if (atoms.has(lai))
|
|
86
|
+
continue;
|
|
83
87
|
var ts = type_symbol.value(key, data, index);
|
|
84
|
-
if (this.skipHydrogen(ts))
|
|
85
|
-
index++;
|
|
88
|
+
if (this.skipHydrogen(ts))
|
|
86
89
|
continue;
|
|
87
|
-
}
|
|
88
90
|
var a = {};
|
|
89
91
|
for (var _f = 0, _fl = fields.length; _f < _fl; _f++) {
|
|
90
92
|
var f = fields[_f];
|
|
@@ -102,7 +104,10 @@ var LigandEncoder = /** @class */ (function () {
|
|
|
102
104
|
if (this.hydrogens) {
|
|
103
105
|
return false;
|
|
104
106
|
}
|
|
105
|
-
return type_symbol
|
|
107
|
+
return this.isHydrogen(type_symbol);
|
|
108
|
+
};
|
|
109
|
+
LigandEncoder.prototype.isHydrogen = function (type_symbol) {
|
|
110
|
+
return (0, common_1.isHydrogen)((0, common_1.getElementIdx)(type_symbol));
|
|
106
111
|
};
|
|
107
112
|
LigandEncoder.prototype.getSortedFields = function (instance, names) {
|
|
108
113
|
var _this = this;
|
|
@@ -36,13 +36,25 @@ var MolEncoder = /** @class */ (function (_super) {
|
|
|
36
36
|
mol_util_1.StringBuilder.writeSafe(this.builder, "".concat(name, "\n ").concat(this.encoder, "\n\n"));
|
|
37
37
|
var atomMap = this.componentAtomData.entries.get(name);
|
|
38
38
|
var bondMap = this.componentBondData.entries.get(name);
|
|
39
|
+
// happens for the unknown ligands (UNL)
|
|
40
|
+
if (!atomMap)
|
|
41
|
+
throw Error("The Chemical Component Dictionary doesn't hold any atom data for ".concat(name));
|
|
39
42
|
var bondCount = 0;
|
|
40
43
|
var chiral = false;
|
|
41
44
|
// traverse once to determine all actually present atoms
|
|
42
45
|
var atoms = this.getAtoms(instance, source);
|
|
43
46
|
atoms.forEach(function (atom1, label_atom_id1) {
|
|
44
|
-
var i1 = atom1.index;
|
|
45
|
-
var
|
|
47
|
+
var i1 = atom1.index, type_symbol1 = atom1.type_symbol;
|
|
48
|
+
var atomMapData1 = atomMap.map.get(label_atom_id1);
|
|
49
|
+
if (!atomMapData1) {
|
|
50
|
+
if (_this.isHydrogen(type_symbol1)) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
throw Error("Unknown atom ".concat(label_atom_id1, " for component ").concat(name));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
var charge = atomMapData1.charge, stereo_config = atomMapData1.stereo_config;
|
|
46
58
|
mol_util_1.StringBuilder.writePadLeft(ctab, atom1.Cartn_x.toFixed(4), 10);
|
|
47
59
|
mol_util_1.StringBuilder.writePadLeft(ctab, atom1.Cartn_y.toFixed(4), 10);
|
|
48
60
|
mol_util_1.StringBuilder.writePadLeft(ctab, atom1.Cartn_z.toFixed(4), 10);
|
|
@@ -51,7 +63,7 @@ var MolEncoder = /** @class */ (function (_super) {
|
|
|
51
63
|
mol_util_1.StringBuilder.writeSafe(ctab, ' 0');
|
|
52
64
|
mol_util_1.StringBuilder.writeIntegerPadLeft(ctab, _this.mapCharge(charge), 3);
|
|
53
65
|
mol_util_1.StringBuilder.writeSafe(ctab, ' 0 0 0 0 0 0 0 0 0 0\n');
|
|
54
|
-
if (stereo_config !== '
|
|
66
|
+
if (stereo_config !== 'n')
|
|
55
67
|
chiral = true;
|
|
56
68
|
// no data for metal ions
|
|
57
69
|
if (!(bondMap === null || bondMap === void 0 ? void 0 : bondMap.map))
|
|
@@ -60,8 +72,8 @@ var MolEncoder = /** @class */ (function (_super) {
|
|
|
60
72
|
var atom2 = atoms.get(label_atom_id2);
|
|
61
73
|
if (!atom2)
|
|
62
74
|
return;
|
|
63
|
-
var i2 = atom2.index
|
|
64
|
-
if (i1 < i2
|
|
75
|
+
var i2 = atom2.index;
|
|
76
|
+
if (i1 < i2) {
|
|
65
77
|
var order = bond.order;
|
|
66
78
|
mol_util_1.StringBuilder.writeIntegerPadLeft(bonds, i1 + 1, 3);
|
|
67
79
|
mol_util_1.StringBuilder.writeIntegerPadLeft(bonds, i2 + 1, 3);
|
|
@@ -30,20 +30,33 @@ var Mol2Encoder = /** @class */ (function (_super) {
|
|
|
30
30
|
// write header
|
|
31
31
|
var name = this.getName(instance, source);
|
|
32
32
|
mol_util_1.StringBuilder.writeSafe(this.builder, "# Name: ".concat(name, "\n# Created by ").concat(this.encoder, "\n\n"));
|
|
33
|
+
var atomMap = this.componentAtomData.entries.get(name);
|
|
33
34
|
var bondMap = this.componentBondData.entries.get(name);
|
|
35
|
+
// happens for the unknown ligands (UNL)
|
|
36
|
+
if (!atomMap)
|
|
37
|
+
throw Error("The Chemical Component Dictionary doesn't hold any atom data for ".concat(name));
|
|
34
38
|
var bondCount = 0;
|
|
35
39
|
var atoms = this.getAtoms(instance, source);
|
|
36
40
|
mol_util_1.StringBuilder.writeSafe(a, '@<TRIPOS>ATOM\n');
|
|
37
41
|
mol_util_1.StringBuilder.writeSafe(b, '@<TRIPOS>BOND\n');
|
|
38
42
|
atoms.forEach(function (atom1, label_atom_id1) {
|
|
39
|
-
var i1 = atom1.index;
|
|
43
|
+
var i1 = atom1.index, type_symbol1 = atom1.type_symbol;
|
|
44
|
+
var atomMapData1 = atomMap.map.get(label_atom_id1);
|
|
45
|
+
if (!atomMapData1) {
|
|
46
|
+
if (_this.isHydrogen(type_symbol1)) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
throw Error("Unknown atom ".concat(label_atom_id1, " for component ").concat(name));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
40
53
|
if (bondMap === null || bondMap === void 0 ? void 0 : bondMap.map) {
|
|
41
54
|
bondMap.map.get(label_atom_id1).forEach(function (bond, label_atom_id2) {
|
|
42
55
|
var atom2 = atoms.get(label_atom_id2);
|
|
43
56
|
if (!atom2)
|
|
44
57
|
return;
|
|
45
|
-
var i2 = atom2.index
|
|
46
|
-
if (i1 < i2
|
|
58
|
+
var i2 = atom2.index;
|
|
59
|
+
if (i1 < i2) {
|
|
47
60
|
var order = bond.order, flags = bond.flags;
|
|
48
61
|
var ar = types_1.BondType.is(16 /* Aromatic */, flags);
|
|
49
62
|
mol_util_1.StringBuilder.writeSafe(b, "".concat(++bondCount, " ").concat(i1 + 1, " ").concat(i2 + 1, " ").concat(ar ? 'ar' : order));
|
|
@@ -51,7 +64,7 @@ var Mol2Encoder = /** @class */ (function (_super) {
|
|
|
51
64
|
}
|
|
52
65
|
});
|
|
53
66
|
}
|
|
54
|
-
var sybyl = (bondMap === null || bondMap === void 0 ? void 0 : bondMap.map) ? _this.mapToSybyl(label_atom_id1,
|
|
67
|
+
var sybyl = (bondMap === null || bondMap === void 0 ? void 0 : bondMap.map) ? _this.mapToSybyl(label_atom_id1, type_symbol1, bondMap) : type_symbol1;
|
|
55
68
|
mol_util_1.StringBuilder.writeSafe(a, "".concat(i1 + 1, " ").concat(label_atom_id1, " ").concat(atom1.Cartn_x.toFixed(3), " ").concat(atom1.Cartn_y.toFixed(3), " ").concat(atom1.Cartn_z.toFixed(3), " ").concat(sybyl, " 1 ").concat(name, " 0.000\n"));
|
|
56
69
|
});
|
|
57
70
|
// could write something like 'SMALL\nNO_CHARGES', for now let's write **** indicating non-optional, yet missing, string values
|
|
@@ -21,6 +21,7 @@ var symmetry_1 = require("../../../mol-model-formats/structure/property/symmetry
|
|
|
21
21
|
var db_1 = require("../../../mol-data/db");
|
|
22
22
|
var custom_model_property_1 = require("../../../mol-model-props/common/custom-model-property");
|
|
23
23
|
var trajectory_1 = require("../trajectory");
|
|
24
|
+
var secondary_structure_1 = require("../../../mol-model-formats/structure/property/secondary-structure");
|
|
24
25
|
{ }
|
|
25
26
|
var Model;
|
|
26
27
|
(function (Model) {
|
|
@@ -31,8 +32,12 @@ var Model;
|
|
|
31
32
|
var isIdentity = db_1.Column.isIdentity(srcIndex);
|
|
32
33
|
var srcIndexArray = isIdentity ? void 0 : srcIndex.toArray({ array: Int32Array });
|
|
33
34
|
var coarseGrained = isCoarseGrained(model);
|
|
35
|
+
var elementCount = model.atomicHierarchy.atoms._rowCount;
|
|
34
36
|
for (var i = 0, il = frames.length; i < il; ++i) {
|
|
35
37
|
var f = frames[i];
|
|
38
|
+
if (f.elementCount !== elementCount) {
|
|
39
|
+
throw new Error("Frame element count mismatch, got ".concat(f.elementCount, " but expected ").concat(elementCount, "."));
|
|
40
|
+
}
|
|
36
41
|
var m = tslib_1.__assign(tslib_1.__assign({}, model), { id: uuid_1.UUID.create22(), modelNum: i, atomicConformation: coordinates_1.Coordinates.getAtomicConformation(f, model.atomicConformation.atomId, srcIndexArray),
|
|
37
42
|
// TODO: add support for supplying sphere and gaussian coordinates in addition to atomic coordinates?
|
|
38
43
|
// coarseConformation: coarse.conformation,
|
|
@@ -218,7 +223,7 @@ var Model;
|
|
|
218
223
|
return false;
|
|
219
224
|
var db = model.sourceData.data.db;
|
|
220
225
|
for (var i = 0, il = db.database_2.database_id.rowCount; i < il; ++i) {
|
|
221
|
-
if (db.database_2.database_id.value(i) === '
|
|
226
|
+
if (db.database_2.database_id.value(i) === 'pdb')
|
|
222
227
|
return true;
|
|
223
228
|
}
|
|
224
229
|
return false;
|
|
@@ -235,11 +240,14 @@ var Model;
|
|
|
235
240
|
}
|
|
236
241
|
Model.hasPdbId = hasPdbId;
|
|
237
242
|
function hasSecondaryStructure(model) {
|
|
238
|
-
if (
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
+
if (mmcif_1.MmcifFormat.is(model.sourceData)) {
|
|
244
|
+
var db = model.sourceData.data.db;
|
|
245
|
+
return (db.struct_conf.id.isDefined ||
|
|
246
|
+
db.struct_sheet_range.id.isDefined);
|
|
247
|
+
}
|
|
248
|
+
else {
|
|
249
|
+
return secondary_structure_1.ModelSecondaryStructure.Provider.isApplicable(model);
|
|
250
|
+
}
|
|
243
251
|
}
|
|
244
252
|
Model.hasSecondaryStructure = hasSecondaryStructure;
|
|
245
253
|
var tmpAngles90 = linear_algebra_1.Vec3.create(1.5707963, 1.5707963, 1.5707963); // in radians
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.EntitySubtype = void 0;
|
|
10
10
|
var db_1 = require("../../../../mol-data/db");
|
|
11
|
-
exports.EntitySubtype = db_1.Column.Schema.Aliased(db_1.Column.Schema.Str(
|
|
11
|
+
exports.EntitySubtype = db_1.Column.Schema.Aliased(db_1.Column.Schema.Str());
|