From: Ke J. <bio...@gm...> - 2014-07-17 16:01:47
|
Hi, I'm trying to write a callback function to color the bam alignment2 reads based on the read length. I went through the BAM/LazyFeature.js, looks like the length_on_ref parameter is what I'll be after as there was no gaps allowed in our mapping. But I'm having trouble writing the callback as I'm too fresh with javascript. Is there an example of such callback functions working with bam/alignment2? Or maybe anyone could point me to the code that define the current color scheme so I could take a look? Thanks! Ke -- Ke Jiang, Ph.D. Post-doctoral Fellow Delbruck Laboratory Cold Spring Harbor Laboratory Cold Spring Harbor, NY 11724 |