-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmain.nf
63 lines (48 loc) · 1.28 KB
/
main.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
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env nextflow
/*
* Copyright (c) 2019-2024, Centre for Genomic Regulation (CRG)
*
*/
/*
===========================================================
ExOrthist pipeline for Bioinformatics Core @ CRG
@authors
Luca Cozzuto <[email protected]>
Federica Mantica <[email protected]>
Toni Hermoso Pulido <[email protected]>
===========================================================
*/
nextflow.enable.dsl = 2
// if( !workflow.resume ) {
// println "Removing the output folder"
// new File("${params.output}").delete()
// }
LOCAL_SUBWORKFLOWS='./subworkflows/local/exorthist'
WORKFLOWS='./workflows/'
include { PIPELINE_COMPLETION; PIPELINE_INITIALISATION } from "${LOCAL_SUBWORKFLOWS}/util.nf"
include { MAIN } from "${WORKFLOWS}/main.nf"
include { PLOT } from "${WORKFLOWS}/plot.nf"
workflow {
PIPELINE_INITIALISATION(
params,
args
)
if (params.wf == "plot" ) {
PLOT(
params.output,
params.geneID,
params.relevant_exs,
params.ordered_species,
params.isoformID,
params.sub_orthologs,
params.output
)
} else {
MAIN()
}
PIPELINE_COMPLETION(
params.wf,
params.email,
params.hook_url
)
}