-
Notifications
You must be signed in to change notification settings - Fork 597
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
BQSR can produce tables with missing ReadGroups #6242
Comments
https://gatkforums.broadinstitute.org/gatk/discussion/11546/gatk4-error-java-lang-illegalstateexception-the-covariates-table-is-missing-readgroup is a possible example of this error. |
Is the issue fixed? I ran into the same error and after checking out GATK from GitHub and with the latest build (commit 031c407, gatk-4.1.4.1-83-g031c407-SNAPSHOT), the problem persisted. |
@shengzha Not yet, though I am working on it (this ticket will transition to the closed state when a fix has been merged). In the meantime if you have a small test case that illustrates the problem, please add it here, as that would help ensure the fix addresses the specific issue you're seeing. Thanks. |
1 similar comment
@shengzha Not yet, though I am working on it (this ticket will transition to the closed state when a fix has been merged). In the meantime if you have a small test case that illustrates the problem, please add it here, as that would help ensure the fix addresses the specific issue you're seeing. Thanks. |
@cmnbroad Thank you so much for the reply. I don't have a small test case for you, but I can provide some other information. Here is the screen dump of BaseRecalibrator and ApplyBQSR.
ApplyBQSR
|
@cmnbroad And here is the output of BaseRecalibrator. S3_2.unmapped.recal_data.csv.zip |
@shengzha In your case it looks like ApplyBQSR is failing because ALL of your input reads are being filtered out before BQSR ever sees them, due to having mapping quality 0:
|
@cmnbroad Thanks, I didn't notice that. I will check and get back to you later. |
The root cause might be irrelevant but I am still posting it in case someone is in a similar situation. I was running the GATK workflow https://github.com/gatk-workflows/gatk4-rnaseq-germline-snps-indels on a local machine and it turned out that STAR alignment
was not working fine because |
Hi, I also encounted the trable. And it looks like ApplyBQSR is failing is truelly caused by 0 reads after filtered in BQSR processing. I solved my problem in BQSR to generate recal_table. |
I still have the same issues, what can we do to get the Number of read groups must be >= 1. |
I have the same issues,but finaly I found that I made a mistake about |
BaseRecalibrator can create a recalibration table which doesn't contain all the readgroups in the input sample. Then when ApplyBQSR is run on the same file with that table it crashes with an exception.
ex:
This can happen because BaseRecalibrator used a stricter set of filters than ApplyBQSR. If all the reads in a read group are filtered in BQSR then that read group will be missing from the recalibration table and fail when running ApplyBQSR. A possible example is a readgroup that only has duplicates or secondary reads.
The text was updated successfully, but these errors were encountered: