Crate mibig_taxa

Crate mibig_taxa 

Source
Expand description

NCBI taxdump handling for MIBiG

§Usage

To build a taxon cache, use TaxonCache:

use std::path::PathBuf;
use mibig_taxa::TaxonCache;

let cachefile = PathBuf::from("path/to/cache");
let taxdump = PathBuf::from("path/to/rankedlineage.dmp");
let mergeddump = PathBuf::from("path/to/merged.dmp");
let datadir = PathBuf::from("path/to/mibig/jsons/");

let mut taxon_cache = TaxonCache::new();
taxon_cache.initialise_from_paths(taxdump, mergeddump, datadir)?;
taxon_cache.save_path(&cachefile)?;

Re-exports§

pub use crate::errors::MibigTaxonError;
pub use crate::mibig::TaxonCache;
pub use crate::taxa::NcbiTaxEntry;

Modules§

errors
MIBiG taxa error definitions
mibig
Library implementation
taxa
Taxonomy helper classes