GithubHelp home page GithubHelp logo

circular-view's Introduction

circular-view

A wrapper class for JBrowse genomic circular view component for use by IGV projects. This class is tailored for IGV use cases, for general see the JBrowse project:

API

Properties

  • tracks -- Array of track property configuration objects (see below)
 [
    {
       id: string,
       name: string, 
       color: string, 
       alpha: number,
       visible: boolean
    }
 ]

Methods

  • setAssembly( {name: string, id: string, chromosomes: [{name: string, bpLength: integer, color: string} ) {

  • addChords(newChords, options = {})

    • @param newChords -- array of chord feature objects. Example:
     [
       {
         "uniqueId": "chr1:129763372-129763376_chr1:129806775-129806790",
         "color": "rgba(0, 0, 255, 0.1)",
         "refName": "1",
         "start": 129763372,
         "end": 129763376,
         "mate": {
           "refName": "2",
           "start": 129806775,
           "end": 129806790
         }
       }
     ]
    
    • @param options
     {
         id: string,       // Unique id -- optional, will be generated if absent
         name: string,    // Track name
         color: string   // Track color
      }
    
  • clearChords() -- Clear all chords and delete associated tracks

  • hideTrack( id ) -- Hide the specified track

  • showTrack( id ) -- Show the specified track

  • deleteTrack( id )

  • setTrackColor( id, color) -- Set the color of the specified track

circular-view's People

Contributors

jrobinso avatar turner avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

circular-view's Issues

SVG export

Add a button to export the SVG to a file, as we do in igv.js. I've requested an API to get the SVG from the circ view component here: GMOD/jbrowse-components#2610. However, in the absence of an API we should be able to easily get the SVG with a DOM query, there's only 1 SVG element in the circ view. Once we have that I assume we can export it.

DOM looks like this:
Screen Shot 2021-12-30 at 9 27 47 AM

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.