Skip to content

Commit

Permalink
Merge pull request #1 from RHReynolds/fix-skip-fastqc
Browse files Browse the repository at this point in the history
Fix skip fastqc
  • Loading branch information
drpatelh authored Feb 3, 2023
2 parents ff12a53 + 0090138 commit b3b9239
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Initial release of nf-core/dragen, created with the [nf-core](https://nf-co.re/)

### `Fixed`

- Fixed error `Access to 'FASTQC.out' is undefined since the workflow 'FASTQC' has not been invoked before accessing the output attribute` when `-skip_fastqc` enabled by adjusting channel generation

### `Dependencies`

### `Deprecated`
4 changes: 3 additions & 1 deletion workflows/dragen.nf
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,13 @@ workflow DRAGEN {
//
// MODULE: Run FastQC
//
ch_multiqc_fastqc = Channel.empty()
if (!params.skip_fastqc) {
FASTQC (
INPUT_CHECK.out.reads
)
ch_versions = ch_versions.mix(FASTQC.out.versions.first())
ch_multiqc_fastqc = FASTQC.out.zip
}

if (!params.skip_dragen) {
Expand Down Expand Up @@ -155,7 +157,7 @@ workflow DRAGEN {
ch_multiqc_files = ch_multiqc_files.mix(ch_multiqc_custom_config.collect().ifEmpty([]))
ch_multiqc_files = ch_multiqc_files.mix(ch_workflow_summary.collectFile(name: 'workflow_summary_mqc.yaml'))
ch_multiqc_files = ch_multiqc_files.mix(CUSTOM_DUMPSOFTWAREVERSIONS.out.mqc_yml.collect())
ch_multiqc_files = ch_multiqc_files.mix(FASTQC.out.zip.collect{it[1]}.ifEmpty([]))
ch_multiqc_files = ch_multiqc_files.mix(ch_multiqc_fastqc.collect{it[1]}.ifEmpty([]))

MULTIQC (
ch_multiqc_files.collect()
Expand Down

0 comments on commit b3b9239

Please sign in to comment.