snpInRunCpp: Function to return a vector of T/F for whether a SNP is or...

Description Usage Arguments Value

View source: R/RcppExports.R

Description

This is a core function. The function to determine whether a SNP is or not in a RUN. The ratio between homozygous/heterozygous windows and total n. of windows is computed here

Usage

1
snpInRunCpp(RunVector, windowSize, threshold)

Arguments

RunVector

vector of TRUE/FALSE (is a window homozygous/heterozygous?)

windowSize

size of window (n. of SNP)

threshold

threshold to call a SNP in a RUN

Value

vector of TRUE/FALSE (whether a SNP is in a RUN or NOT)


detectRUNS documentation built on Oct. 30, 2019, 11:41 a.m.