Skip to content

chrisbarnettster/ngl_customscripts

Repository files navigation

ngl_customscripts

Scripts for sharing views of COX2 and STAT3.

Viewing COX2 and STAT3 in your web browser

  • Go to the NGL Web Application. Click on the File menu and choose Open.
  • Load one of the simple-viewer*.js scripts (you will have downloaded these from this repository).
  • Controls: Zoom with the middle mouse button. Rotate with left-click and drag. Translate with right-click and drag. Check the Help menu and choose overview for more details.
  • Select and deselect views using the left checkboxes.
  • Make more complex changes using the right hand panel.

Development

CodePen

Use CodePen, your own hosted ngl for a lot of testing (as opposed to overutilising the main ngl webserver).

HTML

<script src="https://cdn.jsdelivr.net/gh/arose/ngl@v2.0.0-dev.32/dist/ngl.js"></script>
<div id="viewport" style="width:100%; height:100%;"></div>

CSS

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
span {
  background-color: #eee;
}

JAVASCRIPT

// Create NGL Stage object
var stage = new NGL.Stage( "viewport" );
// Now paste in your awesome javascript code

NGL API

Examples

Dev ideas

  • make a map for all the selections. Iterate.
  • make a way for the selections to become boxes in a sensible way and share data
  • include linkout for drugs ajoene, DP

About

scripts for sharing views, includes cox2stat3viewer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published