pub struct NcbiTaxonomy { /* fields omitted */ }
from_ncbi_files
Reads the nodes.dmp
file and names.dmp
file from the NCBI Taxonomy database to
generate a NcbiTaxonomy structure
use ncbitaxonomy::*;
let taxonomy = NcbiTaxonomy::from_ncbi_files("data/nodes.dmp", "data/names.dmp");
contains_id
check whether the taxonomy contains a (number) ID
contains_name
check whether the taxonomy contains a node with the specified name
note: the name used is what is reported as a the 'scientific name' in the NCBI Taxonomy database.
synonyms are currently not supported
is_descendant
check if a certain named node is a descendant of another named named
get_node_by_id
get a NodeId from a numeric NCBI Taxonomy ID
traversal
traverse the tree nodes (in depth first order) from the node with a given NCBI Taxonomy ID
get_id_by_node
get the NCBI Taxonomy ID held by the node with a given NodeId
get_name_by_id
get the scientific name associated with a given NCBI Taxonomy ID
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static