makePartition: Recursively partition haplotype matrix

Description Usage Arguments Details Value See Also Examples

View source: R/make_dend_utility_functions.R

Description

This function recursively partitions the SNVs in the window around the focal SNV.

Usage

1
makePartition(hapmat, splitSNV)

Arguments

hapmat

A hapMat object with SNVs ordered according to ancestry.

splitSNV

The index of the SNV where the haplotype matrix from orderSNVs is partitioned.

Details

This function makes two clades based on splotSNV. For each partition, update splitSNV and use it to define subclades. Then, continue recursive partitioning until each partition has only one haplotype, or there are no more SNVs to consider.

Value

A nested partition of haplotypes, implemented as a list of nodes, each with two child nodes.

See Also

makeDend, newNode, noVariation

Examples

1


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