29 Sep 07:56
exporting contigs with CDSes, stored via Bio::DB::GFF, into individual GenBank records?
From: Erich Schwarz <schwarz <at> tenaya.caltech.edu>
Subject: exporting contigs with CDSes, stored via Bio::DB::GFF, into individual GenBank records?
Newsgroups: gmane.comp.lang.perl.bio.general
Date: 2008-09-29 05:57:43 GMT
Subject: exporting contigs with CDSes, stored via Bio::DB::GFF, into individual GenBank records?
Newsgroups: gmane.comp.lang.perl.bio.general
Date: 2008-09-29 05:57:43 GMT
Hi all,
I have newly sequenced contigs, with CDS predictions, loaded
into a Bio::DB::GFF-readable format (i.e., loaded into a MySQL
database via Bio::DB::GFF). I'd like to export each contig, with
its annotated CDSes, into a single GenBank-formatted record for each
contig (in order to be able submit this stuff to GenBank, without
having to waste time with Sequin). Is there some straightforward
way of getting Bio::DB::GFF to do that?
Some time ago, when I last had to decipher BioPerl, I came up
with code that would let me export protein translations of the
contigs' CDSes in GenBank format:
-------------------------------------------------------------------
#!/usr/bin/env perl
use strict;
use warnings;
use Bio::Seq;
use Bio::SeqIO;
use Bio::DB::GFF;
my $query_database = $ARGV[0];
my $dna = q{};
my $db = Bio::DB::GFF->new( -dsn => $query_database);
my $gb_file = 'example.gb';
my $seq_out = Bio::SeqIO->new( -file => ">$gb_file", -format => 'genbank', );
(Continue reading)
RSS Feed