Giter Site home page Giter Site logo

ngl_customscripts's Introduction

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/[email protected]/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

ngl_customscripts's People

Contributors

chrisbarnettster avatar

Watchers

 avatar  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.