SubsetNewick: Subset a newick tree

Description Usage Arguments

View source: R/SubsetNewick.R

Description

Simplifies a newick tree by keeping only the specified subset of tips and the internal nodes joining them. Useless internal branches are merged by simple addition.

Usage

1
SubsetNewick(tipnames, newicktree)

Arguments

tipnames

A character vector with the names of the tips to keep, which must be a subset of the tip names in 'newicktree'

newicktree

The newick-format tree. Tip names (leaf node names) must not contain punctuation marks besides dashes or underscores


yh986/PhyFormat documentation built on Jan. 3, 2022, 12:50 p.m.