hello 1nickt and kevbot,
I'm trying this code:Everything seem logic but I get this Error: Bareword "Bio::DB::GenBank" not allowed while "strict subs" in use at .... line 15.use strict; use warnings; use Bio::DB::GenBank; use File::Slurp; my @lines = read_file('sec.txt'); chomp @lines; print "@lines\n"; foreach my $id (@lines) { my $gb=Bio::DB::GenBank; my $seq = $gb->get_Seq_by_id($id); write_sequence( ">>roar.fa", 'fasta', $seq ); }
I have absolutely no idea how to fix it ....
In reply to Re^2: Get Fasta file with Protein Sequences given a file with Genbank Ids using Perl
by dimitris852
in thread Get Fasta file with Protein Sequences given a file with Genbank Ids using Perl
by dimitris852
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |