If you happen to see a question you know the answer to, please do chime in and help your fellow community members. We encourage our fourm members to be more involved, jump in and help out your fellow researchers with their questions. GATK forum is a community forum and helping each other with using GATK tools and research is the cornerstone of our success as a genomics research community.We appreciate your help!

Test-drive the GATK tools and Best Practices pipelines on Terra

Check out this blog post to learn how you can get started with GATK and try out the pipelines in preconfigured workspaces (with a user-friendly interface!) without having to install anything.

Timeout Error while using CNNScoreVariants

Hi all,
I had a question. While running CNNScoreVariants I'm getting this message:
Timeout waiting for background stream write to complete
The message pops out always in the same position at the log, but I can't say exactly what causes it since I have no output file.
The command line I use is:

/gatk  --java-options "-Xmx4g" \
  CNNScoreVariants \
  --output output.vcf  \
  -R hg19.fa \
  --tensor-type read_tensor \
  --read-validation-stringency SILENT \
  --lenient \
  --variant input.vcf
--input sample1.bam \
--input sample2.bam \
--input sample3.bam 

The 3 samples provided as bam files are the same in the VCF file and they have matching names.
The last position reported in the progress meter is always the same. See below the full error.
Any help would be appreciated! Thanks!


The exact error I get is:

02:35:15.244 INFO  ProgressMeter -       chr1:121369795            610.9                620000           1014.9
02:36:10.389 INFO  ProgressMeter -       chr1:121385379            611.8                621000           1015.0
02:37:31.393 INFO  ProgressMeter -       chr1:121404184            613.2                622000           1014.4
02:38:30.521 INFO  ProgressMeter -       chr1:121434185            614.2                623000           1014.4
02:39:30.832 INFO  ProgressMeter -       chr1:121468162            615.2                624000           1014.3
02:41:30.623 INFO  ProgressMeter -       chr1:142538024            617.2                625000           1012.7
02:43:37.629 INFO  CNNScoreVariants - Shutting down engine
[June 21, 2018 2:43:37 AM CEST] done. Elapsed time: 619.34 minutes.
org.broadinstitute.hellbender.exceptions.GATKException: Timeout waiting for background stream write to complete
    at org.broadinstitute.hellbender.utils.runtime.AsynchronousStreamWriterService.waitForPreviousBatchCompletion(
    at org.broadinstitute.hellbender.engine.VariantWalkerBase.lambda$traverse$0(
    at java.util.Iterator.forEachRemaining(
    at java.util.Spliterators$IteratorSpliterator.forEachRemaining(
    at org.broadinstitute.hellbender.engine.VariantWalkerBase.traverse(
    at org.broadinstitute.hellbender.engine.GATKTool.doWork(
    at org.broadinstitute.hellbender.cmdline.CommandLineProgram.runTool(
    at org.broadinstitute.hellbender.cmdline.CommandLineProgram.instanceMainPostParseArgs(
    at org.broadinstitute.hellbender.cmdline.CommandLineProgram.instanceMain(
    at org.broadinstitute.hellbender.Main.runCommandLineProgram(
    at org.broadinstitute.hellbender.Main.mainEntry(
    at org.broadinstitute.hellbender.Main.main(

Best Answer

  • samwellsamwell Cambridge, MA ✭✭
    Accepted Answer

    @berutti The timeouts have been removed in the latest version of the tool. If you clone the latest GATK code from the github repository this issue should be resolved. We will cut a release shortly that includes this fix as well. Sorry for the inconvenience.


Sign In or Register to comment.