Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
NGL Viewer for molecule representation #3601
This Pull Request includes the NGL viewer for visualizing molecular structures like PDB. It uses WebGL to exhibit 2D/3D molecular structures and offers an array of intriguing representations. It is available as charts in the Galaxy.
Here are some representations of PDB molecules using NGL viewer:
There are multiple display modes like representation with axes (Axes), secondary structure abstraction (Cartoon), bonds and atoms shown as cylinders and spheres respectively (Ball+Stick), lines for bonds (Line) and many more. More information can be read here.
There is a list of rich color schemes like Uniform, Random, Polymer, Hydrophobicity and so on to display a representation in multiple shades.
The background color of the viewer can be chosen as either light or dark. The radius of a representation can be chosen using a slider. Moreover, any representation can be rotated on an axis by turning on the spin feature.
To run the NGL viewer, it requires a browser to support WebGL (which is accessible in current browser versions. More information about WebGL support in browsers can be found out here).
The source code of this library is at here.