orderColsAncestry: Utility function needed by 'orderSNVs'

Description Usage Arguments Details Value See Also Examples

View source: R/order_SNV_utility_functions.R

Description

This function orders the compatible SNVs in the window around the focal point by their ancestry.

Usage

1

Arguments

M

hapMat object with compatible SNVs.

Details

This function sorts columns of M as binary numbers in descending order. The first row of M is the first digit of the binary numbers, the second row of M is the second digit, etc. This guarantees that more ancestral SNVs appear before more recent SNVs.

Value

A hapMat object with SNVs ordered according to their ancestry.

See Also

orderSNVs

Examples

1


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