Closed simecek closed 5 years ago
scanone.perm fails on my data giving me error
Error in probs[females, , X.snps] : subscript out of bounds
I believe the problem occurs when there is more that one column incl. "sex" (like "Age:SexM"). I suggest to replace line 86
sex.col = grep("sex", colnames(addcovar), ignore.case = TRUE)
by
sex.col = grep("^sex", colnames(addcovar), ignore.case = TRUE)
as in scanone or even better
scanone
sex.col = grep("sex", colnames(addcovar), ignore.case = TRUE)[1]
scanone.perm fails on my data giving me error
I believe the problem occurs when there is more that one column incl. "sex" (like "Age:SexM"). I suggest to replace line 86
by
as in
scanone
or even better