Tests if a segment is in Run-of-Homozygosity (ROH).
# S3 method for numeric
testROH(muN, csN=NULL, betaN=NULL, minNbrOfSnps=1, delta=1/12, ..., verbose=FALSE)Returns a logical.
An numeric vector of J genotype calls in
{0,1/2,1} for AA, AB, and BB, respectively,
and NA for non-polymorphic loci.
(optional) A numeric vector of J genotype confidence scores.
If NULL, ad hoc scores calculated from betaN are used.
(optional) A numeric vector of J matched normal BAFs
in [0,1] (due to noise, values may be slightly outside as well)
or NA for non-polymorphic loci.
Minimum number of SNPs required to test segment.
If not tested, NA is returned.
A double scalar specifying the maximum (weighted)
proportion of heterozygous SNPs allowed in an ROH region.
Not used.
See Verbose.
Pierre Neuvial, Henrik Bengtsson