[Bioperl-l] MSG: acc does not exist,
but acc is OK and bioperl version is 1.2.2
Andreas Kahari
ak at ebi.ac.uk
Fri Feb 20 10:39:03 EST 2004
On Fri, Feb 20, 2004 at 10:14:40AM -0500, Vince Forgetta wrote:
[cut]
> ------------- EXCEPTION -------------
> MSG: acc does not exist
> STACK Bio::DB::WebDBSeqI::get_Seq_by_acc
> /usr/lib/perl5/site_perl/5.8.0/Bio/DB/WebDBSeqI.pm:177
>
> My code is:
>
> use Bio::DB::RefSeq;
> $gb = new Bio::DB::RefSeq;
> my $seq;
> $seq = $gb->get_Seq_by_acc('$accession');
Perl does not interpolate variables in within single quotes.
You probably want to say
$seq = $gb->get_Seq_by_acc($accession);
Cheers,
Andreas
--
| {} | Andreas Kähäri |()()|
|{}{}| EMBL, European Bioinformatics Institute | () |
| {} | Wellcome Trust Genome Campus, Hinxton |()()|
|{}{}| Cambridge, CB10 1SD | () |
| {} | United Kingdom |()()|
More information about the Bioperl-l
mailing list