This is a core function. The functions to detect RUNS are slid over the genome
slidingWindow(data, gaps, windowSize, step, maxGap, ROHet = TRUE,
maxOppositeGenotype = 1, maxMiss = 1)vector of 0/1/2 genotypes
vector of differences between consecutive positions (gaps) in bps
size of window (n. of SNP)
by which (how many SNP) is the window slid
max distance between consecutive SNP in a window to be still considered a potential run
shall we detect ROHet or ROHom?
max n. of homozygous/heterozygous SNP
max. n. of missing SNP
vector of TRUE/FALSE (whether a window is homozygous or NOT)