<?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: Extract the fastq sequence with range in Perl]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/34046/extract-the-fastq-sequence-with-range-in-perl?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/34046/extract-the-fastq-sequence-with-range-in-perl?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/34046/extract-the-fastq-sequence-with-range-in-perl</guid>
	<pubDate>Wed, 02 Aug 2017 04:29:06 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/34046/extract-the-fastq-sequence-with-range-in-perl</link>
	<title><![CDATA[Extract the fastq sequence with range in Perl]]></title>
	<description><![CDATA[<code>use Bio::DB::Fasta;
open(POSITIONS,&quot;positions.txt&quot;);
while(&lt;POSITIONS&gt;){
    chomp;
    my ($seqName,$begin,$end) = split(/\s/);
    my $db = Bio::DB::Fasta-&gt;new(&#039;allGenomeContacted.fa&#039;);
	my $seq = $db-&gt;seq(&quot;$seqName&quot;, $begin =&gt; $end);
	print &quot;$seq\n&quot;;
}
close(POSITIONS);</code>]]></description>
	<dc:creator>Neel</dc:creator>
</item>

</channel>
</rss>