0.1.1 • Published 5 years ago

higlass-range v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

HiGlass Range Track

A track for plotting ranges in HiGlass

HiGlass Demo Build Status code style prettier

HiGlass

Live Demo: https://higlass.github.io/range-track

Note: This is the source code for range track only! You might want to check out the following repositories as well:

Installation

npm install higlass-range

Usage

  1. Make sure you load the range track prior to hglib.js. E.g.:
<script src="higlass-range.js"></script>
<script src="hglib.js"></script>
<script>
  ...
</script>
  1. Configure the track in the view config.
{
  top: [
    {
      server: 'http://higlass.io/api/v1',
      tilesetUid: 'PjIJKXGbSNCalUZO21e_HQ',
      uid: 'range',
      type: 'range',
      options: {
        mode: 'whisker',
        resolution: 10
      }
    }
  ],
  ...
}

Take a look at example/index.html for an example.

  1. You did it! We're so proud of you 🎉. You are truly the best!

  2. If you are curious about all the available options, please see the table below:

NameDescriptionDefaultType
modeRange mode. Can either be minMax or whiskerminMaxstring
resolutionNumber of data point to aggregate into one bar1number
minMaxColorColor of the min-max range barblackstring
minMaxOpacityOpacity of the min-max range bar0.66number
minColorColor of the min whisker lineblackstring
minOpacityOpacity of the min whisker line1number
maxColorColor of the max whisker lineblackstring
maxOpacityOpacity of the max whisker line1number
meanColorColor of the mean whisker lineblackstring
meanOpacityOpacity of the mean whisker line1number
stdFillColorFill color of the std body of the whisker plotwhitestring
stdFillOpacityOpacity of the fill color of std body of the whisker plot1number
stdStrokeColorColor of the std border of the whisker plotblackstring
stdStrokeOpacityOpacity of the std border of the whisker plot1number
vLineColorColor of the vertical line of the whisker plotblackstring
vLineOpacityOpacity of the vertical line of the whisker plot1number

Development

Installation

$ git clone https://github.com/higlass/range-track && range-track
$ npm install

Commands

Developmental server: npm start Production build: npm run build

0.1.1

5 years ago

0.1.0

5 years ago