GithubHelp home page GithubHelp logo

molecule-visualizer's Introduction

Molecule Visualizer

A 3D visualizer for PDB format molecular structures.

The live demo can be seen here.

A rendering of a proline molecule

How To Use

The camera controls follow the OrbitControls conventions (see this page for details) and can be controlled with combinations of mouse, keyboard (including ctrl keys) and one/two finger touch.

Selecting a Molecule

The molecule shown by default is human insulin.
To select a different molecule:

  • Obtain the PDB file for the desired molecule (for example, by searching the RCSB Protein Data Bank)
  • Copy a single model (see Known Limitations) from the file's contents
  • Paste the single model into the live demo's upper form
  • Press the "Click to update scene" button.

Non-default Chemical Components

To provide bond data for chemical components other than the basic amino acids (which are already provided by default):

  • Go to the PDB HET Dictionary
  • Select the component by three-character name (e.g. https://files.wwpdb.org/pub/pdb/data/monomers/HPR)
  • Copy the contents of the selected file
  • Append it to the live demo's lower form
    • Be careful not to erase other component definitions that are still needed
  • Repeat for other component definitions
  • When all component definitions have been added, press the "Click to update scene" button.

Known Limitations

  • Does not automatically load chemical component definitions or flag definitions that are missing
  • Does not gracefully handle multiple models (behavior is undefined, but will likely superimpose both)
  • Does not attempt to infer the locations of hydrogen atoms that are present in the chemical components but not the PDB file
  • Does not label, color code, or otherwise distinguish the constituent atoms/residues/chains
  • Does not specially handle HELIX or SHEET annotations
  • May render all alternate locations of a given atom concurrently, rather than filtering to a single altLoc
  • Does not currently parse mmCIF for molecules or components
  • Does not currently support other camera control schemes

molecule-visualizer's People

Contributors

russ741 avatar

Stargazers

 avatar

Watchers

 avatar

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.