Depth_Calculator: Maximum Depth and Sum of Branch Length Calculation

Depth_CalculatorR Documentation

Maximum Depth and Sum of Branch Length Calculation

Description

This function is built into the Placement_Results_Output function which generates serovar placement results data. This function calculates the maximum depth, or the distance from the MRCA to the farthest hit in the clade, and also the sum of branch lengths, or the total sum of branch lengths from each hit to the MRCA.

Usage

Depth_Calculator(Serovar, Dists, Serovar_Names)

Arguments

Serovar

A character string containing a serovar name.

Dists

A subset of the table of pairwise distances between all pairs of nodes in the phylogenetic tree. Calculated from dist.nodes (ape). This subset of pairwise distances should contain specifically the distances between the MRCA and its descendants.

Serovar_Names

A character vector of all serovar names in the set of resulting hits.

Value

A numeric vector containing the maximum depth and sum of branch lengths measured in pairwise distance.

Examples

Missing

Dogrinev/Seroplacer documentation built on Jan. 28, 2024, 11:26 p.m.