wirlleyd has asked for the wisdom of the Perl Monks concerning the following question:
Hi i'm a begginer in Perl and my script don't return a correct value, please help me. Example:The id 16 should return me to the species " Homo sapiens chromosome 16 , GRCh38.p2 Primary Assembly " and nucleotide sequence.
#!/usr/bin/perl use strict; use warnings; use Bio::DB::GenBank; use Bio::SeqIO; my $output = Bio::SeqIO->new(-format=>"fasta",-file=>">output.fasta"); my $gb = Bio::DB::GenBank->new(); while(<STDIN>){ chomp; my $id = $_; my $seq = $gb->get_Seq_by_id($id); $output->write_seq($seq); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: BioPerl sequences
by kcott (Archbishop) on Jun 25, 2015 at 04:55 UTC | |
|
Re: BioPerl sequences
by kevbot (Vicar) on Jun 25, 2015 at 05:36 UTC | |
|
Re: BioPerl sequences
by erix (Prior) on Jun 25, 2015 at 06:38 UTC | |
|
Re: BioPerl sequences
by kevbot (Vicar) on Jun 26, 2015 at 04:59 UTC | |
|
Re: BioPerl sequences
by wirlleyd (Initiate) on Jun 25, 2015 at 18:18 UTC |