This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How To Plot The Coverage Of A Region In The Genome

HI,

I would like to plot the coverage distribution of the targeted region and the genome. For this i have used genomeCoverageBed and coverageBed functions from Bedtools and got the output from the two functions.

Could some one suggest a way or Rscript to plot 1. coverage distribution for target region (X-axis:depths=1,5,10... and Yaxis:fraction of target bases covered)

  1. coverage for genome (X-axis:depths=1,5,10... and Yaxis:fraction of target bases covered)

from the Bedtools outptut?

coverage next-gen

how exactly your data (to be R input) looks like?

1 answer

See the GenomicRanges package for dealing with aligned reads and regions. In particular, you may find the coverage() function useful.

But, working in R with huge datasets needs huge memory and time. So is there any alternate way?

Log in to answer this question.