7
bp_translate_seq - translates a sequence
11
bp_translate_seq E<lt> cdna_cds.fa E<gt> protein.fa
15
The script will translate one fasta file (on stdin) to protein on stdout
21
User feedback is an integral part of the evolution of this and other
22
Bioperl modules. Send your comments and suggestions preferably to
23
the Bioperl mailing list. Your participation is much appreciated.
25
bioperl-l@bioperl.org - General discussion
26
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
30
Report bugs to the Bioperl bug tracking system to help us keep track
31
of the bugs and their resolution. Bug reports can be submitted via
34
https://redmine.open-bio.org/projects/bioperl/
38
Ewan Birney E<lt>birney@ebi.ac.ukE<gt>
45
my ($format) = 'fasta';
48
'format:s' => \$format,
51
my $oformat = 'fasta';
53
# this implicity uses the <> file stream
54
my $seqin = Bio::SeqIO->new( -format => $format, -file => shift);
55
my $seqout = Bio::SeqIO->new( -format => $oformat, -file => ">-" );
58
while( (my $seq = $seqin->next_seq()) ) {
59
my $pseq = $seq->translate();
60
$seqout->write_seq($pseq);