[][src]Crate fastax

Modules

tree

Structs

Node

Functions

get_lca

Get the Last Common Ancestor (LCA) of node1 and node2.

get_node

Fetch from the database the node that corresponds to the given term and return it. If the term does not correspond to a Node, an error is returned.

get_nodes

Fetch from the database the nodes that correspond to the given terms and return them. If any of the term does not correspond to a Node, an error is returned.

make_lineages

Make the lineage for each of the given nodes.

make_subtree

Make the sub-tree with the given root as root. If species is true, then doesn't include in the resulting tree the nodes that are below nodes ranked as species (such as subspecies).

make_tree

Make the tree with the Root as root and the given nodes as leaves. Any given node that is not a leaf (because another given node is in its sub-tree) is kept is the returned tree.

populate_db

Populate the local taxonomy DB at datadir while sending email to the NCBI FTP servers.