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