<?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: Coverage / Depth of reads !]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/36256/coverage-depth-of-reads?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/36256/coverage-depth-of-reads?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/36256/coverage-depth-of-reads</guid>
	<pubDate>Tue, 17 Apr 2018 14:18:44 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/36256/coverage-depth-of-reads</link>
	<title><![CDATA[Coverage / Depth of reads !]]></title>
	<description><![CDATA[<code># get total number of bases covered at MIN_COVERAGE_DEPTH or higher
samtools mpileup mapping_result_sorted.bam | awk -v X=&quot;${MIN_COVERAGE_DEPTH}&quot; &#039;$4&gt;=X&#039; | wc -l
32876

# get length of reference genome
bowtie2-inspect -s refgenome | awk &#039;{ FS = &quot;\t&quot; } ; BEGIN{L=0}; {L=L+$3}; END{print L}&#039;
45678</code>]]></description>
	<dc:creator>Neel</dc:creator>
</item>

</channel>
</rss>