Skip to content

Commit a29c938

Browse files
eliminate NORMALIZE and QUALITY_CONTROL subworkflows
1 parent 0ac024e commit a29c938

File tree

7 files changed

+11
-182
lines changed

7 files changed

+11
-182
lines changed

subworkflows/local/normalize/main.nf

Lines changed: 0 additions & 19 deletions
This file was deleted.

subworkflows/local/normalize/tests/main.nf.test

Lines changed: 0 additions & 31 deletions
This file was deleted.

subworkflows/local/normalize/tests/main.nf.test.snap

Lines changed: 0 additions & 31 deletions
This file was deleted.

subworkflows/local/quality_control/main.nf

Lines changed: 0 additions & 18 deletions
This file was deleted.

subworkflows/local/quality_control/tests/main.nf.test

Lines changed: 0 additions & 36 deletions
This file was deleted.

subworkflows/local/quality_control/tests/main.nf.test.snap

Lines changed: 0 additions & 38 deletions
This file was deleted.

workflows/nanostring.nf

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ ch_heatmap_genes_to_filter = params.heatmap_genes_to_filter ? Channel.fromPat
1717
// SUBWORKFLOWS: Consisting of a mix of local and nf-core/modules
1818
//
1919
include { methodsDescriptionText } from '../subworkflows/local/utils_nfcore_nanostring_pipeline'
20-
include { QUALITY_CONTROL } from '../subworkflows/local/quality_control'
21-
include { NORMALIZE } from '../subworkflows/local/normalize'
2220
include { COMPUTE_GENE_SCORES_HEATMAP } from '../subworkflows/local/compute_gene_scores_heatmap'
2321

2422
//
@@ -36,12 +34,15 @@ include { CREATE_ANNOTATED_TABLES } from '../modules/local/create_annotated_tabl
3634
// MODULE: Installed directly from nf-core/modules
3735
//
3836
include { MULTIQC } from '../modules/nf-core/multiqc/main'
37+
include { NACHO_NORMALIZE } from '../modules/nf-core/nacho/normalize/main'
38+
include { NACHO_QC } from '../modules/nf-core/nacho/qc/main'
3939

4040
include { paramsSummaryMap } from 'plugin/nf-schema'
4141

4242
include { paramsSummaryMultiqc } from '../subworkflows/nf-core/utils_nfcore_pipeline'
4343
include { softwareVersionsToYAML } from '../subworkflows/nf-core/utils_nfcore_pipeline'
4444

45+
4546
/*
4647
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4748
RUN MAIN WORKFLOW
@@ -73,23 +74,24 @@ workflow NANOSTRING {
7374
//
7475
// SUBWORKFLOW: Quality control of input files
7576
//
76-
QUALITY_CONTROL (
77+
NACHO_QC (
7778
rcc_files,
7879
samplesheet_path.first()
7980
)
80-
ch_versions = ch_versions.mix(QUALITY_CONTROL.out.versions)
81-
ch_multiqc_files = ch_multiqc_files.mix(QUALITY_CONTROL.out.nacho_qc_multiqc_metrics.collect())
81+
ch_versions = ch_versions.mix(NACHO_QC.out.versions)
82+
nacho_qc_multiqc_metrics = NACHO_QC.out.nacho_qc_png.map{it[1]}.mix(NACHO_QC.out.nacho_qc_txt.map{it[1]})
83+
ch_multiqc_files = ch_multiqc_files.mix(nacho_qc_multiqc_metrics.collect())
8284

8385
//
8486
// SUBWORKFLOW: Normalize data
8587
//
86-
NORMALIZE (
88+
NACHO_NORMALIZE (
8789
rcc_files,
8890
samplesheet_path.first()
8991
)
90-
ch_versions = ch_versions.mix(NORMALIZE.out.versions)
91-
ch_normalized = NORMALIZE.out.normalized_counts
92-
ch_normalized_wo_hk = NORMALIZE.out.normalized_counts_wo_HK
92+
ch_versions = ch_versions.mix(NACHO_NORMALIZE.out.versions)
93+
ch_normalized = NACHO_NORMALIZE.out.normalized_counts
94+
ch_normalized_wo_hk = NACHO_NORMALIZE.out.normalized_counts_wo_HK
9395

9496
//
9597
// MODULE: Annotate normalized counts with metadata from the samplesheet

0 commit comments

Comments
 (0)