[][src]Struct ncbitaxonomy::NcbiTaxonomy

pub struct NcbiTaxonomy { /* fields omitted */ }

Methods

impl NcbiTaxonomy
[src]

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

impl Debug for NcbiTaxonomy
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]