dasmoth / dalliance

Interactive web-based genome browser.
http://www.biodalliance.org/
BSD 2-Clause "Simplified" License
226 stars 68 forks source link

Feature Request: More informative Coverage Track #87

Closed ymen closed 9 years ago

ymen commented 10 years ago

Use Case

A more informative coverage track that gives basic information like % of base composition of reads at a particular base location (like IGV) will be useful for variant-calling and similar processes.

screen shot 2014-08-01 at 1 48 59 pm

Implementation

I'm currently looking at the way that features of the type density are rendering, and the process of downsampling https://github.com/dasmoth/dalliance/blob/master/js/sample.js#L93 as a model.

As a first pass, I would hope to implement a detailed-density type with a augmented DSBin data structure that stores base composition at each position in addition to read depth.

Does this sound like a reasonable approach?

dasmoth commented 9 years ago

Pull request #97 covers the back-end side of this (thanks @ymen!). To fully emulate IGV, you might want to add a featureHoverListener to show the tooltips -- but that's an option for deployers.

I somewhat wonder if it would be worth supporting a "split bar" style of histogram for this -- but that's a styling issue, and should probably be addressed as part of the new stylesheet language project.