draw.target.coverage.plot | R Documentation |
Draw target coverage plot
draw.target.coverage.plot(dir)
dir |
bedtools coverage output file should be in the same directory. File should suffix with "hist.all.txt$" |
Clone from https://gist.github.com/stephenturner/9396409 Thanks
input file from: bedtools coverage -hist -b samp.01.bam -a target_regions.bed | grep ^all > samp.01.bam.hist.all.txt or bedtools genomecov -ibam ../merge.bam -g genome.file.txt | grep ^genome > genome.cov
bedtools -g and -sorted should be noticed
Ref: http://www.gettinggeneticsdone.com/2014/03/visualize-coverage-exome-targeted-ngs-bedtools.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.