<?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: BioPerl to convert between sequence formats from Fasta to Genbank]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/27293/bioperl-to-convert-between-sequence-formats-from-fasta-to-genbank?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/27293/bioperl-to-convert-between-sequence-formats-from-fasta-to-genbank?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/27293/bioperl-to-convert-between-sequence-formats-from-fasta-to-genbank</guid>
	<pubDate>Wed, 11 May 2016 09:49:04 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/27293/bioperl-to-convert-between-sequence-formats-from-fasta-to-genbank</link>
	<title><![CDATA[BioPerl to convert between sequence formats from Fasta to Genbank]]></title>
	<description><![CDATA[<code>#!/usr/local/bin/perl -w

# Sequence formats to choose: Fasta, EMBL. GenBank, Swissprot, PIR and GCG

use Bio::SeqIO;

$inFile = &quot;BRCA2.fa&quot;;

$in  = Bio::SeqIO-&gt;newFh(&#039;-file&#039; =&gt; &quot;$inFile&quot; ,
                           &#039;-format&#039; =&gt; &#039;Fasta&#039;);
$out = Bio::SeqIO-&gt;newFh(&#039;-format&#039; =&gt; &#039;Genbank&#039;);
print $out $_ while &lt;$in&gt;;</code>]]></description>
	<dc:creator>Anjana</dc:creator>
</item>

</channel>
</rss>