<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[BOL: Generates a genome coverage plot with R]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/37740/generates-a-genome-coverage-plot-with-r?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/37740/generates-a-genome-coverage-plot-with-r?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/37740/generates-a-genome-coverage-plot-with-r</guid>
	<pubDate>Wed, 19 Sep 2018 02:44:42 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/37740/generates-a-genome-coverage-plot-with-r</link>
	<title><![CDATA[Generates a genome coverage plot with R]]></title>
	<description><![CDATA[<code>library(CoverageView)

##draw a coverage plot for a test case BAM file
  
#get a BAM test file
treatBAMfile&lt;-system.file(&quot;extdata&quot;,&quot;treat.bam&quot;,package=&quot;CoverageView&quot;)
  
#create the CoverageBamFile object
trm&lt;-CoverageBamFile(treatBAMfile)
  
#draw the plot
genome.covplot.depth(trm,outfile=&quot;test.png&quot;)
  
#draw the plot setting the max_depth parameter (70X in this case)
genome.covplot.depth(trm,outfile=&quot;test.png&quot;,max_depth=70)
  
##draw two overlapping coverage plots for two different test BAM files
  
#get a first BAM test file
treatBAMfile&lt;-system.file(&quot;extdata&quot;,&quot;treat.bam&quot;,package=&quot;CoverageView&quot;)
#create the CoverageBamFile object
trm&lt;-CoverageBamFile(treatBAMfile)
  
#get a second BAM test file
ctrlBAMfile&lt;-system.file(&quot;extdata&quot;,&quot;ctrl.bam&quot;,package=&quot;CoverageView&quot;)
#create the CoverageBamFile object
ctl&lt;-CoverageBamFile(ctrlBAMfile)

#create a list with the two files
input_d=list(trm,ctl)
  
#draw the plot
genome.covplot.depth(input_d,outfile=&quot;test.png&quot;)</code>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink='true'>https://bioinformaticsonline.com/snippets/view/37740/generates-a-genome-coverage-plot-with-r#item-annotation-3487</guid>
	<pubDate>Wed, 19 Sep 2018 02:49:09 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/37740/generates-a-genome-coverage-plot-with-r#item-annotation-3487</link>
	<title><![CDATA[Comment by Jit]]></title>
	<description><![CDATA[<p>Tutorial at https://bioconductor.org/packages/devel/bioc/vignettes/CoverageView/inst/doc/CoverageView.pdf</p>]]></description>
	<dc:creator>Jit</dc:creator>
</item>

</channel>
</rss>