29 Aug 08:45
DB_File and assembly IO
From: Joshua Udall <jaudall <at> gmail.com>
Subject: DB_File and assembly IO
Newsgroups: gmane.comp.lang.perl.bio.general
Date: 2008-08-29 06:46:20 GMT
Subject: DB_File and assembly IO
Newsgroups: gmane.comp.lang.perl.bio.general
Date: 2008-08-29 06:46:20 GMT
Bioperl -
I'm trying to read/parse a single cap3 ace file with several thousand
contigs. I get a DB_File error at Contig247. Here's the error:
------------- EXCEPTION -------------
MSG: Unable to tie DB_File handle
STACK Bio::SeqFeature::Collection::new
/Users/jaudall/bin/src/bioperl-live/Bio/SeqFeature/Collection.pm:195
STACK Bio::Assembly::Contig::new
/Users/jaudall/bin/bioperl-live/Bio/Assembly/Contig.pm:256
STACK Bio::Assembly::IO::ace::next_assembly
/Users/jaudall/bin/src/bioperl-live/Bio/Assembly/IO/ace.pm:148
STACK toplevel /Users/jaudall/bin/read_ace.pl:214
-------------------------------------
Looking at the Collection::new, the error is on the middle line:
$self->{'_btree'} = tie %{$self->{'_btreehash'}}, 'DB_File',
$self->indexfile, O_RDWR|O_CREAT, 0640, $DB_BTREE; # or die "Cannot open
file: $!\n" ;
$self->{'_btree'} || $self->throw("Unable to tie DB_File handle");
return $self;
If I uncomment out the $! die statement that I inserted, I get this:
'Cannot open file tree: Too many open files'
Apparently the Collection constructor is creating a new index file for each
one and the handles for each are sticking around? That confuses me because
(Continue reading)
RSS Feed