checkCompatible: Apply Four-Gamete Test to check the compatibility of a pair...

Description Usage Arguments Value See Also Examples

View source: R/find_SNV_utility_functions.R

Description

This function applies the four-gamete test to the pair of SNVs defined next SNV with each SNV in current neighborhood, to check the compatability.

Usage

1
checkCompatible(current, nextSNV, hapmat)

Arguments

current

Current SNVs in the neighborhood. This starts from the focal SNV.

nextSNV

A SNV whose compatability with each SNV in the current neighborhood needs to be checked.

hapmat

A matrix of 0's and 1's, with rows representing haplotypes and columns representing SNVs.

Value

A logical vector of the same length as current with entries being TRUE if next SNV is compatible with the corresponding SNV in current and FALSE other wise;returned to findSNVs

See Also

findSNVs, fourGamete

Examples

1


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