Skip to content
/ icn3d Public
forked from ncbi/icn3d

Client-side structure viewer

License

Notifications You must be signed in to change notification settings

silky/icn3d

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iCn3D Structure Viewer

iCn3D

"I see in 3D" (iCn3D) Structure Viewer is a WebGL-based 3D viewer using three.js and jquery. It is based on the 3D styles of GLmol and iview. Here are some of the added features: picking atoms, selecting residues, shiny material for displaying, improved labeling, saving state, etc.

We provided two versions of iCn3D widgets: simple interface and advanced interface. Both widgets can be easily added to web pages.

  1. The simple interface has the minimum javascript code for the interface and is easy to understand. It has the basic features to change color and styles.
  2. The advanced interface has a library for the interface and is more complicated to understand. It has many features.

Usage

Please see the help page to embed iCn3D in your page.

Third party Libraries used

  • JQuery and JQuery UI: used as a general tool to write Javascript code. Some JQuery UI features are used.
  • Three.js: used to set up the 3D view.

Tools based on

  • iview: iCn3D is mainly based on iview.
  • GLmol: Some features (such as drawing cartoons for nucleotides) are from GLmol.

Building

You should be able to run this out-of-the-box after cloning it, as long as you're attempting to view the files through a web server.

To build the concatenated, minified files, make sure you have Node.js and npm installed, and then perform the following setup steps in your working copy of icn3d.

npm install -g gulp
npm install

The first line installs the gulp build tool globally, making the gulp command available on the command line. The next line installs all of the dependences for this project.

You only have to perform the above steps once, to set up your working directory. From then on, to build, simply enter:

gulp

Then, serve the site from an HTTP server, to test it. If you don't have one readily available, one option is to install the http-server app, and run it, with:

npm install -g http-server
http-server

You should then be able to see the help page from http://localhost:8080/icn3d.html.

Run gulp help to get a list of the available tasks.

Change log

This is a beta release. Please send all comments to wangjiy@ncbi.nlm.nih.gov.

About

Client-side structure viewer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.6%
  • HTML 10.1%
  • CSS 0.3%