-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.nf
More file actions
76 lines (66 loc) · 2.58 KB
/
main.nf
File metadata and controls
76 lines (66 loc) · 2.58 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/env nextflow
/*
================================================================================
= C O M P I L E - L A T E X =
================================================================================
@Author
Maxime Garcia <max.u.garcia@gmail.com> [@maxulysse]
--------------------------------------------------------------------------------
@Homepage
https://github.com/maxulysse/compile-latex
--------------------------------------------------------------------------------
@Documentation
https://github.com/maxulysse/compile-latex/blob/main/README.md
--------------------------------------------------------------------------------
@Licence
https://github.com/maxulysse/compile-latex/blob/main/LICENSE
--------------------------------------------------------------------------------
Process overview
- XELATEX
Run xelatex, optionally biber and xelatex and finally xelatex again
*/
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IMPORT FUNCTIONS / MODULES / SUBWORKFLOWS / WORKFLOWS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
include { XELATEX } from './modules/local/xelatex'
include { PIPELINE_INITIALISATION } from './subworkflows/local/utils_nfcore_compile-latex_pipeline'
include { PIPELINE_COMPLETION } from './subworkflows/local/utils_nfcore_compile-latex_pipeline'
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RUN MAIN WORKFLOW
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
workflow {
main:
// SUBWORKFLOW: Run initialisation tasks
PIPELINE_INITIALISATION(
params.version,
params.validate_params,
args,
params.outdir,
params.input,
params.help,
params.help_full,
params.show_hidden,
)
// WORKFLOW: Run main workflow
XELATEX(
channel.fromPath(params.input, checkIfExists: true),
params.biblio ? channel.fromPath(params.biblio, checkIfExists: true) : [],
params.pictures ? channel.fromPath(params.pictures, checkIfExists: true) : [],
params.github_avatar ? channel.fromPath(params.github_avatar, checkIfExists: true) : [],
)
// SUBWORKFLOW: Run completion tasks
PIPELINE_COMPLETION(params.monochrome_logs)
publish:
pdf = XELATEX.out.pdf
}
output {
pdf {
path { file ->
file >> (params.outname ?: file.name)
}
}
}