Can anyone help me reading the reads values from a BAM file? I need to analyse a bam file with java and PICARD, retrieving this information,but unfortunately I have no idea how to do it.
It's quite a simple, I have only to get the name and the total reads values from each gene to do some calculus with it.
Thanks in advance
Yes that it is what I wanna do. I read about the bedtools and have none idea how I can use it with the data coming from my bam files.
can you help me with some tips?
There's a very good manual.
https://docs.google.com/viewer?url=http://bedtools.googlecode.com/files/BEDTools-User-Manual.v4.pdf
coverageBed -abam myfile.bam -b genes.bed > counts.txt