prune: Remove extinct leaf nodes from the population graph

Description Usage Arguments Value

Description

To help minimize the size of a graph, prune removes nodes that both have zero abundance and are leaves (i.e., have no children). This second condition is added so that extant lineages with extinct parents aren't pruned. While more aggressive pruning is perhaps possible, this should remove most unneeded nodes over time.

Usage

1
prune(population)

Arguments

population

A mutationtree population

Value

A pruned mutationtree population


briandconnelly/mutationtree documentation built on May 13, 2019, 5:14 a.m.