-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalternative_promoters.nf
52 lines (40 loc) · 2.01 KB
/
alternative_promoters.nf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
////////////////////////////////////////////////////
/* -- LOCAL PARAMETER VALUES -- */
////////////////////////////////////////////////////
params.summary_params = [:]
////////////////////////////////////////////////////
/* -- VALIDATE INPUTS -- */
////////////////////////////////////////////////////
// Check input path parameters to see if they exist
checkPathParamList = [ params.input, params.gtf ]
for (param in checkPathParamList) { if (param) { file(param, checkIfExists: true) } }
// Check mandatory parameters (missing protocol or profile will exit the run.)
if (params.input) { ch_input = file(params.input) } else { exit 1, 'Input samplesheet not specified!' }
if (params.gtf) { ch_gtf = file(params.gtf) } else { exit 1, 'GTF annotation not specified!' }
// Function to check if running offline
def isOffline() {
try {
return NXF_OFFLINE as Boolean
}
catch( Exception e ) {
return false
}
}
////////////////////////////////////////////////////
/* -- IMPORT LOCAL MODULES/SUBWORKFLOWS -- */
////////////////////////////////////////////////////
// Don't overwrite global params.modules, create a copy instead and use that within the main script.
def modules = params.modules.clone()
// TO DO -- define options for the processes below
def proactiv_options = modules['proActiv']
include { PROACTIV } from './modules/process/proactiv' addParams( options: proactiv_options )
//include { GET_SOFTWARE_VERSIONS } from './modules/process/get_software_versions' addParams( options: [publish_files : ['csv':'']] )
////////////////////////////////////////////////////
/* -- RUN MAIN WORKFLOW -- */
////////////////////////////////////////////////////
workflow ALTERNATIVE_PROMOTERS{
PROACTIV ( ch_input, ch_gtf )
}
////////////////////////////////////////////////////
/* -- THE END -- */
////////////////////////////////////////////////////