subset_tree: Subset the taxonomy tree from leaves

View source: R/ncbitree.R

subset_treeR Documentation

Subset the taxonomy tree from leaves

Description

Retrieves a sub-tree from the taxonomy tree.

Usage

subset_tree(leaf_tax_id, nodes.dmp)

Arguments

leaf.tax.id

a vector of tax_id (integers) of the branch leaf/leaves.

nodes.dmp

a nodes.dmp table.

Details

This function retrieves a sub-tree by starting at the vector of specified leaf_tax_id and collect all branches ending at these nodes. Thus, it will in general not be a clade. If you want to subset an entire clade, see subset_clade.

Value

A subset of the table nodes.dmp containing the tax_id's of the branches ending at leaf_tax_id.

Author(s)

Lars Snipen.

See Also

read_nodes_dmp, subset_clade.


larssnip/microclass documentation built on Nov. 1, 2023, 2:39 p.m.