forked from CCBR/SINCLAIR
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.nf
More file actions
60 lines (50 loc) · 1.69 KB
/
main.nf
File metadata and controls
60 lines (50 loc) · 1.69 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
#!/usr/bin/env nextflow
/*
===================================================================
CCBR/SINCLAIR
===================================================================
GitHub: https://github.com/CCBR/SINCLAIR
-------------------------------------------------------------------
*/
// Using DSL-2
nextflow.enable.dsl=2
/*
===================================================================
Import workflows
===================================================================
*/
include { PREPROCESS_EXQC } from './workflows/pre_process'
include { GEX_EXQC } from './workflows/gex'
include { ATAC_EXQC } from './workflows/atac'
// include { VDJ_EXQC } from '.workflows/sCRNA_vdj'
// include { CITE_EXQC } from '.workflows/sCRNA_cite'
// Plugins
include { validateParameters; paramsSummaryLog } from 'plugin/nf-schema'
workflow.onComplete {
if (!workflow.stubRun && !workflow.commandLine.contains('-preview')) {
def message = Utils.spooker(workflow)
if (message) {
println message
}
}
}
workflow {
LOG()
validateParameters()
PREPROCESS_EXQC ()
GEX_EXQC (
PREPROCESS_EXQC.out.ch_fqdir_h5,
PREPROCESS_EXQC.out.group_samplesheet,
)
}
workflow LOG {
log.info """\
SINCLAIR $workflow.manifest.version
===================================
cmd line : $workflow.commandLine
start time : $workflow.start
NF outdir : $params.outdir
"""
.stripIndent()
log.info paramsSummaryLog(workflow)
}