Determines the start and end positions of SNPs within a sliding window along a chromosome. Uses a two-pointer approach for efficiency.
rank2mapChr(x, windowSize)A matrix with two columns:
start: The index of the leftmost SNP within the window.
end: The index of the rightmost SNP within the window.
A numeric vector of sorted SNP positions.
The size of the genomic window in base pairs.
New from Inchworm by Stuart J.E. Baird. Implemented from diemr 1.4.2