Skip to content

Commit 97b47bb

Browse files
committed
multiqc and clean up
1 parent 2d346f1 commit 97b47bb

4 files changed

Lines changed: 29 additions & 144 deletions

File tree

conf/test_nobc_dx.config

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ params {
2929
fasta = 'https://raw.githubusercontent.com/nf-core/test-datasets/nanoseq/reference/chr22_23800000-23980000.fa'
3030
gtf = 'https://raw.githubusercontent.com/nf-core/test-datasets/nanoseq/reference/chr22_23800000-23980000.gtf'
3131
skip_basecalling = true
32-
skip_nanoplot = true //remove later
33-
skip_alignment = true //remove later
3432
run_nanolyse = true
3533
protocol = 'DNA'
3634
barcode_kit = 'NBD103/NBD104'

main.nf

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ workflow NFCORE_NANOSEQ {
5353
NANOSEQ ()
5454
// samplesheet
5555
// )
56-
//emit:
57-
//multiqc_report = NANOSEQ.out.multiqc_report // channel: /path/to/multiqc_report.html
56+
57+
emit:
58+
multiqc_report = NANOSEQ.out.multiqc_report // channel: /path/to/multiqc_report.html
5859
}
5960
/*
6061
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -86,15 +87,15 @@ workflow {
8687
//
8788
// SUBWORKFLOW: Run completion tasks
8889
//
89-
//PIPELINE_COMPLETION (
90-
// params.email,
91-
// params.email_on_fail,
92-
// params.plaintext_email,
93-
// params.outdir,
94-
// params.monochrome_logs,
95-
// params.hook_url,
96-
// NFCORE_NANOSEQ.out.multiqc_report
97-
//)
90+
PIPELINE_COMPLETION (
91+
params.email,
92+
params.email_on_fail,
93+
params.plaintext_email,
94+
params.outdir,
95+
params.monochrome_logs,
96+
params.hook_url,
97+
NFCORE_NANOSEQ.out.multiqc_report
98+
)
9899
}
99100

100101
/*

workflows/nanoseq.nf

Lines changed: 17 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,10 @@ include { QUANTIFY_STRINGTIE_FEATURECOUNTS } from '../subworkflows/local/quantif
171171
/* -- RUN MAIN WORKFLOW -- */
172172
////////////////////////////////////////////////////
173173

174-
// Info required for completion email and summary
175-
def multiqc_report = []
176-
177174
workflow NANOSEQ{
178175

176+
multiqc_report = Channel.empty()
177+
179178
// Pre-download test-dataset to get files for '--input_path' parameter
180179
// Nextflow is unable to recursively download directories via HTTPS
181180
if (workflow.profile.contains('test') && !workflow.profile.contains('vc')) {
@@ -551,41 +550,25 @@ workflow NANOSEQ{
551550
ch_software_versions.unique().collectFile()
552551
)
553552

554-
//if (!params.skip_multiqc) {
555-
// workflow_summary = WorkflowNanoseq.paramsSummaryMultiqc(workflow, summary_params)
556-
// ch_workflow_summary = Channel.value(workflow_summary)
557-
553+
if (!params.skip_multiqc) {
558554
/*
559555
* MODULE: MultiQC
560556
*/
561-
// MULTIQC (
562-
// ch_multiqc_config,
563-
// ch_multiqc_custom_config.collect().ifEmpty([]),
564-
// ch_fastqc_multiqc.ifEmpty([]),
565-
// ch_samtools_multiqc.collect().ifEmpty([]),
566-
// ch_featurecounts_gene_multiqc.ifEmpty([]),
567-
// ch_featurecounts_transcript_multiqc.ifEmpty([]),
568-
// CUSTOM_DUMPSOFTWAREVERSIONS.out.mqc_yml.collect(),
569-
// ch_workflow_summary.collectFile(name: 'workflow_summary_mqc.yaml')
570-
// )
571-
//}
572-
}
573-
574-
////////////////////////////////////////////////////
575-
/* -- COMPLETION EMAIL -- */
576-
////////////////////////////////////////////////////
557+
MULTIQC (
558+
ch_multiqc_config,
559+
ch_multiqc_custom_config.collect().ifEmpty([]),
560+
ch_fastqc_multiqc.ifEmpty([]),
561+
ch_samtools_multiqc.collect().ifEmpty([]),
562+
ch_featurecounts_gene_multiqc.ifEmpty([]),
563+
ch_featurecounts_transcript_multiqc.ifEmpty([]),
564+
CUSTOM_DUMPSOFTWAREVERSIONS.out.mqc_yml.collect(),
565+
[]
566+
)
567+
}
577568

578-
//workflow.onComplete {
579-
// if (params.email) {
580-
// NfcoreTemplate.email(workflow, params, summary_params, projectDir, log, multiqc_report)
581-
//Completion.email(workflow, params, params.summary_params, log, multiqc_report)
582-
// }
583-
// Completion.summary(workflow, params, log)
584-
// NfcoreTemplate.summary(workflow, params, log)
585-
// if (params.hook_url) {
586-
// NfcoreTemplate.IM_notification(workflow, params, summary_params, projectDir, log)
587-
// }
588-
//}
569+
emit:
570+
multiqc_report = MULTIQC.out.report.toList() // channel: /path/to/multiqc_report.html
571+
}
589572

590573
/*
591574
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

workflows/template.nf

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

0 commit comments

Comments
 (0)