Giter VIP home page Giter VIP logo

rcsb-molstar's Introduction

npm version Changelog License

RCSB PDB implementation of Mol* (/'mol-star/). Try it here.

PDBe also maintains a flavor of Mol* called PDBe Molstar. Documentation of the parent Mol* project can be found here. See index.html for examples.

When using Mol*, please cite:

David Sehnal, Sebastian Bittrich, Mandar Deshpande, Radka Svobodová, Karel Berka, Václav Bazgier, Sameer Velankar, Stephen K Burley, Jaroslav Koča, Alexander S Rose: Mol* Viewer: modern web app for 3D visualization and analysis of large biomolecular structures, Nucleic Acids Research, 2021; https://doi.org/10.1093/nar/gkab314.

Functionality

Provides custom features used in the Mol* viewer on rcsb.org:

  • visualization of structure alignments
  • visualization of structure motifs & UI to launch structure motif queries
  • interactivity functionality to highlight and add representations for selections of a structure, used in the 3D Protein Feature View
  • bookmarkable focus representation on ligands or chains

Install

npm install @rcsb/rcsb-molstar

Building & Running

Build:

npm install
npm run build

Build automatically on file save:

npm run watch

Build with debug mode enabled:

DEBUG=molstar npm run watch

Build for 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/dist/viewer/

Prerelease

npm version prerelease # assumes the current version ends with '-dev.X'
npm publish --tag next

Release

npm version 1.X.0 # provide valid semver string
npm publish

Funding

Funding sources include but are not limited to:

rcsb-molstar's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rcsb-molstar's Issues

how to get the position of hovered residue then highlight next residue in html

!DOCTYPE html>
<html lang="en">
    <head>
    </head>
    <body>
        <div id="viewer"></div>
        <script type="text/javascript" src="./rcsb-molstar.js"></script>
        <script type="text/javascript">
  
            // create an instance of the plugin
            const viewer = new rcsbMolstar.Viewer('viewer', { })

            // load pdbId or url
            viewer.loadPdbId("1CRN");
            
            // here how to [ listen hover event to get the position of hovered residue then highlight next residue ] ? 

        </script>
    </body>
</html>

thanks~
Si

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.