Function to return a vector of T/F for whether a SNP is or not in a RUN
Function to return a vector of T/F for whether a SNP is or not in a RUN
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
snpInRun(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
Returns
vector of TRUE/FALSE (whether a SNP is in a RUN or NOT)