buildDend: Build the tree for the window of SNVs.

Description Usage Arguments Details Value See Also Examples

View source: R/build_dend.R

Description

This function builds the perfect phylogeny for the window of SNVs which is selected from function selectWindow.

Usage

1
buildDend(snvWin, sep)

Arguments

snvWin

A list contains these three components: (1) hapMat: the data structure summerizing the SNV window. (2) focalSNV: the column number of the focal SNV at which to reconstruct the perfect phylogeny. (3) compat: the local vector of whether or not each SNV in the window is compatible with the focal SNV.

sep

A character string separator for concatenating haplotype labels in the dendrogram if they are undistingushable in the window around the focal SNV , see the arguments in reconstructPP.

Details

This function works in two stages. First, it orders the SNVs in the window, based on age for compatible SNVs and proximity to the focal SNV for incompatible SNVs. Then, it makes the perfect phylogeny for the ordered SNVs using recursive partitioning and records the partitioning.

Value

An object of class phylo.

See Also

reconstructPP, orderSNVs, makeDend

Examples

1


perfectphyloR documentation built on March 8, 2021, 9:06 a.m.