molstar 3.4.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -20
- package/README.md +202 -197
- package/build/viewer/embedded.html +43 -43
- package/build/viewer/index.html +106 -106
- package/build/viewer/molstar.js +1 -1
- package/build/viewer/molstar.js.LICENSE.txt +12 -14
- package/lib/apps/docking-viewer/index.html +36 -36
- package/lib/apps/docking-viewer/index.js +1 -1
- package/lib/apps/viewer/app.js +1 -1
- package/lib/apps/viewer/embedded.html +43 -43
- package/lib/apps/viewer/index.html +106 -106
- package/lib/cli/chem-comp-dict/util.d.ts +20 -20
- package/lib/cli/cif2bcif/converter.js +1 -1
- package/lib/cli/cif2bcif/index.js +4 -4
- 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/cif2bcif/converter.js +1 -1
- package/lib/commonjs/cli/cif2bcif/index.js +4 -4
- 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 +2 -2
- 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/color.d.ts +397 -2
- package/lib/commonjs/extensions/dnatco/confal-pyramids/color.js +223 -131
- package/lib/commonjs/extensions/dnatco/confal-pyramids/property.js +1 -3
- package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +3 -0
- package/lib/commonjs/extensions/dnatco/confal-pyramids/util.js +18 -19
- 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/cylinders/cylinders.d.ts +4 -2
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +2 -2
- package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +0 -1
- package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.js +5 -3
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +2 -2
- package/lib/commonjs/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +2 -2
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js +6 -4
- 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 +2 -2
- 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/context.d.ts +1 -1
- package/lib/commonjs/mol-gl/webgl/context.js +2 -2
- 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/mol/encoder.js +1 -1
- package/lib/commonjs/mol-math/geometry/common.d.ts +2 -1
- package/lib/commonjs/mol-math/geometry/common.js +1 -1
- package/lib/commonjs/mol-math/geometry/gaussian-density/cpu.d.ts +1 -1
- package/lib/commonjs/mol-math/geometry/gaussian-density/cpu.js +2 -2
- package/lib/commonjs/mol-math/geometry/gaussian-density/gpu.d.ts +1 -1
- package/lib/commonjs/mol-math/geometry/gaussian-density/gpu.js +7 -7
- package/lib/commonjs/mol-math/geometry/gaussian-density.d.ts +2 -2
- package/lib/commonjs/mol-math/geometry/gaussian-density.js +1 -1
- package/lib/commonjs/mol-math/geometry/molecular-surface.d.ts +2 -1
- package/lib/commonjs/mol-math/geometry/molecular-surface.js +2 -2
- package/lib/commonjs/mol-math/geometry/primitives/box3d.js +2 -1
- package/lib/commonjs/mol-math/geometry/primitives/sphere3d.js +12 -6
- 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/model.d.ts +2 -3
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/util.js +4 -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/react18.d.ts +11 -0
- package/lib/commonjs/mol-plugin-ui/react18.js +38 -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-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-density-volume.js +2 -3
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +5 -1
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.js +9 -9
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.js +4 -5
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.js +3 -3
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.js +4 -4
- 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/structure/visual/util/common.d.ts +1 -3
- package/lib/commonjs/mol-repr/structure/visual/util/common.js +2 -27
- 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-script/language/builder.d.ts +1 -0
- package/lib/examples/alpha-orbitals/index.html +61 -61
- package/lib/examples/alpha-orbitals/index.js +1 -1
- package/lib/examples/basic-wrapper/index.html +137 -137
- package/lib/examples/basic-wrapper/index.js +1 -1
- package/lib/examples/lighting/index.html +88 -88
- package/lib/examples/lighting/index.js +1 -1
- package/lib/examples/proteopedia-wrapper/index.html +236 -236
- 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/color.d.ts +397 -2
- package/lib/extensions/dnatco/confal-pyramids/color.js +224 -132
- package/lib/extensions/dnatco/confal-pyramids/property.js +1 -3
- package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +3 -0
- package/lib/extensions/dnatco/confal-pyramids/util.js +19 -20
- 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/cylinders/cylinders.d.ts +4 -2
- package/lib/mol-geo/geometry/cylinders/cylinders.js +2 -2
- package/lib/mol-geo/geometry/lines/lines.d.ts +0 -1
- package/lib/mol-geo/geometry/mesh/color-smoothing.d.ts +1 -1
- package/lib/mol-geo/geometry/mesh/color-smoothing.js +5 -3
- package/lib/mol-geo/geometry/mesh/mesh.d.ts +2 -1
- package/lib/mol-geo/geometry/mesh/mesh.js +2 -2
- package/lib/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/mol-geo/geometry/spheres/spheres.d.ts +2 -1
- package/lib/mol-geo/geometry/spheres/spheres.js +2 -2
- package/lib/mol-geo/geometry/texture-mesh/color-smoothing.d.ts +1 -1
- package/lib/mol-geo/geometry/texture-mesh/color-smoothing.js +6 -4
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +2 -1
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +2 -2
- 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/context.d.ts +1 -1
- package/lib/mol-gl/webgl/context.js +2 -2
- 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/mol/encoder.js +1 -1
- package/lib/mol-math/geometry/common.d.ts +2 -1
- package/lib/mol-math/geometry/common.js +1 -1
- package/lib/mol-math/geometry/gaussian-density/cpu.d.ts +1 -1
- package/lib/mol-math/geometry/gaussian-density/cpu.js +2 -2
- package/lib/mol-math/geometry/gaussian-density/gpu.d.ts +1 -1
- package/lib/mol-math/geometry/gaussian-density/gpu.js +7 -7
- package/lib/mol-math/geometry/gaussian-density.d.ts +2 -2
- package/lib/mol-math/geometry/gaussian-density.js +1 -1
- package/lib/mol-math/geometry/molecular-surface.d.ts +2 -1
- package/lib/mol-math/geometry/molecular-surface.js +2 -2
- package/lib/mol-math/geometry/primitives/box3d.js +2 -1
- package/lib/mol-math/geometry/primitives/sphere3d.js +12 -6
- 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/model.d.ts +2 -3
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/util.js +4 -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/react18.d.ts +11 -0
- package/lib/mol-plugin-ui/react18.js +34 -0
- package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
- package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
- package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
- package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
- package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
- package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
- package/lib/mol-plugin-ui/skin/base/components/misc.scss +643 -643
- package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
- package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
- package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
- package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
- package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
- package/lib/mol-plugin-ui/skin/base/components/viewport.scss +128 -128
- package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
- package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
- package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
- package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
- package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
- package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
- package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
- package/lib/mol-plugin-ui/skin/blue.scss +1 -1
- package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
- package/lib/mol-plugin-ui/skin/dark.scss +1 -1
- package/lib/mol-plugin-ui/skin/light.scss +1 -1
- package/lib/mol-plugin-ui/state/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-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-density-volume.js +2 -3
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +5 -1
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.js +10 -10
- package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -1
- package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.js +4 -5
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.js +4 -4
- package/lib/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -1
- package/lib/mol-repr/structure/visual/molecular-surface-wireframe.js +5 -5
- 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/structure/visual/util/common.d.ts +1 -3
- package/lib/mol-repr/structure/visual/util/common.js +1 -24
- 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-script/language/builder.d.ts +1 -0
- package/package.json +162 -160
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
1
|
/*!
|
|
8
2
|
* The buffer module from node.js, for the browser.
|
|
9
3
|
*
|
|
@@ -30,8 +24,9 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
30
24
|
|
|
31
25
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
32
26
|
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
27
|
+
/**
|
|
28
|
+
* @license React
|
|
29
|
+
* react-dom.production.min.js
|
|
35
30
|
*
|
|
36
31
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
32
|
*
|
|
@@ -39,8 +34,9 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
39
34
|
* LICENSE file in the root directory of this source tree.
|
|
40
35
|
*/
|
|
41
36
|
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
37
|
+
/**
|
|
38
|
+
* @license React
|
|
39
|
+
* react-jsx-runtime.production.min.js
|
|
44
40
|
*
|
|
45
41
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
46
42
|
*
|
|
@@ -48,8 +44,9 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
48
44
|
* LICENSE file in the root directory of this source tree.
|
|
49
45
|
*/
|
|
50
46
|
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
47
|
+
/**
|
|
48
|
+
* @license React
|
|
49
|
+
* react.production.min.js
|
|
53
50
|
*
|
|
54
51
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
55
52
|
*
|
|
@@ -57,8 +54,9 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
57
54
|
* LICENSE file in the root directory of this source tree.
|
|
58
55
|
*/
|
|
59
56
|
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
57
|
+
/**
|
|
58
|
+
* @license React
|
|
59
|
+
* scheduler.production.min.js
|
|
62
60
|
*
|
|
63
61
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
64
62
|
*
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
6
|
-
<title>Mol* Docking Viewer</title>
|
|
7
|
-
<style>
|
|
8
|
-
#app {
|
|
9
|
-
position: absolute;
|
|
10
|
-
left: 100px;
|
|
11
|
-
top: 100px;
|
|
12
|
-
width: 800px;
|
|
13
|
-
height: 600px;
|
|
14
|
-
}
|
|
15
|
-
</style>
|
|
16
|
-
<link rel="stylesheet" type="text/css" href="molstar.css" />
|
|
17
|
-
</head>
|
|
18
|
-
<body>
|
|
19
|
-
<div id="app"></div>
|
|
20
|
-
<script type="text/javascript" src="./molstar.js"></script>
|
|
21
|
-
<script type="text/javascript">
|
|
22
|
-
function getParam(name, regex) {
|
|
23
|
-
var r = new RegExp(name + '=' + '(' + regex + ')[&]?', 'i');
|
|
24
|
-
return decodeURIComponent(((window.location.search || '').match(r) || [])[1] || '');
|
|
25
|
-
}
|
|
26
|
-
var pdbqt = getParam('pdbqt', '[^&]+').trim() || '../../examples/ace2.pdbqt';
|
|
27
|
-
var mol2 = getParam('mol2', '[^&]+').trim() || '../../examples/ace2-hit.mol2';
|
|
28
|
-
|
|
29
|
-
DockingViewer.create('app', [0x33DD22, 0x1133EE], true).then(viewer => {
|
|
30
|
-
viewer.loadStructuresFromUrlsAndMerge([
|
|
31
|
-
{ url: pdbqt, format: 'pdbqt' },
|
|
32
|
-
{ url: mol2, format: 'mol2' }
|
|
33
|
-
]);
|
|
34
|
-
});
|
|
35
|
-
</script>
|
|
36
|
-
</body>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
6
|
+
<title>Mol* Docking Viewer</title>
|
|
7
|
+
<style>
|
|
8
|
+
#app {
|
|
9
|
+
position: absolute;
|
|
10
|
+
left: 100px;
|
|
11
|
+
top: 100px;
|
|
12
|
+
width: 800px;
|
|
13
|
+
height: 600px;
|
|
14
|
+
}
|
|
15
|
+
</style>
|
|
16
|
+
<link rel="stylesheet" type="text/css" href="molstar.css" />
|
|
17
|
+
</head>
|
|
18
|
+
<body>
|
|
19
|
+
<div id="app"></div>
|
|
20
|
+
<script type="text/javascript" src="./molstar.js"></script>
|
|
21
|
+
<script type="text/javascript">
|
|
22
|
+
function getParam(name, regex) {
|
|
23
|
+
var r = new RegExp(name + '=' + '(' + regex + ')[&]?', 'i');
|
|
24
|
+
return decodeURIComponent(((window.location.search || '').match(r) || [])[1] || '');
|
|
25
|
+
}
|
|
26
|
+
var pdbqt = getParam('pdbqt', '[^&]+').trim() || '../../examples/ace2.pdbqt';
|
|
27
|
+
var mol2 = getParam('mol2', '[^&]+').trim() || '../../examples/ace2-hit.mol2';
|
|
28
|
+
|
|
29
|
+
DockingViewer.create('app', [0x33DD22, 0x1133EE], true).then(viewer => {
|
|
30
|
+
viewer.loadStructuresFromUrlsAndMerge([
|
|
31
|
+
{ url: pdbqt, format: 'pdbqt' },
|
|
32
|
+
{ url: mol2, format: 'mol2' }
|
|
33
|
+
]);
|
|
34
|
+
});
|
|
35
|
+
</script>
|
|
36
|
+
</body>
|
|
37
37
|
</html>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
8
8
|
import { Structure } from '../../mol-model/structure';
|
|
9
9
|
import { PluginStateObject as PSO, PluginStateTransform } from '../../mol-plugin-state/objects';
|
|
10
|
-
import { createPluginUI } from '../../mol-plugin-ui';
|
|
10
|
+
import { createPluginUI } from '../../mol-plugin-ui/react18';
|
|
11
11
|
import { DefaultPluginUISpec } from '../../mol-plugin-ui/spec';
|
|
12
12
|
import { PluginBehaviors } from '../../mol-plugin/behavior';
|
|
13
13
|
import { PluginCommands } from '../../mol-plugin/commands';
|
package/lib/apps/viewer/app.js
CHANGED
|
@@ -25,7 +25,7 @@ import { PresetStructureRepresentations, StructureRepresentationPresetProvider }
|
|
|
25
25
|
import { createVolumeRepresentationParams } from '../../mol-plugin-state/helpers/volume-representation-params';
|
|
26
26
|
import { StateTransforms } from '../../mol-plugin-state/transforms';
|
|
27
27
|
import { TrajectoryFromModelAndCoordinates } from '../../mol-plugin-state/transforms/model';
|
|
28
|
-
import { createPluginUI } from '../../mol-plugin-ui';
|
|
28
|
+
import { createPluginUI } from '../../mol-plugin-ui/react18';
|
|
29
29
|
import { DefaultPluginUISpec } from '../../mol-plugin-ui/spec';
|
|
30
30
|
import { PluginCommands } from '../../mol-plugin/commands';
|
|
31
31
|
import { PluginConfig } from '../../mol-plugin/config';
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
6
|
-
<link rel="icon" href="./favicon.ico" type="image/x-icon">
|
|
7
|
-
<title>Embedded Mol* Viewer</title>
|
|
8
|
-
<style>
|
|
9
|
-
#app {
|
|
10
|
-
position: absolute;
|
|
11
|
-
left: 100px;
|
|
12
|
-
top: 100px;
|
|
13
|
-
width: 800px;
|
|
14
|
-
height: 600px;
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
<link rel="stylesheet" type="text/css" href="molstar.css" />
|
|
18
|
-
</head>
|
|
19
|
-
<body>
|
|
20
|
-
<div id="app"></div>
|
|
21
|
-
<script type="text/javascript" src="./molstar.js"></script>
|
|
22
|
-
<script type="text/javascript">
|
|
23
|
-
molstar.Viewer.create('app', {
|
|
24
|
-
layoutIsExpanded: true,
|
|
25
|
-
layoutShowControls: false,
|
|
26
|
-
layoutShowRemoteState: false,
|
|
27
|
-
layoutShowSequence: true,
|
|
28
|
-
layoutShowLog: false,
|
|
29
|
-
layoutShowLeftPanel: true,
|
|
30
|
-
|
|
31
|
-
viewportShowExpand: true,
|
|
32
|
-
viewportShowSelectionMode: false,
|
|
33
|
-
viewportShowAnimation: false,
|
|
34
|
-
|
|
35
|
-
pdbProvider: 'rcsb',
|
|
36
|
-
emdbProvider: 'rcsb',
|
|
37
|
-
}).then(viewer => {
|
|
38
|
-
viewer.loadPdb('7bv2');
|
|
39
|
-
viewer.loadEmdb('EMD-30210', { detail: 6 });
|
|
40
|
-
// viewer.loadAllModelsOrAssemblyFromUrl('https://cs.litemol.org/5ire/full', 'mmcif', false, { representationParams: { theme: { globalName: 'operator-name' } } })
|
|
41
|
-
});
|
|
42
|
-
</script>
|
|
43
|
-
</body>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
6
|
+
<link rel="icon" href="./favicon.ico" type="image/x-icon">
|
|
7
|
+
<title>Embedded Mol* Viewer</title>
|
|
8
|
+
<style>
|
|
9
|
+
#app {
|
|
10
|
+
position: absolute;
|
|
11
|
+
left: 100px;
|
|
12
|
+
top: 100px;
|
|
13
|
+
width: 800px;
|
|
14
|
+
height: 600px;
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
<link rel="stylesheet" type="text/css" href="molstar.css" />
|
|
18
|
+
</head>
|
|
19
|
+
<body>
|
|
20
|
+
<div id="app"></div>
|
|
21
|
+
<script type="text/javascript" src="./molstar.js"></script>
|
|
22
|
+
<script type="text/javascript">
|
|
23
|
+
molstar.Viewer.create('app', {
|
|
24
|
+
layoutIsExpanded: true,
|
|
25
|
+
layoutShowControls: false,
|
|
26
|
+
layoutShowRemoteState: false,
|
|
27
|
+
layoutShowSequence: true,
|
|
28
|
+
layoutShowLog: false,
|
|
29
|
+
layoutShowLeftPanel: true,
|
|
30
|
+
|
|
31
|
+
viewportShowExpand: true,
|
|
32
|
+
viewportShowSelectionMode: false,
|
|
33
|
+
viewportShowAnimation: false,
|
|
34
|
+
|
|
35
|
+
pdbProvider: 'rcsb',
|
|
36
|
+
emdbProvider: 'rcsb',
|
|
37
|
+
}).then(viewer => {
|
|
38
|
+
viewer.loadPdb('7bv2');
|
|
39
|
+
viewer.loadEmdb('EMD-30210', { detail: 6 });
|
|
40
|
+
// viewer.loadAllModelsOrAssemblyFromUrl('https://cs.litemol.org/5ire/full', 'mmcif', false, { representationParams: { theme: { globalName: 'operator-name' } } })
|
|
41
|
+
});
|
|
42
|
+
</script>
|
|
43
|
+
</body>
|
|
44
44
|
</html>
|
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
6
|
-
<link rel="icon" href="./favicon.ico" type="image/x-icon">
|
|
7
|
-
<title>Mol* Viewer</title>
|
|
8
|
-
<style>
|
|
9
|
-
* {
|
|
10
|
-
margin: 0;
|
|
11
|
-
padding: 0;
|
|
12
|
-
box-sizing: border-box;
|
|
13
|
-
}
|
|
14
|
-
html, body {
|
|
15
|
-
width: 100%;
|
|
16
|
-
height: 100%;
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
}
|
|
19
|
-
hr {
|
|
20
|
-
margin: 10px;
|
|
21
|
-
}
|
|
22
|
-
h1, h2, h3, h4, h5 {
|
|
23
|
-
margin-top: 5px;
|
|
24
|
-
margin-bottom: 3px;
|
|
25
|
-
}
|
|
26
|
-
button {
|
|
27
|
-
padding: 2px;
|
|
28
|
-
}
|
|
29
|
-
#app {
|
|
30
|
-
position: absolute;
|
|
31
|
-
left: 100px;
|
|
32
|
-
top: 100px;
|
|
33
|
-
width: 800px;
|
|
34
|
-
height: 600px;
|
|
35
|
-
}
|
|
36
|
-
</style>
|
|
37
|
-
<link rel="stylesheet" type="text/css" href="molstar.css" />
|
|
38
|
-
</head>
|
|
39
|
-
<body>
|
|
40
|
-
<div id="app"></div>
|
|
41
|
-
<script type="text/javascript" src="./molstar.js"></script>
|
|
42
|
-
<script type="text/javascript">
|
|
43
|
-
function getParam(name, regex) {
|
|
44
|
-
var r = new RegExp(name + '=' + '(' + regex + ')[&]?', 'i');
|
|
45
|
-
return decodeURIComponent(((window.location.search || '').match(r) || [])[1] || '');
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
var debugMode = getParam('debug-mode', '[^&]+').trim() === '1';
|
|
49
|
-
if (debugMode) molstar.setDebugMode(debugMode, debugMode);
|
|
50
|
-
|
|
51
|
-
var hideControls = getParam('hide-controls', '[^&]+').trim() === '1';
|
|
52
|
-
var collapseLeftPanel = getParam('collapse-left-panel', '[^&]+').trim() === '1';
|
|
53
|
-
var pdbProvider = getParam('pdb-provider', '[^&]+').trim().toLowerCase();
|
|
54
|
-
var emdbProvider = getParam('emdb-provider', '[^&]+').trim().toLowerCase();
|
|
55
|
-
var mapProvider = getParam('map-provider', '[^&]+').trim().toLowerCase();
|
|
56
|
-
var pixelScale = getParam('pixel-scale', '[^&]+').trim();
|
|
57
|
-
var pickScale = getParam('pick-scale', '[^&]+').trim();
|
|
58
|
-
var pickPadding = getParam('pick-padding', '[^&]+').trim();
|
|
59
|
-
var disableWboit = getParam('disable-wboit', '[^&]+').trim() === '1';
|
|
60
|
-
var preferWebgl1 = getParam('prefer-webgl1', '[^&]+').trim() === '1' || void 0;
|
|
61
|
-
|
|
62
|
-
molstar.Viewer.create('app', {
|
|
63
|
-
layoutShowControls: !hideControls,
|
|
64
|
-
viewportShowExpand: false,
|
|
65
|
-
collapseLeftPanel: collapseLeftPanel,
|
|
66
|
-
pdbProvider: pdbProvider || 'pdbe',
|
|
67
|
-
emdbProvider: emdbProvider || 'pdbe',
|
|
68
|
-
volumeStreamingServer: (mapProvider || 'pdbe') === 'rcsb'
|
|
69
|
-
? 'https://maps.rcsb.org'
|
|
70
|
-
: 'https://www.ebi.ac.uk/pdbe/densities',
|
|
71
|
-
pixelScale: parseFloat(pixelScale) || 1,
|
|
72
|
-
pickScale: parseFloat(pickScale) || 0.25,
|
|
73
|
-
pickPadding: isNaN(parseFloat(pickPadding)) ? 1 : parseFloat(pickPadding),
|
|
74
|
-
enableWboit: disableWboit ?
|
|
75
|
-
preferWebgl1: preferWebgl1,
|
|
76
|
-
}).then(viewer => {
|
|
77
|
-
var snapshotId = getParam('snapshot-id', '[^&]+').trim();
|
|
78
|
-
if (snapshotId) viewer.setRemoteSnapshot(snapshotId);
|
|
79
|
-
|
|
80
|
-
var snapshotUrl = getParam('snapshot-url', '[^&]+').trim();
|
|
81
|
-
var snapshotUrlType = getParam('snapshot-url-type', '[^&]+').toLowerCase().trim() || 'molj';
|
|
82
|
-
if (snapshotUrl && snapshotUrlType) viewer.loadSnapshotFromUrl(snapshotUrl, snapshotUrlType);
|
|
83
|
-
|
|
84
|
-
var structureUrl = getParam('structure-url', '[^&]+').trim();
|
|
85
|
-
var structureUrlFormat = getParam('structure-url-format', '[a-z]+').toLowerCase().trim();
|
|
86
|
-
var structureUrlIsBinary = getParam('structure-url-is-binary', '[^&]+').trim() === '1';
|
|
87
|
-
if (structureUrl) viewer.loadStructureFromUrl(structureUrl, structureUrlFormat, structureUrlIsBinary);
|
|
88
|
-
|
|
89
|
-
var pdb = getParam('pdb', '[^&]+').trim();
|
|
90
|
-
if (pdb) viewer.loadPdb(pdb);
|
|
91
|
-
|
|
92
|
-
var pdbDev = getParam('pdb-dev', '[^&]+').trim();
|
|
93
|
-
if (pdbDev) viewer.loadPdbDev(pdbDev);
|
|
94
|
-
|
|
95
|
-
var emdb = getParam('emdb', '[^&]+').trim();
|
|
96
|
-
if (emdb) viewer.loadEmdb(emdb);
|
|
97
|
-
|
|
98
|
-
var afdb = getParam('afdb', '[^&]+').trim();
|
|
99
|
-
if (afdb) viewer.loadAlphaFoldDb(afdb);
|
|
100
|
-
|
|
101
|
-
var modelArchive = getParam('model-archive', '[^&]+').trim();
|
|
102
|
-
if (modelArchive) viewer.loadModelArchive(modelArchive);
|
|
103
|
-
});
|
|
104
|
-
</script>
|
|
105
|
-
<!-- __MOLSTAR_ANALYTICS__ -->
|
|
106
|
-
</body>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
6
|
+
<link rel="icon" href="./favicon.ico" type="image/x-icon">
|
|
7
|
+
<title>Mol* Viewer</title>
|
|
8
|
+
<style>
|
|
9
|
+
* {
|
|
10
|
+
margin: 0;
|
|
11
|
+
padding: 0;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
}
|
|
14
|
+
html, body {
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
}
|
|
19
|
+
hr {
|
|
20
|
+
margin: 10px;
|
|
21
|
+
}
|
|
22
|
+
h1, h2, h3, h4, h5 {
|
|
23
|
+
margin-top: 5px;
|
|
24
|
+
margin-bottom: 3px;
|
|
25
|
+
}
|
|
26
|
+
button {
|
|
27
|
+
padding: 2px;
|
|
28
|
+
}
|
|
29
|
+
#app {
|
|
30
|
+
position: absolute;
|
|
31
|
+
left: 100px;
|
|
32
|
+
top: 100px;
|
|
33
|
+
width: 800px;
|
|
34
|
+
height: 600px;
|
|
35
|
+
}
|
|
36
|
+
</style>
|
|
37
|
+
<link rel="stylesheet" type="text/css" href="molstar.css" />
|
|
38
|
+
</head>
|
|
39
|
+
<body>
|
|
40
|
+
<div id="app"></div>
|
|
41
|
+
<script type="text/javascript" src="./molstar.js"></script>
|
|
42
|
+
<script type="text/javascript">
|
|
43
|
+
function getParam(name, regex) {
|
|
44
|
+
var r = new RegExp(name + '=' + '(' + regex + ')[&]?', 'i');
|
|
45
|
+
return decodeURIComponent(((window.location.search || '').match(r) || [])[1] || '');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
var debugMode = getParam('debug-mode', '[^&]+').trim() === '1';
|
|
49
|
+
if (debugMode) molstar.setDebugMode(debugMode, debugMode);
|
|
50
|
+
|
|
51
|
+
var hideControls = getParam('hide-controls', '[^&]+').trim() === '1';
|
|
52
|
+
var collapseLeftPanel = getParam('collapse-left-panel', '[^&]+').trim() === '1';
|
|
53
|
+
var pdbProvider = getParam('pdb-provider', '[^&]+').trim().toLowerCase();
|
|
54
|
+
var emdbProvider = getParam('emdb-provider', '[^&]+').trim().toLowerCase();
|
|
55
|
+
var mapProvider = getParam('map-provider', '[^&]+').trim().toLowerCase();
|
|
56
|
+
var pixelScale = getParam('pixel-scale', '[^&]+').trim();
|
|
57
|
+
var pickScale = getParam('pick-scale', '[^&]+').trim();
|
|
58
|
+
var pickPadding = getParam('pick-padding', '[^&]+').trim();
|
|
59
|
+
var disableWboit = getParam('disable-wboit', '[^&]+').trim() === '1';
|
|
60
|
+
var preferWebgl1 = getParam('prefer-webgl1', '[^&]+').trim() === '1' || void 0;
|
|
61
|
+
|
|
62
|
+
molstar.Viewer.create('app', {
|
|
63
|
+
layoutShowControls: !hideControls,
|
|
64
|
+
viewportShowExpand: false,
|
|
65
|
+
collapseLeftPanel: collapseLeftPanel,
|
|
66
|
+
pdbProvider: pdbProvider || 'pdbe',
|
|
67
|
+
emdbProvider: emdbProvider || 'pdbe',
|
|
68
|
+
volumeStreamingServer: (mapProvider || 'pdbe') === 'rcsb'
|
|
69
|
+
? 'https://maps.rcsb.org'
|
|
70
|
+
: 'https://www.ebi.ac.uk/pdbe/densities',
|
|
71
|
+
pixelScale: parseFloat(pixelScale) || 1,
|
|
72
|
+
pickScale: parseFloat(pickScale) || 0.25,
|
|
73
|
+
pickPadding: isNaN(parseFloat(pickPadding)) ? 1 : parseFloat(pickPadding),
|
|
74
|
+
enableWboit: disableWboit ? false : void 0, // use default value if disable-wboit is not set
|
|
75
|
+
preferWebgl1: preferWebgl1,
|
|
76
|
+
}).then(viewer => {
|
|
77
|
+
var snapshotId = getParam('snapshot-id', '[^&]+').trim();
|
|
78
|
+
if (snapshotId) viewer.setRemoteSnapshot(snapshotId);
|
|
79
|
+
|
|
80
|
+
var snapshotUrl = getParam('snapshot-url', '[^&]+').trim();
|
|
81
|
+
var snapshotUrlType = getParam('snapshot-url-type', '[^&]+').toLowerCase().trim() || 'molj';
|
|
82
|
+
if (snapshotUrl && snapshotUrlType) viewer.loadSnapshotFromUrl(snapshotUrl, snapshotUrlType);
|
|
83
|
+
|
|
84
|
+
var structureUrl = getParam('structure-url', '[^&]+').trim();
|
|
85
|
+
var structureUrlFormat = getParam('structure-url-format', '[a-z]+').toLowerCase().trim();
|
|
86
|
+
var structureUrlIsBinary = getParam('structure-url-is-binary', '[^&]+').trim() === '1';
|
|
87
|
+
if (structureUrl) viewer.loadStructureFromUrl(structureUrl, structureUrlFormat, structureUrlIsBinary);
|
|
88
|
+
|
|
89
|
+
var pdb = getParam('pdb', '[^&]+').trim();
|
|
90
|
+
if (pdb) viewer.loadPdb(pdb);
|
|
91
|
+
|
|
92
|
+
var pdbDev = getParam('pdb-dev', '[^&]+').trim();
|
|
93
|
+
if (pdbDev) viewer.loadPdbDev(pdbDev);
|
|
94
|
+
|
|
95
|
+
var emdb = getParam('emdb', '[^&]+').trim();
|
|
96
|
+
if (emdb) viewer.loadEmdb(emdb);
|
|
97
|
+
|
|
98
|
+
var afdb = getParam('afdb', '[^&]+').trim();
|
|
99
|
+
if (afdb) viewer.loadAlphaFoldDb(afdb);
|
|
100
|
+
|
|
101
|
+
var modelArchive = getParam('model-archive', '[^&]+').trim();
|
|
102
|
+
if (modelArchive) viewer.loadModelArchive(modelArchive);
|
|
103
|
+
});
|
|
104
|
+
</script>
|
|
105
|
+
<!-- __MOLSTAR_ANALYTICS__ -->
|
|
106
|
+
</body>
|
|
107
107
|
</html>
|
|
@@ -16,7 +16,7 @@ export declare function readCCD(): Promise<import("../../mol-data/db").DatabaseC
|
|
|
16
16
|
name: import("../../mol-data/db/column").Column.Schema.Str;
|
|
17
17
|
one_letter_code: import("../../mol-data/db/column").Column.Schema.Str;
|
|
18
18
|
three_letter_code: import("../../mol-data/db/column").Column.Schema.Str;
|
|
19
|
-
type: import("../../mol-data/db/column").Column.Schema.Aliased<"other" | "
|
|
19
|
+
type: import("../../mol-data/db/column").Column.Schema.Aliased<"other" | "d-peptide linking" | "l-peptide linking" | "d-peptide nh3 amino terminus" | "l-peptide nh3 amino terminus" | "d-peptide cooh carboxy terminus" | "l-peptide cooh carboxy terminus" | "dna linking" | "rna linking" | "l-rna linking" | "l-dna linking" | "dna oh 5 prime terminus" | "rna oh 5 prime terminus" | "dna oh 3 prime terminus" | "rna oh 3 prime terminus" | "d-saccharide, beta linking" | "d-saccharide, alpha linking" | "l-saccharide, beta linking" | "l-saccharide, alpha linking" | "l-saccharide" | "d-saccharide" | "saccharide" | "non-polymer" | "peptide linking" | "peptide-like" | "l-gamma-peptide, c-delta linking" | "d-gamma-peptide, c-delta linking" | "l-beta-peptide, c-gamma linking" | "d-beta-peptide, c-gamma linking">;
|
|
20
20
|
pdbx_synonyms: import("../../mol-data/db/column").Column.Schema.List<string>;
|
|
21
21
|
pdbx_type: import("../../mol-data/db/column").Column.Schema.Str;
|
|
22
22
|
pdbx_ambiguous_flag: import("../../mol-data/db/column").Column.Schema.Str;
|
|
@@ -26,12 +26,12 @@ export declare function readCCD(): Promise<import("../../mol-data/db").DatabaseC
|
|
|
26
26
|
pdbx_model_coordinates_details: import("../../mol-data/db/column").Column.Schema.Str;
|
|
27
27
|
pdbx_model_coordinates_db_code: import("../../mol-data/db/column").Column.Schema.Str;
|
|
28
28
|
pdbx_ideal_coordinates_details: import("../../mol-data/db/column").Column.Schema.Str;
|
|
29
|
-
pdbx_ideal_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
30
|
-
pdbx_model_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
29
|
+
pdbx_ideal_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
30
|
+
pdbx_model_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
31
31
|
pdbx_initial_date: import("../../mol-data/db/column").Column.Schema.Str;
|
|
32
32
|
pdbx_modified_date: import("../../mol-data/db/column").Column.Schema.Str;
|
|
33
33
|
pdbx_release_status: import("../../mol-data/db/column").Column.Schema.Aliased<"REL" | "HOLD" | "HPUB" | "OBS" | "DEL" | "REF_ONLY">;
|
|
34
|
-
pdbx_processing_site: import("../../mol-data/db/column").Column.Schema.Aliased<"RCSB" | "
|
|
34
|
+
pdbx_processing_site: import("../../mol-data/db/column").Column.Schema.Aliased<"RCSB" | "PDBE" | "PDBJ" | "PDBC" | "EBI">;
|
|
35
35
|
};
|
|
36
36
|
chem_comp_atom: {
|
|
37
37
|
alt_atom_id: import("../../mol-data/db/column").Column.Schema.Str;
|
|
@@ -47,9 +47,9 @@ export declare function readCCD(): Promise<import("../../mol-data/db").DatabaseC
|
|
|
47
47
|
pdbx_model_Cartn_x_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
|
|
48
48
|
pdbx_model_Cartn_y_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
|
|
49
49
|
pdbx_model_Cartn_z_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
|
|
50
|
-
pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
51
|
-
pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
52
|
-
pdbx_leaving_atom_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
50
|
+
pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"s" | "r" | "n">;
|
|
51
|
+
pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
52
|
+
pdbx_leaving_atom_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
53
53
|
};
|
|
54
54
|
chem_comp_bond: {
|
|
55
55
|
atom_id_1: import("../../mol-data/db/column").Column.Schema.Str;
|
|
@@ -57,13 +57,13 @@ export declare function readCCD(): Promise<import("../../mol-data/db").DatabaseC
|
|
|
57
57
|
comp_id: import("../../mol-data/db/column").Column.Schema.Str;
|
|
58
58
|
value_order: import("../../mol-data/db/column").Column.Schema.Aliased<"sing" | "doub" | "trip" | "quad" | "arom" | "poly" | "delo" | "pi">;
|
|
59
59
|
pdbx_ordinal: import("../../mol-data/db/column").Column.Schema.Int;
|
|
60
|
-
pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
61
|
-
pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
60
|
+
pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"z" | "n" | "e">;
|
|
61
|
+
pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
62
62
|
};
|
|
63
63
|
pdbx_chem_comp_descriptor: {
|
|
64
64
|
comp_id: import("../../mol-data/db/column").Column.Schema.Str;
|
|
65
65
|
descriptor: import("../../mol-data/db/column").Column.Schema.Str;
|
|
66
|
-
type: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
66
|
+
type: import("../../mol-data/db/column").Column.Schema.Aliased<"smiles_cannonical" | "smiles_canonical" | "smiles" | "inchi" | "inchi_main" | "inchi_main_formula" | "inchi_main_connect" | "inchi_main_hatom" | "inchi_charge" | "inchi_stereo" | "inchi_isotope" | "inchi_fixedh" | "inchi_reconnect" | "inchikey">;
|
|
67
67
|
program: import("../../mol-data/db/column").Column.Schema.Str;
|
|
68
68
|
program_version: import("../../mol-data/db/column").Column.Schema.Str;
|
|
69
69
|
};
|
|
@@ -84,7 +84,7 @@ export declare function readPVCD(): Promise<import("../../mol-data/db").Database
|
|
|
84
84
|
name: import("../../mol-data/db/column").Column.Schema.Str;
|
|
85
85
|
one_letter_code: import("../../mol-data/db/column").Column.Schema.Str;
|
|
86
86
|
three_letter_code: import("../../mol-data/db/column").Column.Schema.Str;
|
|
87
|
-
type: import("../../mol-data/db/column").Column.Schema.Aliased<"other" | "
|
|
87
|
+
type: import("../../mol-data/db/column").Column.Schema.Aliased<"other" | "d-peptide linking" | "l-peptide linking" | "d-peptide nh3 amino terminus" | "l-peptide nh3 amino terminus" | "d-peptide cooh carboxy terminus" | "l-peptide cooh carboxy terminus" | "dna linking" | "rna linking" | "l-rna linking" | "l-dna linking" | "dna oh 5 prime terminus" | "rna oh 5 prime terminus" | "dna oh 3 prime terminus" | "rna oh 3 prime terminus" | "d-saccharide, beta linking" | "d-saccharide, alpha linking" | "l-saccharide, beta linking" | "l-saccharide, alpha linking" | "l-saccharide" | "d-saccharide" | "saccharide" | "non-polymer" | "peptide linking" | "peptide-like" | "l-gamma-peptide, c-delta linking" | "d-gamma-peptide, c-delta linking" | "l-beta-peptide, c-gamma linking" | "d-beta-peptide, c-gamma linking">;
|
|
88
88
|
pdbx_synonyms: import("../../mol-data/db/column").Column.Schema.List<string>;
|
|
89
89
|
pdbx_type: import("../../mol-data/db/column").Column.Schema.Str;
|
|
90
90
|
pdbx_ambiguous_flag: import("../../mol-data/db/column").Column.Schema.Str;
|
|
@@ -94,12 +94,12 @@ export declare function readPVCD(): Promise<import("../../mol-data/db").Database
|
|
|
94
94
|
pdbx_model_coordinates_details: import("../../mol-data/db/column").Column.Schema.Str;
|
|
95
95
|
pdbx_model_coordinates_db_code: import("../../mol-data/db/column").Column.Schema.Str;
|
|
96
96
|
pdbx_ideal_coordinates_details: import("../../mol-data/db/column").Column.Schema.Str;
|
|
97
|
-
pdbx_ideal_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
98
|
-
pdbx_model_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
97
|
+
pdbx_ideal_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
98
|
+
pdbx_model_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
99
99
|
pdbx_initial_date: import("../../mol-data/db/column").Column.Schema.Str;
|
|
100
100
|
pdbx_modified_date: import("../../mol-data/db/column").Column.Schema.Str;
|
|
101
101
|
pdbx_release_status: import("../../mol-data/db/column").Column.Schema.Aliased<"REL" | "HOLD" | "HPUB" | "OBS" | "DEL" | "REF_ONLY">;
|
|
102
|
-
pdbx_processing_site: import("../../mol-data/db/column").Column.Schema.Aliased<"RCSB" | "
|
|
102
|
+
pdbx_processing_site: import("../../mol-data/db/column").Column.Schema.Aliased<"RCSB" | "PDBE" | "PDBJ" | "PDBC" | "EBI">;
|
|
103
103
|
};
|
|
104
104
|
chem_comp_atom: {
|
|
105
105
|
alt_atom_id: import("../../mol-data/db/column").Column.Schema.Str;
|
|
@@ -115,9 +115,9 @@ export declare function readPVCD(): Promise<import("../../mol-data/db").Database
|
|
|
115
115
|
pdbx_model_Cartn_x_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
|
|
116
116
|
pdbx_model_Cartn_y_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
|
|
117
117
|
pdbx_model_Cartn_z_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
|
|
118
|
-
pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
119
|
-
pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
120
|
-
pdbx_leaving_atom_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
118
|
+
pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"s" | "r" | "n">;
|
|
119
|
+
pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
120
|
+
pdbx_leaving_atom_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
121
121
|
};
|
|
122
122
|
chem_comp_bond: {
|
|
123
123
|
atom_id_1: import("../../mol-data/db/column").Column.Schema.Str;
|
|
@@ -125,13 +125,13 @@ export declare function readPVCD(): Promise<import("../../mol-data/db").Database
|
|
|
125
125
|
comp_id: import("../../mol-data/db/column").Column.Schema.Str;
|
|
126
126
|
value_order: import("../../mol-data/db/column").Column.Schema.Aliased<"sing" | "doub" | "trip" | "quad" | "arom" | "poly" | "delo" | "pi">;
|
|
127
127
|
pdbx_ordinal: import("../../mol-data/db/column").Column.Schema.Int;
|
|
128
|
-
pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
129
|
-
pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
128
|
+
pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"z" | "n" | "e">;
|
|
129
|
+
pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
|
|
130
130
|
};
|
|
131
131
|
pdbx_chem_comp_descriptor: {
|
|
132
132
|
comp_id: import("../../mol-data/db/column").Column.Schema.Str;
|
|
133
133
|
descriptor: import("../../mol-data/db/column").Column.Schema.Str;
|
|
134
|
-
type: import("../../mol-data/db/column").Column.Schema.Aliased<"
|
|
134
|
+
type: import("../../mol-data/db/column").Column.Schema.Aliased<"smiles_cannonical" | "smiles_canonical" | "smiles" | "inchi" | "inchi_main" | "inchi_main_formula" | "inchi_main_connect" | "inchi_main_hatom" | "inchi_charge" | "inchi_stereo" | "inchi_isotope" | "inchi_fixedh" | "inchi_reconnect" | "inchikey">;
|
|
135
135
|
program: import("../../mol-data/db/column").Column.Schema.Str;
|
|
136
136
|
program_version: import("../../mol-data/db/column").Column.Schema.Str;
|
|
137
137
|
};
|
|
@@ -96,7 +96,7 @@ function classify(name, field) {
|
|
|
96
96
|
export function convert(path, asText, hints, filter) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
if (asText === void 0) { asText = false; }
|
|
99
|
-
return Task.create('
|
|
99
|
+
return Task.create('Convert CIF', function (ctx) { return __awaiter(_this, void 0, void 0, function () {
|
|
100
100
|
var encodingProvider, cif, encoder, maxProgress, _i, _a, b, _b, _c, c, current, _d, _e, b, _f, _g, c, cat, fields, _h, _j, f, ret;
|
|
101
101
|
return __generator(this, function (_k) {
|
|
102
102
|
switch (_k.label) {
|
|
@@ -20,7 +20,7 @@ function process(srcPath, outPath, configPath, filterPath) {
|
|
|
20
20
|
case 0:
|
|
21
21
|
config = configPath ? JSON.parse(fs.readFileSync(configPath, 'utf8')) : void 0;
|
|
22
22
|
filter = filterPath ? fs.readFileSync(filterPath, 'utf8') : void 0;
|
|
23
|
-
return [4 /*yield*/, convert(srcPath,
|
|
23
|
+
return [4 /*yield*/, convert(srcPath, srcPath.toLowerCase().indexOf('.bcif') > 0, config, filter)];
|
|
24
24
|
case 1:
|
|
25
25
|
res = _a.sent();
|
|
26
26
|
return [4 /*yield*/, write(outPath, res)];
|
|
@@ -56,13 +56,13 @@ function run(args) {
|
|
|
56
56
|
}
|
|
57
57
|
var parser = new argparse.ArgumentParser({
|
|
58
58
|
add_help: true,
|
|
59
|
-
description: 'Convert any
|
|
59
|
+
description: 'Convert any BCIF file to a CIF file or vice versa'
|
|
60
60
|
});
|
|
61
61
|
parser.add_argument('src', {
|
|
62
|
-
help: 'Source
|
|
62
|
+
help: 'Source file path'
|
|
63
63
|
});
|
|
64
64
|
parser.add_argument('out', {
|
|
65
|
-
help: 'Output
|
|
65
|
+
help: 'Output file path'
|
|
66
66
|
});
|
|
67
67
|
parser.add_argument('-c', '--config', {
|
|
68
68
|
help: 'Optional encoding strategy/precision config path',
|