summarizeSubtrees {alakazam}R Documentation

Generate subtree summary statistics for a tree

Description

summarizeSubtrees calculates summary statistics for each node of a tree. Includes both node properties and subtree properties.

Usage

summarizeSubtrees(graph, fields = NULL, root = "Germline")

Arguments

graph

igraph object containing an annotated lineage tree.

fields

annotation fields to add to the output.

root

name of the root (germline) node.

Value

A data.frame with columns:

An additional column corresponding to the value of field is added when specified.

See Also

See buildPhylipLineage for generating input trees. See getPathLengths for calculating path length to nodes.

Examples

# Summarize a tree
graph <- ExampleTrees[[23]]
summarizeSubtrees(graph, fields="c_call", root="Germline")


[Package alakazam version 1.3.0 Index]