sortTaxaFromTree: Get sorted supertaxon list based on a rooted taxonomy tree

View source: R/parsePhylotree.R

sortTaxaFromTreeR Documentation

Get sorted supertaxon list based on a rooted taxonomy tree

Description

Get sorted supertaxon list based on a rooted taxonomy tree

Usage

sortTaxaFromTree(tree)

Arguments

tree

an "phylo" object for a rooted taxonomy tree

Value

A list of sorted taxa obtained the input taxonomy tree.

Author(s)

Vinh Tran tran@bio.uni-frankfurt.de

See Also

ppTaxonomyMatrix for a demo taxonomy matrix data

Examples

data("ppTaxonomyMatrix", package = "PhyloProfile")
# create taxonomy tree rooted by ncbi10090
tree <- createUnrootedTree(ppTaxonomyMatrix)
rootedTree <- ape::root(tree, outgroup = "ncbi10090", resolve.root = TRUE)
# get taxon list sorted from tree
sortTaxaFromTree(rootedTree)

BIONF/PhyloProfile documentation built on Dec. 18, 2024, 7:33 a.m.