-
Notifications
You must be signed in to change notification settings - Fork 0
/
plot_from_data.nf
54 lines (46 loc) · 1.9 KB
/
plot_from_data.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
#!/usr/bin/env nextflow
/*
========================================================================================
eQTL-Catalogue/qtlmap
========================================================================================
eQTL-Catalogue/qtlmap Analysis Pipeline.
#### Homepage / Documentation
https://github.com/eQTL-Catalogue/qtlmap
----------------------------------------------------------------------------------------
*/
nextflow.enable.dsl=2
// Has the run name been specified by the user?
// this has the bonus effect of catching both -name and --name
custom_runName = params.name
if( !(workflow.runName ==~ /[a-z]+_[a-z]+/) ){
custom_runName = workflow.runName
}
/*
* Create a channel for input files
*/
Channel.fromPath(params.from_files)
.ifEmpty { error "Cannot find rds_tar_files file in: ${params.from_files}" }
.set { rds_tar_files }
// Header log info
log.info """=======================================================
,--./,-.
___ __ __ __ ___ /,-._.--~\'
|\\ | |__ __ / ` / \\ |__) |__ } {
| \\| | \\__, \\__/ | \\ |___ \\`-._,-`-,
`._,._,\'
eQTL-Catalogue/qtlmap v${workflow.manifest.version}"
======================================================="""
def summary = [:]
summary['Pipeline Name'] = 'eQTL-Catalogue/recap_plot'
summary['Pipeline Version'] = workflow.manifest.version
summary['Run Name'] = custom_runName ?: workflow.runName
summary['From files'] = params.from_files
log.info summary.collect { k,v -> "${k.padRight(21)}: $v" }.join("\n")
log.info "========================================="
include { plot_from_data } from './modules/plot_from_data_mod'
workflow {
plot_from_data(rds_tar_files)
}
workflow.onComplete {
log.info "[eQTL-Catalogue/recap_plot] Pipeline Complete"
}