Skip to content
This repository was archived by the owner on Jan 27, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

- [#646](https://github.com/SciLifeLab/Sarek/pull/646) - Update [`pathfindr`](https://github.com/NBISweden/pathfindr) submodule

### `Fixed`

- [#657](https://github.com/SciLifeLab/Sarek/pull/657) - Fix `RunMultiQC.nf` bug

## [2.2.0] - Skårki - 2018-09-21

### `Added`
Expand Down
28 changes: 14 additions & 14 deletions runMultiQC.nf
Original file line number Diff line number Diff line change
Expand Up @@ -50,28 +50,28 @@ process GetVersionAll {
publishDir directoryMap.multiQC, mode: 'link'

input:
file(versions) from Channel.fromPath("${directoryMap.version}/*").collect()
file(versions) from Channel.fromPath("${directoryMap.version}/*").collect().ifEmpty(file ("empty"))

output:
file ("tool_versions_mqc.yaml") into versionsForMultiQC
file ("tool_versions_mqc.yaml") into versionsForMultiQC

when: !params.noReports

script:
"""
bcftools version > v_bcftools.txt
bcftools version > v_bcftools.txt 2>&1 || true
bwa &> v_bwa.txt 2>&1 || true
configManta.py --version > v_manta.txt
configureStrelkaGermlineWorkflow.py --version > v_strelka.txt
echo "${params.version}" &> v_sarek.txt
echo "${workflow.nextflow.version}" &> v_nextflow.txt
fastqc -v > v_fastqc.txt
freebayes --version > v_freebayes.txt
gatk ApplyBQSR --help 2>&1 | grep Version: > v_gatk.txt
multiqc --version &> v_multiqc.txt
qualimap --version &> v_qualimap.txt
samtools --version &> v_samtools.txt
vcftools --version > v_vcftools.txt
configManta.py --version > v_manta.txt 2>&1 || true
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be much harder to spot errors with MultiQC if we ignore all potential version fetching errors, no?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it doesn't really matter, because, if a tool is failing, it will be seen when we're really using the tool, not when we want to check its version.
Worst case scenario here, we won't have it display properly.

configureStrelkaGermlineWorkflow.py --version > v_strelka.txt 2>&1 || true
echo "${params.version}" &> v_sarek.txt 2>&1 || true
echo "${workflow.nextflow.version}" &> v_nextflow.txt 2>&1 || true
fastqc -v > v_fastqc.txt 2>&1 || true
freebayes --version > v_freebayes.txt 2>&1 || true
gatk ApplyBQSR --help 2>&1 | grep Version: > v_gatk.txt 2>&1 || true
multiqc --version &> v_multiqc.txt 2>&1 || true
qualimap --version &> v_qualimap.txt 2>&1 || true
samtools --version &> v_samtools.txt 2>&1 || true
vcftools --version &> v_vcftools.txt 2>&1 || true

scrape_tool_versions.py &> tool_versions_mqc.yaml
"""
Expand Down