Get Fasta file with Protein Sequences given a file with Genbank Ids using Perl
The following code allows you to download a protein sequence from Genbank and the store it in a fasta file.
use Bio::DB::GenBank;
my $gb=new Bio::DB::GenBank;
my $seq= $gb->get_Seq_by_id ('ADE06225');
write_sequence (">roar.fa", 'fasta',$seq );
But what if i want to make Perl download all the sequences given a file with protein Ids and then store it to a fasta file?
ADE06225
KJU84168
CEJ19818
AEG68532
......
.....
• 1,490 views
•
link
1 answer
Read the file with the ids into an array in perl.
• 0 views
•
link
Log in to answer this question.
Hello Dimitri C!
Questions similar to yours can already be found at:
We have closed your question to allow us to keep similar content in the same thread.
If you disagree with this please tell us why in a reply below. We'll be happy to talk about it.
Cheers!
PS: Do not open multiple posts for the same question.