pub struct NcbiTaxonomy { /* private fields */ }

Implementations

from_ncbi_files

Reads the nodes.dmp file and names.dmp file from the NCBI Taxonomy database to generate a NcbiTaxonomy structure

Examples
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

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.