<?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: Bash script to extract intronic fragments !]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/42026/bash-script-to-extract-intronic-fragments?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/42026/bash-script-to-extract-intronic-fragments?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/42026/bash-script-to-extract-intronic-fragments</guid>
	<pubDate>Sat, 08 Aug 2020 20:07:46 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/42026/bash-script-to-extract-intronic-fragments</link>
	<title><![CDATA[Bash script to extract intronic fragments !]]></title>
	<description><![CDATA[<code>#To obtain introns, we simply need the gene and exonic coordinates; 
#by subtracting the exonic regions from the genic region, we have the intronic region.

gunzip -c genome_file.gtf.gz |
awk &#039;BEGIN{OFS=&quot;\t&quot;;} $3==&quot;gene&quot; {print $1,$4-1,$5}&#039; |
bedtools sort |
bedtools subtract -a stdin -b my_exon.bed.gz |
gzip &gt; my_intron.bed.gz</code>]]></description>
	<dc:creator>BioStar</dc:creator>
</item>

</channel>
</rss>