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.

DepthOfCoverage fails with java.lang.ArithmeticException: / by zero

AsmaAsma Member, Broadie

I get the following error while executing DepthOfCoverage:

Arguments: -T DepthOfCoverage -R /seq/regev_genome_portal/RESOURCES/human/Hg19/Hg19.fa -I /broad/hptmp/bankapur/RNASEQC_STAR/Aligned.sortedByCoord.out.bam.wrg.bam.resorted.bam.dups_marked.bam -o /broad/hptmp/bankapur/RNASEQC_STAR/sample/highexpr//perBaseDoC.out -L /broad/hptmp/bankapur/RNASEQC_STAR/sample/highexpr/intervals.list -l ERROR
Arguments Array: [-T, DepthOfCoverage, -R, /seq/regev_genome_portal/RESOURCES/human/Hg19/Hg19.fa, -I, /broad/hptmp/bankapur/RNASEQC_STAR/Aligned.sortedByCoord.out.bam.wrg.bam.resorted.bam.dups_marked.bam, -o, /broad/hptmp/bankapur/RNASEQC_STAR/sample/highexpr//perBaseDoC.out, -L, /broad/hptmp/bankapur/RNASEQC_STAR/sample/highexpr/intervals.list, -l, ERROR]
GATK command result code: 0
Depth of Coverage run time: 0 min
... GATK Depth of Coverage Analysis DONE
Loading transcripts
Splitting intervals into transcript-oriented DoC files
Indexing DoC result file: /broad/hptmp/bankapur/RNASEQC_STAR/sample/lowexpr//perBaseDoC.out: 0 s
Finding DoC results per transcript
DoC Results by interval have been mapped back to the transcripts: /broad/hptmp/bankapur/RNASEQC_STAR/sample/lowexpr//perBaseDoC.out: 0 s
Mapped intervals back to transcripts: 0 s
java.lang.ArithmeticException: / by zero
at org.broadinstitute.cga.rnaseq.PerBaseDoC.scale(
at org.broadinstitute.cga.rnaseq.PerBaseDoC.calculateAverageCoverageByNormalizedPosition(
at org.broadinstitute.cga.rnaseq.PerBaseDoC.interpretAndOutputDoCResults(
at org.broadinstitute.cga.rnaseq.PerBaseDoC.createReports(
at org.broadinstitute.cga.rnaseq.PerBaseDoC.createReports(
at org.broadinstitute.cga.rnaseq.RNASeqMetrics.runMetrics(
at org.broadinstitute.cga.rnaseq.RNASeqMetrics.execute(
at org.broadinstitute.cga.rnaseq.RNASeqMetrics.main(
RNA-SeQC Total Runtime: 2 min

Note, the perBaseDoC.out is empty. What do you think is going wrong here?
Thank you,


Sign In or Register to comment.