1010
1111nextflow. enable. dsl = 2
1212
13- /*
14- ========================================================================================
15- VALIDATE & PRINT PARAMETER SUMMARY
16- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17- */
18-
19- // WorkflowMain.initialise(workflow, params, log)
20-
21- /*
22- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23- IMPORT FUNCTIONS / MODULES / SUBWORKFLOWS / WORKFLOWS
24- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
25- */
26-
27- // include { DIRECTRNA } from './workflows/directrna'
28- // include { PREPARE_REFERENCE } from './subworkflows/local/prepare_reference'
29- // include { PIPELINE_INITIALISATION } from 'subworkflows/local/utils_nfcore_directrna_pipeline'
30- // include { PIPELINE_COMPLETION } from 'subworkflows/local/utils_nfcore_directrna_pipeline'
31- // include { getGenomeAttribute } from './subworkflows/local/utils_nfcore_directrna_pipeline'
32-
33- /*
34- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35- GENOME PARAMETER VALUES
36- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37- */
38-
39- // nf-core: Remove this line if you don't need a FASTA file
40- // This is an example of how to use getGenomeAttribute() to fetch parameters
41- // from igenomes.config using `--genome`
42- // params.genome_fasta = getGenomeAttribute('fasta')
43-
44- //
45- // SUBWORKFLOW: Prepare reference genome files
46- //
47- // PREPARE_REFERENCE
48-
49-
5013/*
5114~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5215 NAMED WORKFLOWS FOR PIPELINE
5316~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5417*/
5518
56- include { DIRECTRNA } from ' ./workflows/directrna'
19+ include { DIRECTRNA } from ' ./workflows/directrna'
20+ include { validateParameters } from ' plugin/nf-schema'
21+ include { paramsSummaryLog } from ' plugin/nf-schema'
5722
58- //
59- // WORKFLOW: Run main analysis pipeline depending on type of input
60- //
6123workflow{
62- DIRECTRNA ()
63- // samplesheet
64- }
65- // take:
66- // samplesheet // channel: samplesheet read in from --input
67-
68- // main:
6924
7025 //
71- // WORKFLOW: Run pipeline
26+ // nf-scheme validations
7227 //
7328
29+ validateParameters()
30+ log. info paramsSummaryLog(workflow)
31+
32+ if (params. help) {
33+ log. info paramsHelp(
34+ beforeText : " Welcome to LongTranscriptomics, I see you are seeking help." ,
35+ afterText : " Farewell, hopefully this was helpful." ,
36+ command : " nextflow run . -profile <profile> --outdir <outdir>" ,
37+ )
38+ exit 0
39+ }
7440
75- // emit:
76- // multiqc_report = DIRECTRNA.out.multiqc_report // channel: /path/to/multiqc_report.html
7741
78- // }
42+ DIRECTRNA ()
43+ }
7944/*
8045~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8146 RUN MAIN WORKFLOW
@@ -98,18 +63,6 @@ workflow {
9863 params.outdir,
9964 params.input
10065 )
101-
102- //
103- // WORKFLOW: Run main workflow
104- //
105- //MEDGEN_DIRECTRNA (
106- // PIPELINE_INITIALISATION.out.samplesheet
107- )
108-
109- //
110- // SUBWORKFLOW: Run completion tasks
111- //
112-
11366 PIPELINE_COMPLETION (
11467 params.email,
11568 params.email_on_fail,
0 commit comments