A comprehensive macromolecular library.
npm install molstar-climsi



src/):
mol-task Computation abstraction with progress tracking and cancellation support.
mol-data Collections (integer-based sets, interface to columns/tables, etc.)
mol-math Math related (loosely) algorithms and data structures.
mol-io Parsing library. Each format is parsed into an interface that corresponds to the data stored by it. Support for common coordinate, experimental/map, and annotation data formats.
mol-model Data structures and algorithms (such as querying) for representing molecular data (including coordinate, experimental/map, and annotation data).
mol-model-formats Data format parsers for mol-model.
mol-model-props Common "custom properties".
mol-script A scripting language for creating representations/scenes and querying (includes the MolQL query language).
mol-geo Creating (molecular) geometries.
mol-theme Theming for structure, volume and shape representations.
mol-repr Molecular representations for structures, volumes and shapes.
mol-gl A wrapper around WebGL.
mol-canvas3d A low-level 3d view component. Uses mol-geo to generate geometries.
mol-state State representation tree with state saving and automatic updates.
mol-plugin Allow to define modular Mol* plugin instances utilizing mol-state and mol-canvas3d.
mol-plugin-state State transformations, builders, and managers.
mol-plugin-ui React-based user interface for the Mol* plugin. Some components of the UI are usable outside the main plugin and can be integrated into 3rd party solutions.
mol-util Useful things that do not fit elsewhere.
servers, including
servers/model A tool for accessing coordinate and annotation data of molecular structures.
servers/volume A tool for accessing volumetric experimental data related to molecular structures.
servers/plugin-state A basic server to store Mol* Plugin states.
perf-tests), examples, and cli apps (CIF to BinaryCIF converter and JSON domain annotation to CIF converter).
npm run watch-viewer will provide shorter compile times.
$3
DEBUG=molstar npm run watch
Debug/production mode in browsers can be turned on/off during runtime by calling setMolStarDebugMode(true/false, true/false) from the dev console.
$3
npm run clean
Wipes the build and lib directories and .tsbuildinfo files.
npm run rebuild
Runs the cleanup script prior to building the project, forcing a full rebuild of the project.
Use these commands to resolve occasional build failures which may arise after some dependency updates. Once done, npm run build should work again. Note that full rebuilds take more time to complete.
$3
Experimental support for faster builds with esbuild
- npm run dev:all - watch mode for all apps and examples
- npm run dev:viewer - watch mode for viewer
- npm run dev:apps - watch mode for all apps
- npm run dev:examples - watch mode for all examples
- npm run dev -- -a - watch mode for specified apps/examples. -a/-e with without any names will build everything.
$3
NODE_ENV=production npm run build
Run
If not installed previously:
npm install -g http-server
...or a similar solution.
From the root of the project:
http-server -p PORT-NUMBER
and navigate to build/viewer
$3
CIF schemas
node ./lib/commonjs/cli/cifschema -mip ../../../../mol-data -o src/mol-io/reader/cif/schema/mmcif.ts -p mmCIF
node ./lib/commonjs/cli/cifschema -mip ../../../../mol-data -o src/mol-io/reader/cif/schema/ccd.ts -p CCD
node ./lib/commonjs/cli/cifschema -mip ../../../../mol-data -o src/mol-io/reader/cif/schema/bird.ts -p BIRD
node ./lib/commonjs/cli/cifschema -mip ../../../../mol-data -o src/mol-io/reader/cif/schema/cif-core.ts -p CifCore -aa
Lipid names
node lib/commonjs/cli/lipid-params -o src/mol-model/structure/model/types/lipids.ts
Ion names
node --max-old-space-size=4096 lib/commonjs/cli/chem-comp-dict/create-ions.js src/mol-model/structure/model/types/ions.ts
Saccharide names
node --max-old-space-size=4096 lib/commonjs/cli/chem-comp-dict/create-saccharides.js src/mol-model/structure/model/types/saccharides.ts
$3
Create chem comp bond table
node --max-old-space-size=4096 lib/commonjs/cli/chem-comp-dict/create-table.js build/data/ccb.bcif -b
Test model server
export NODE_PATH="lib"; node build/src/servers/model/test.js
State Transformer Docs
export NODE_PATH="lib"; node build/state-docs
Convert any CIF to BinaryCIF (or vice versa)
node lib/commonjs/servers/model/preprocess -i file.cif -ob file.bcif
To see all available commands, use node lib/commonjs/servers/model/preprocess -h`.