Skip to content
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

NullPointerException error while running VariantEval #6212

Closed
justin-mbca opened this issue Oct 11, 2019 · 1 comment · Fixed by #6283
Closed

NullPointerException error while running VariantEval #6212

justin-mbca opened this issue Oct 11, 2019 · 1 comment · Fixed by #6283
Assignees
Labels

Comments

@justin-mbca
Copy link

justin-mbca commented Oct 11, 2019

Command
gatk VariantEval -eval SimpleExample.vcf.gz -O output_gatk_variantEval.txt

I got the following error

   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

   Warning: VariantEval is a BETA tool and is not yet ready for use in production

   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


14:37:10.767 INFO  VariantEval - Initializing engine
14:37:11.138 INFO  FeatureManager - Using codec VCFCodec to read file file:///Users/justinzhang/daiichi/SimpleExample.vcf.gz
14:37:11.268 INFO  VariantEval - Done initializing engine
14:37:11.278 INFO  VariantEval - Creating 3 combinatorial stratification states
14:37:11.281 INFO  ProgressMeter - Starting traversal
14:37:11.282 INFO  ProgressMeter -        Current Locus  Elapsed Minutes    Variants Processed  Variants/Minute
14:37:11.454 INFO  ProgressMeter -             unmapped              0.0                   250          87719.3
14:37:11.454 INFO  ProgressMeter - Traversal complete. Processed 250 total variants in 0.0 minutes.
14:37:11.454 INFO  VariantEval - Finalizing variant report
14:37:11.455 INFO  VariantEval - Shutting down engine
[October 11, 2019 2:37:11 PM EDT] org.broadinstitute.hellbender.tools.walkers.varianteval.VariantEval done. Elapsed time: 0.02 minutes.
Runtime.totalMemory()=386924544
**java.lang.NullPointerException**
	at org.broadinstitute.hellbender.tools.walkers.varianteval.VariantEval.getnProcessedLoci(VariantEval.java:822)
	at org.broadinstitute.hellbender.tools.walkers.varianteval.evaluators.CountVariants.finalizeEvaluation(CountVariants.java:184)
	at org.broadinstitute.hellbender.tools.walkers.varianteval.VariantEval.onTraversalSuccess(VariantEval.java:709)
	at org.broadinstitute.hellbender.engine.GATKTool.doWork(GATKTool.java:1050)
	at org.broadinstitute.hellbender.cmdline.CommandLineProgram.runTool(CommandLineProgram.java:139)
	at org.broadinstitute.hellbender.cmdline.CommandLineProgram.instanceMainPostParseArgs(CommandLineProgram.java:191)
	at org.broadinstitute.hellbender.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:210)
	at org.broadinstitute.hellbender.Main.runCommandLineProgram(Main.java:163)
	at org.broadinstitute.hellbender.Main.mainEntry(Main.java:206)
	at org.broadinstitute.hellbender.Main.main(Main.java:292)

Any help would be very appreciated!

Justin

@lbergelson
Copy link
Member

You found a bug! It looks like the code is expecting a reference or interval to be provided and since there wasn't one it's falling over. This is definitely a bug and we'll try to fix it for the next release. In the mean time, providing an interval or reference will allow it to run.

@lbergelson lbergelson added the bug label Oct 11, 2019
@droazen droazen added this to the GATK-Priority-Backlog milestone Oct 30, 2019
@droazen droazen modified the milestones: GATK-Priority-Backlog, GATK-Triaged-Issues Nov 25, 2019
lbergelson added a commit that referenced this issue Nov 25, 2019
* Fixes an NPE that happened when using certain evaluators with VariantEval and not specifying a reference or intervals
* Fixes #6212
lbergelson added a commit that referenced this issue Dec 10, 2019
* Fixes an NPE that happened when using certain evaluators with VariantEval and not specifying a reference or intervals
* Fixes #6212
lbergelson added a commit that referenced this issue Dec 18, 2019
)

* Fixes an NPE that happened when using certain evaluators with VariantEval and not specifying a reference or intervals
* Fixes #6212
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants