-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
what(): Positions should be positive.
#212
Comments
Seems like an Rcpp issue that I have never seen before. Which |
In fact, it seems to be one of my own assertions, which I have never encountered before. Line 32 in 2768100
What is the range of the positions you're trying to read? Are there any 0s maybe? |
Thank you! I’m sorry but what does these assertions do? I’m not sure why I have non-positive pos. I assume these SNP ids are correct, and I did not specify the ind_row in the function.
|
How can I check the range of the positions? I did not specify the |
When you read the MFI files. |
I tried to validate if there is any non-positive positions, and it seems that my mfi files do NOT include any non-positive pos. I added a condition to force V3 > 0 in the subset sentence (see my code below).
I'm using R 3.6.1 on CentOS Linux 7,
I'm suspecting pos not positive is not the real issue here (based on my code above). Let me know if you have any thoughts/suggestions. Thank you, |
BTW, what is |
I think this is just checking how many SNP IDs were included. |
Yes, forget about that. |
I spent a whole day testing all different combinations of chr index and the number of cores. It seems that I encounter the same exact error message (see below) whenever chr 1 is included, even if I only use 1 core. But the program can work perfectly well when I don't include chr 1, regardless of how many scores I use.
|
So, the problem is with chromosome 1 only? |
You can compare |
Thank you! I checked and it does seem to be a data issue. The md5 checksum of chr 1 in my data set does not match that of the uk biobank website, while chr 2 to 22 do match. I'll try to re-download the data. |
I’ve been trying to use the
bigsnpr
package to read the UK Biobank genetics data, but it seems that I can’t really replicate your code. I’ve been had “positions should be positive” error although (I think) I’m using the same code as you did. Here are my code:The error message is:
My questions is: I’m using the SNP id from the original mfi files and everything looks fine, I’m not sure why the position is not positive. Any comments/suggestions would be extremely useful and appreciated!
Thank you,
Miao
The text was updated successfully, but these errors were encountered: