[Bioperl-l] New bioperl NT user
Pedro Beltrão
Pedro Beltrão <pedrobeltrao@mail.pt>
Tue, 16 Apr 2002 18:33:09 +0100
I can't seem to just open a local index for a EMBL flat file. The script is
in the same directory has the the flat file but the script returns a "No
such file or directory" error. I tryed on the same script a file open and
it goes okay.
I would appreciate any info on the problem or where to learn more about it.
Code:
#----------------------------------------------
use Bio::Index::EMBL;
my $Index_File_Name = "CALBI.embl";
my $inx = Bio::Index::EMBL->new('-filename' => $Index_File_Name);
my $out = Bio::SeqIO->new('-format' => 'Fasta','-fh' => \*STDOUT);
foreach my $id (@ARGV) {
my $seq = $inx->fetch($id); # Returns Bio::Seq object
$out->write_seq($seq);
}
------------- EXCEPTION -------------
MSG: Can't open 'SDBM_File' dbm file 'CALBI.embl' : No such file or
directory
STACK Bio::Index::Abstract::open_dbm
C:/Perl/site/lib/Bio/Index/Abstract.pm:393
STACK Bio::Index::Abstract::new C:/Perl/site/lib/Bio/Index/Abstract.pm:151
STACK Bio::Index::AbstractSeq::new
C:/Perl/site/lib/Bio/Index/AbstractSeq.pm:91
STACK toplevel parseEMBL2.pl:9
--------------------------------------
--
10Mb na sua caixa de email gratuita no mail.pt
http://www.mail.pt