Question: (Closed) Get Fasta file with Protein Sequences given a file with Genbank Ids using Perl
gravatar for Andrea
2.9 years ago by
Andrea40 wrote:

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?

ADD COMMENTlink modified 2.9 years ago by mastal5112.0k • written 2.9 years ago by Andrea40

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.


PS: Do not open multiple posts for the same question.

ADD REPLYlink modified 2.9 years ago • written 2.9 years ago by RamRS20k
gravatar for mastal511
2.9 years ago by
mastal5112.0k wrote:

Read the file with the ids into an array in perl.

ADD COMMENTlink written 2.9 years ago by mastal5112.0k
Please log in to add an answer.
The thread is closed. No new answers may be added.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 758 users visited in the last hour