This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Question : Plotting Per Chromosome/All Chromosome Coverage From Ngs Bam File

Hi,

I wish to plot per chromosome coverage from a BAM file obtained from aligning exome sequencing data.

Are there any good R packages/any other non-R packages that can quickly get me such plots ?

I was planning to use samtools to generate pileup files and then go on from there, however that would take a long time.

Any suggestions would be much appreciated.

Thank you.

chromosome coverage plot

3 answers

Qualimap is a very good and easy to use quality assurance tool for use on BAM files. It gives you a lot of statistics and plots, including coverage on all the chromosomes, in numbers and in plots.

http://qualimap.bioinfo.cipf.es/

Thanks. Yes, I did finally move on to Qualimap. I ran it on some small datasets and the reports look good. !

When Qualimap reports the per chromosome mean coverage, does it normalize by the size of the chromosome ? I have certain chromosomes where I always get a low coverage as compared to others ?

You can just put the depth column from mpileup into a text file and use the density() function in R to plot it. If you have to do it over and over again, write yourself a little perl script.

Log in to answer this question.