get_path_distance: Get the distance of a path on tree in graph form.

Description Usage Arguments Value

View source: R/get_path_distance_function.R

Description

This function returns the path distance between node and tip on a rooted tree, in a root to tip direction.

Usage

1
get_path_distance(graph_tree, root, node, input_tree)

Arguments

graph_tree

A rooted tree of newick format, converted into graph form by igraph.

root

A node in the graph you want to begin the path.

node

Target node.

input_tree

A rooted newick tree - class "phylo".

Value

The SNP distance between given root and node.


alexwailan/maria documentation built on Sept. 29, 2020, 9:37 a.m.