Coder Social home page Coder Social logo

biojviz-ideogram's Introduction

Ideogram

A jviz module to build an ideogram.

Installation

Use the jviz CLI for installing this module:

jviz install ideogram

Reference

  • Options: a compilation with all the options that you can provide to the ideogram constructor.
  • API: all the commands to manipulate the ideogram.
  • Events: the ideogram module emits events when the user interacts with the tool. Here we present all the events available.

Options

API

ideogram.chromosome(index)

Open the provided chromosome. The index argument must be a string with the chromosome name.

ideogram.getChromosomes()

Return an array with all the chromosomes.

ideogram.getRegions(name)

Return an array with all the regions for a given chromosome. The name argument must be an string with the name of the wanted chromosome.

ideogram.getMarks(name)

Return an array with the marked regions. The name argument must be an string with the name of the wanted chromosome.

Events

ideogram.on('click:chromosome', handler)

Emit the handler function when the user clicks on a chromosome on the ideogram. The handler function will be called with the following arguments:

  • name: the chromosome name.
  • index: the index of the chromosome on the genome list.

ideogram.on('click:region', handler)

Emit the handler function when the user clicks on a region. The handler function will be called with the following arguments:

  • name: region name.
  • chromosome: chromosome where the region is located.
  • start: region start position.
  • end: region end position.

ideogram.on('click:btn:preview', handler)

Emit the handler function when the user clicks on the preview button.

ideogram.on('click:btn:table', handler)

Emit the handler function when the user clicks on the table button.

License

MIT LICENSE © The Jviz Team.

biojviz-ideogram's People

Contributors

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