Skip to content

Commit 081fa26

Browse files
authored
Merge pull request #678 from nf-core/qualimap-empty-bam-fix
Qualimap empty bam fix
2 parents c4a6962 + 642cb00 commit 081fa26

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010
### `Fixed`
1111

1212
- [#666](https://github.com/nf-core/eager/issues/666) - Fixed input file staging for `print_nuclear_contamination`
13-
- [#631](https://github.com/nf-core/eager/issues/631): - Update minimum Nextflow version to 20.07.1, due to unfortunate bug in Nextflow 20.04.1 causing eager to crash if patch pulled
13+
- [#631](https://github.com/nf-core/eager/issues/631) - Update minimum Nextflow version to 20.07.1, due to unfortunate bug in Nextflow 20.04.1 causing eager to crash if patch pulled
1414
- Made MultiQC crash behaviour stricter when dealing with large datasets, as reported by @ashildv
1515
- Added note to documentation that when using `--skip_collapse` this will use _paired-end_ alignment mode with mappers when using PE data. `
16-
- [#673](https://github.com/nf-core/eager/pull/673) - Fix Kraken database loading when loading from directory instead of compressed file.
16+
- [#673](https://github.com/nf-core/eager/pull/673) Fix Kraken database loading when loading from directory instead of compressed file.
17+
- [#688](https://github.com/nf-core/eager/issues/668) - Allow pipeline to complete, even if Qualimap crashes due to an empty or corrupt BAM file for one sample/library
1718
- [#683](https://github.com/nf-core/eager/pull/683) - Sets `--igenomes_ignore` to true by default, as rarely used by users currently and makes resolving configs less complex.
1819

1920
### `Dependencies`

conf/base.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ process {
7474
}
7575

7676
withName:qualimap{
77-
errorStrategy = { task.exitStatus in [1,143,137,104,134,139] ? 'retry' : 'finish' }
77+
errorStrategy = { task.exitStatus in [1,143,137,104,134,139] ? 'retry' : task.exitStatus in [255] ? 'ignore' : 'finish' }
7878
}
7979

8080
withName:preseq {

docs/output.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,8 @@ Note that many of the statistics from this module are displayed in the General S
551551

552552
You will receive output for each *sample*. This means you will statistics of deduplicated values of all types of libraries combined in a single value (i.e. non-UDG treated, full-UDG, paired-end, single-end all together).
553553

554+
:warning: If your library has no reads mapping to the reference, this will result in an empty BAM file. Qualimap will therefore not produce any output even if a BAM exists!
555+
554556
#### Coverage Histogram
555557

556558
This plot shows on the Y axis the range of fold coverages that the bases of the reference genome are possibly covered by. The Y axis shows the number of bases that were covered at the given fold coverage depth as indicated on the Y axis.

docs/usage.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,14 @@ they are unique (e.g. if one library was sequenced on Lane 8 of two HiSeq runs,
413413
specify lanes as 8 and 16 for each FASTQ file respectively). For library merging
414414
errors, you must modify your `Library_ID`s accordingly, to make them unique.
415415
416+
### A library or sample is missing in my MultiQC report
417+
418+
In some cases it maybe no output log is produced by a particular tool for MultiQC. Therefore this sample will not be displayed.
419+
420+
Known cases include:
421+
422+
- Qualimap: there will be no MultiQC output if the BAM file is empty. An empty BAM file causes Qualimap to crash - this is crash is ignored by nf-core/eager (to allow the rest of the pipeline to continue) and will therefore have no log file for that particular sample/library
423+
416424
## Tutorials
417425
418426
### Tutorial - How to investigate a failed run

0 commit comments

Comments
 (0)