-
Notifications
You must be signed in to change notification settings - Fork 14
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
Error in if (any(i < 0L)) { : missing value where TRUE/FALSE needed #66
Comments
I had not heard of this error before, but it's been reported elsewhere and diagnosed as a problem with the matrix being too large. Perhaps one of your aggregate units contains too many variants; can you try splitting up the largest ones and see if that fixes the problem? |
Thank you for your response and for the link. Your suggestion that the number of variants might be too large seems accurate. My aggregate unit is a gene, and I am testing all coding sequence variants < MAF 0.01 (no additional filters) from exome sequencing data from the UK Biobank (N=~180,000) for any given gene-based aggregate test. So, I suppose the matrix of [variants x samples] for one of the genes might cause issues with matrix calculations. Could you elaborate on how I would split the largest ones - do you mean split the gene into two aggregate units and run them separately as different units? If so, is there 1) a way to combine the units together after running each split, and 2) is there some way the code could skip over any units that fail to run such that the other genes can finish? I also wonder if these issues were faced with the TOPMED data if the sample sizes are comparable to the UK Biobank data. GENESIS has been a joy to use otherwise, so kudos to your quick response. |
We were able to reproduce this error for a matrix with >2^31 elements, and added a fix in version 2.23.3 of GENESIS. |
Thanks for the bug fix. I am unfortunately still experiencing an error that seems to be due to the same issue. For a given gene (TTN), I am attempting to include 13,349 variants across 180256 individuals.
As you can see, I get the following error:
which would indicate (from doing some research for others who've ran into similar errors) this is due to to the data frame size being > 2^31 -1 (https://stackoverflow.com/questions/42479854/merge-error-negative-length-vectors-are-not-allowed) Could you please confirm you can reproduce this error? Thanks again |
I was able to reproduce this, still looking into the cause and possible fixes. |
@mconomos the error is coming from this line: https://github.com/UW-GAC/GENESIS/blob/master/R/nullModelTestPrep.R#L53
|
Hello,
I have had several issues that mimic the error (below) when trying to run GENESIS on a particular chromosome. It says there's some issue with an if statement, as stated below. In addition, it states some NA's were introduced.
Everything else seems to run fine and I have R compiled with Intel MKL libraries for matrix calculations, but for certain chromosomes / tests, I get the following error. It has been difficult to pinpoint the root of the error, but I am wondering if the authors or others could shed light on this error and how it may be avoided. I also wonder if the warning and the error are related.
Thank you,
Vamsee
The text was updated successfully, but these errors were encountered: