informatics-isi-edu / pdb-ihm

Deriva Protein Database Project
3 stars 1 forks source link

Molstar viewer #74

Closed brindakv closed 2 years ago

brindakv commented 2 years ago

Molstar is a web application for visualizing structures of macromolecules. For an example visualization, see here.

We can incorporate Molstar in the PDB-Dev Deriva catalog so that users can visualize the structures directly.

The software is maintained in a public Git repository.

More information on embedding Molstar viewer: https://unpkg.com/browse/molstar@3.3.1/build/viewer/

Updated js, css and html files: https://github.com/informatics-isi-edu/protein-database/tree/master/scripts/molstar

svoinea commented 2 years ago

Additional files were needed:

For example, in the file view3d.html, there is this line:

                $(document).ready(on_ready); 

The $ is defined in jquery. All those files I was able to download them from pdb-dev.wwpdb.org. However, there are still files missing. See:

errors

Current view on dev.pdb-dev.org:

molstar
brindakv commented 2 years ago

Python-ihm version is 0.23 on both staging and production catalogs.

brindakv commented 2 years ago

The issue with Molstar is in the entity table. _entity.type is of type ucode. Since we capitalize all ucode data items, we have it as POLYMER. mmCIF rules allow it. But Molstar expects this to be lowercase polymer.

brindakv commented 2 years ago

@svoinea Molstar version 3.6.1 has a fix for this issue: https://unpkg.com/browse/molstar@3.6.1/build/viewer/

Please make sure to download the raw js and css files from the link above.

brindakv commented 2 years ago

Make image smaller; move visualization next to image; make visualization larger; update name to 3D Visualization

svoinea commented 2 years ago

Done on catalog 99 under the commit # 73d0c4f.

brindakv commented 2 years ago

Update molstar panel size to 800px x 700px

3D Visualization should be allowed for the following Workflow Status: mmCIF CREATED, SUBMISSION COMPLETE, HOLD, RELEASE READY, REL

Default text to be shown for the 3D Visualization column when the structure cannot be visualized (i.e., all other status than those mentioned above): 3D Visualization is available after a compliant mmCIF file is created

svoinea commented 2 years ago

Panel size was updated to 800px x 700px. 3D Visualization is allowed now for the following Workflow Status: mmCIF CREATED, SUBMISSION COMPLETE, HOLD, RELEASE READY, REL. For the rest of the Workflow Status the text Not Available is displayed.

Currently, it is available only on catalog 99.

brindakv commented 2 years ago

Looks good on dev. Can be moved to staging and production.

svoinea commented 2 years ago

Already moved to staging and production.