<?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: Genome Covered !]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/36254/genome-covered?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/36254/genome-covered?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/36254/genome-covered</guid>
	<pubDate>Tue, 17 Apr 2018 14:13:05 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/36254/genome-covered</link>
	<title><![CDATA[Genome Covered !]]></title>
	<description><![CDATA[<code>zero=$(bedtools genomecov -ibam BAM -g hg38.fasta -bga | awk &#039;$4==0 {bpCountZero+=($3-$2)} {print bpCountZero}&#039; | tail -1)

nonzero=$(bedtools genomecov -ibam BAM -g hg38.fasta -bga | awk &#039;$4&gt;0 {bpCountNonZero+=($3-$2)} {print bpCountNonZero}&#039; | tail -1)

percent=$(bc &lt;&lt;&lt; &quot;scale=6; ($nonzero / ($zero + $nonzero))*100&quot;)

echo $percent</code>]]></description>
	<dc:creator>Neel</dc:creator>
</item>

</channel>
</rss>