Closed smgogarten closed 5 years ago
fix it in SNPRelate_1.18.1 by adding the following:
# get indexes
if (length(xx) > 2147483647)
{
# work around long vector
v <- apply(xx, 2L, function(x) which(x))
n <- lengths(v)
i <- which(n > 0L)
ii <- data.frame(i1=unlist(v[i]), i2=rep(i, times=n[i]))
} else {
ii <- which(xx, TRUE)
}
Prior to commit 442cf0b, snpgdsIBDSelection worked for very large matrices (at least up to 65k samples). Now I get the following error on an object with 55k samples: