This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Very Lightweight And Fast Genomic Bed Viewer

I deal a lot with bed files on hg19. Is there a very lightweight, no fuss, very fast viewer to do:

./viewer [bed file in] [pdf file out]

and you could view distribution of the ranges in the pdf file similar to something like this: http://cistrome.dfci.harvard.edu/CaSNP/gscore/ I do not want to open a graphical user interface for a genome browser each time I apply a tiny little filter.

genome r browser visualization

What do you mean by "distribution of ranges"? A histogram of feature sizes? Or each line in the BED file placed on a chromosome? Can you give an example of what you want to have in the PDF?

They are all R packages, hasn't someone build either a wrapper or something faster and easier to use ?

2 answers

Dear myself, It's me, you.

I made this for you: https://github.com/grenaud/bedBamAndBeyond

That creates images as such: https://github.com/grenaud/bedBamAndBeyond/blob/master/example.png

It has some horrible inefficiencies in the code that I will clean at some point. It should allow for BAM files as well.

Have fun with it.

You

neat stuff - I've also learned about the existence and usage of libHaru pdf library

what you could do is use something like Casper JS to load into a headless browser that can also screenshot anything.

The bonus is that you can use commonly used websites, navigate the pages and do all sorts of fancy things

Log in to answer this question.