[BioRuby] Multi Fasta Sequence file to Genbank conversion..

Adam Kraut adamnkraut at gmail.com
Thu Sep 4 23:13:25 UTC 2008


I've never used the genbank format, but in Bioruby you could try:

include Bio

fasta = Alignment::MultiFastaFormat.new(File.open('my.fasta').read)
fasta.entries.each do |seq|
  puts seq.to_seq.output(:genbank)
end

The only tricky part is perhaps is the to_seq call for a Bio::Sequence
object which has different output format methods.
-Adam

On Thu, Sep 4, 2008 at 10:53 AM, Sharvari Gujja <sgujja at broad.mit.edu>wrote:

> Hi,
>
> I am trying to convert a multi fasta sequence file (nucleotide/protein) to
> genbank format.Is there a way to do this using Bioruby?
>
> Appreciate any input/suggestions.
>
> Thanks
> S
> _______________________________________________
> BioRuby mailing list
> BioRuby at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioruby<https://lists.open-bio.org/mailman/listinfo/bioruby>
>



More information about the BioRuby mailing list