Closed jfy133 closed 5 years ago
Yeah, we could simply add an error ignore in the base.config
to accomodate this. Or make the json
output an optional output - does it write out the other files though?
No, just the DamageProfiler log. Nothing else was in the corresponding work/
directory
I guess we can have the error ignore thing then in the next release ;-)
DamageProfiler fix appears to work in https://github.com/nf-core/eager/pull/172/commits/c3a71e8b4991673e40e231746132a6b8d8dd7170, but basically the same issue occurs with Qualimap
Can the same fix be applied?
Command error:
Failed to run bamqc
java.lang.RuntimeException: The BAM file is empty or corrupt
at org.bioinfo.ngs.qc.qualimap.process.BamStatsAnalysis.run(BamStatsAnalysis.java:529)
at org.bioinfo.ngs.qc.qualimap.main.BamQcTool.execute(BamQcTool.java:242)
at org.bioinfo.ngs.qc.qualimap.main.NgsSmartTool.run(NgsSmartTool.java:190)
at org.bioinfo.ngs.qc.qualimap.main.NgsSmartMain.main(NgsSmartMain.java:113)
Work dir:
/projects1/microbiome_calculus/RIII/04-analysis/redcomplex_mapping/output/work/db/a2c3c58bc3524406c076b30dee6bfa
Yeah fair point - actually the pipelin shouldn't fail if the output is just valid but empty...
The difference with Damageprofiler is that Qualimap this actually reports this as an error - can you get around that?
I'm wondering whether this is possible in general - maybe!
This was addressed in #172
running test now, did this fix the qualimap issue too? Or should I set that as another issue?
I did add a fix for qualimap too - both tools don't behave well with corrupt or empty data...
And indeed it is working through! Thanks!
Describe the bug
I was running an EAGER 2.0.6 run with both samples and blanks.
One of the blanks had no reads hitting to the reference genome, and at
damageprofiler
the pipeline crashed because a.json
file wasn't found, as it wasn't created bydamageprofiler
.EAGER error
damageprofiler error (last few lines)
To Reproduce
Run the pipeline with a sample that doesn't map to the reference.
Expected behavior
As damageprofiler isn't a crucial step for downstream steps, allow the pipeline to continue for other samples.