Bio-MUST-Core
view release on metacpan or search on metacpan
lib/Bio/MUST/Core/Taxonomy.pm view on Meta::CPAN
14341435143614371438143914401441144214431444144514461447144814491450145114521453
### Loading NCBI (or GTDB) Taxonomy from binary cache file...
my
$tax_dir
= dir(
glob
$args
{tax_dir} );
my
$cachefile
= file(
$tax_dir
,
$CACHEDB
);
my
$tax
=
$class
->load(
$cachefile
,
inject
=> {
tax_dir
=>
$tax_dir
} );
### Done!
return
$tax
;
}
sub
update_cache {
my
$self
=
shift
;
my
$cachefile
= file(
$self
->tax_dir,
$CACHEDB
);
### Updating binary cache file: $cachefile->stringify
$self
->store(
$cachefile
);
### Done!
return
1;
}
( run in 0.237 second using v1.01-cache-2.11-cpan-702932259ff )