Structs§
- Named
Matrix - A named matrix for storing pairwise distances/scores with sequence names
- Scoring
Matrix - Taxon
Functions§
- add_
comment - Adds key-value comments to a node
- add_
comment_ kv - Adds key-value comments to a node
- batch_
exec - Helper function to handle batch execution of SQL statements
- check_
monophyly - connect_
txdb - Connect taxonomy.sqlite in this dir
- cosine_
similarity - dot_
product - Computes the dot product of two vectors
a
andb
. - euclidean_
distance - Computes the Euclidean distance between two vectors
a
andb
. - find_
rank - format_
subtree - format_
tree - Writes the tree with indentations
- get_
all_ descendent - All direct or indirect descendents of the Node. The ID given as argument is included in the results.
- get_
ancestor - Retrieve the ancestor
- get_
comment_ k - Retrieves value from comments of a node
- get_
descendent - All direct descendents of the Node, not a recursive fetchall
- get_
id_ comment - Get hash of id-comment
- get_
lineage - All Nodes to the root (with ID 1)
- get_
name_ id - Get hash of name-id
- get_
names - Get node names
- get_
tax_ id - Names to Taxonomy IDs
- get_
taxon - IDs to Nodes
- insert_
parent - Insert a node in the middle of the desired node and its parent
- jaccard_
intersection - Computes the Jaccard intersection of two vectors
a
andb
. The Jaccard intersection is the sum of the minimum values of corresponding elements. - jaccard_
union - Computes the Jaccard union of two vectors
a
andb
. The Jaccard union is the sum of the maximum values of corresponding elements. - match_
names - match_
positions - match_
restrict - mean
- Computes the mean (average) of a vector
a
. - norm_l2
- Computes the L2 norm (Euclidean norm) of a vector
a
. - norm_
l2_ sq - Computes the squared L2 norm of a vector
a
. - nwr_
path - nwr working path
- order_
tree_ an - Sort the children of each node by alphanumeric order of labels
- order_
tree_ list - Sort the children of each node by a list of names
- order_
tree_ nd - Sort the children of each node by number of descendants
- pearson_
correlation - Computes the Pearson correlation coefficient between two vectors
a
andb
. - read_
newick - sum
- Computes the sum of all elements in a vector
a
. - swap_
parent - Swap parent-child link of a node
- term_
to_ tax_ id - Convert terms to Taxonomy IDs Accepted forms: ID; “scientific name”; scientific_name
- weighted_
jaccard_ similarity