dasmoth / dalliance

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

Allow sources to specify a CSS className for their tier. #105

Closed danvk closed 9 years ago

danvk commented 9 years ago

This is incredibly helpful if you'd like to style tracks using CSS.

dasmoth commented 9 years ago

Merged.

Would be very curious to see what you're doing with this, though!

danvk commented 9 years ago

Thanks!

We're building a debugging tool for a somatic variant caller. For each run, it shows a list of candidate variants. When you click a variant, we'd like to show the pileup view with truth/run VCF files plus healthy/tumor BAMs. We wanted it to be as much like IGV as possible. Here's how it came out:

embedded biodalliance

I'm using CSS to style the two pileup tiers w/ a max-height and overflow-y: scroll, so that the interaction is just like in IGV.