MolStart molecule viewer for transmembrane proteins http://molstar.org

David Sehnal 0e5ed27513 Renamed mol-view mol-canvas3d, moved parameters.ts to mol-util, added mol-plugin il y a 6 ans
.vscode 5148690ae1 wip, renderables il y a 7 ans
data b7f005f427 updated cif schemas, added chem_comp_related and chem_comp_synonyms il y a 6 ans
docs 07ee6646a1 model-server docs tweak il y a 6 ans
examples 5bc9cf2397 added 1crn.cif example file il y a 6 ans
src 0e5ed27513 Renamed mol-view mol-canvas3d, moved parameters.ts to mol-util, added mol-plugin il y a 6 ans
web 43a9d73930 ModelServer: support BinaryCIF "encoding providers" from source file il y a 6 ans
.dockerignore 49de188e39 Docker'ized the canvas example il y a 6 ans
.gitattributes 6e6a0d96f7 mark package-lock as binary il y a 7 ans
.gitignore ae01ec3958 cleanup and package updates il y a 6 ans
.travis.yml bdae55d09f test node 8 and 10 il y a 6 ans
Dockerfile 484420bbd9 Address issues with building the container on Linux vs Mac, reduce image size il y a 6 ans
LICENSE f6de4a1abe Updated readme + cleanup il y a 7 ans
README.md 0e5ed27513 Renamed mol-view mol-canvas3d, moved parameters.ts to mol-util, added mol-plugin il y a 6 ans
mol-star-proto.sublime-project 5e66ef9807 added sublime project file il y a 7 ans
package-lock.json 047463ad33 updated packages il y a 6 ans
package.json 0e5ed27513 Renamed mol-view mol-canvas3d, moved parameters.ts to mol-util, added mol-plugin il y a 6 ans
tsconfig.json 0e5ed27513 Renamed mol-view mol-canvas3d, moved parameters.ts to mol-util, added mol-plugin il y a 6 ans
tslint.json 0393a7e9b6 Tweaks il y a 7 ans
webpack.config.js d101dbaa4f packages update, use "mini-css-extract-plugin" instead of "extract-text-webpack-plugin" il y a 6 ans

README.md

License Build Status Gitter

Mol*

The goal of Mol* (/'mol-star/) is to provide a technology stack that will serve as basis for the next-generation data delivery and analysis tools for macromolecular structure data. This is a collaboration between PDBe and RCSB PDB teams and the development will be open source and available to anyone who wants to use it for developing visualisation tools for macromolecular structure data available from PDB and other institutions.

This particular project is a prototype implementation of this technology (still under development).

Project Overview

The core of Mol* currently consists of these modules:

  • 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-props Common "custom properties".
  • mol-script A scriting language for creating representations/scenes and querying (includes the MolQL query language).
  • mol-geo Creating molecular geometries.
  • mol-gl A lightweight 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-app Components for builduing UIs.
  • mol-plugin Allow to define modular Mol* plugin instances utilizing mol-state and mol-view3d.
  • mol-util Useful things that do not fit elsewhere.

Moreover, the project contains the imlementation of 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.

The project also contains performance tests (perf-tests), examples, and basic proof of concept apps (CIF to BinaryCIF converter and JSON domain annotation to CIF converter).

Previous Work

This project builds on experience from previous solutions:

Building & Running

Build:

npm install
npm run build

Build automatically on file save:

npm run watch
npm run watch-extra

Build/watch mol-viewer

Build

npm run build
npm run build-viewer

Watch

npm run watch
npm run watch-extra
npm run watch-viewer

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

Run via Docker

Build the docker image

docker build -t molstar/proto:httpd .

Run the image

docker run -d -p 80:80 molstar/proto:httpd

Code generation

CIF schemas

node build/node_modules/apps/schema-generator/schema-from-cif-dic.js -ts -o src/mol-io/reader/cif/schema/mmcif.ts --fieldNamesPath data/mmcif-field-names.csv --name mmCIF

node build/node_modules/apps/schema-generator/schema-from-cif-dic.js -ts -o src/mol-io/reader/cif/schema/ccd.ts --fieldNamesPath data/ccd-field-names.csv --name CCD

node build/node_modules/apps/schema-generator/schema-from-cif-dic.js -ts -o src/mol-io/reader/cif/schema/bird.ts --fieldNamesPath data/bird-field-names.csv --name BIRD

GraphQL schemas

node data/rcsb-graphql/codegen.js

Other scripts

Create chem comp bond table

node --max-old-space-size=8192 build/node_modules/apps/chem-comp-bond/create-table.js build/data/ccb.bcif -b

Test model server

node build/node_modules/servers/model/test.js

Contributing

Just open an issue or make a pull request. All contributions are welcome.

Roadmap

Continually develop this prototype project. As individual modules become stable, make them into standalone libraries.

Funding

Funding sources include but are not limted to:

  • RCSB PDB funding by a grant [DBI-1338415; PI: SK Burley] from the NSF, the NIH, and the US DoE