Skip to content

Commit fb7f088

Browse files
add config to outputs
1 parent f306466 commit fb7f088

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

main.nf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
nextflow.enable.dsl=2
44

5-
include { version } from './modules/version'
5+
include { run_info } from './modules/run_info'
66
include { candidates } from './modules/candidates'
77
include { ims } from './modules/ims'
88
include { plot } from './modules/plot'
@@ -130,8 +130,8 @@ workflow {
130130
========================
131131
""".stripIndent()
132132

133-
// Grab HiTMaP version
134-
version()
133+
// Grab HiTMaP run info
134+
run_info(config)
135135

136136
// Exit now if this is a dry run
137137
if ( params.dryrun ) {

modules/version.nf renamed to modules/run_info.nf

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
// Get HiTMaP version
2-
process version {
1+
// Get HiTMaP run information
2+
process run_info {
33
debug = false
4-
tag "version"
4+
tag "run_info"
55
container "${params.hitmap_container}"
66
time "5m"
7-
publishDir "results/${params.datetime}/version", mode: 'copy'
7+
publishDir "results/${params.datetime}/run_info", mode: 'copy'
88

99
input:
10+
path(config, stageAs: "config.R")
1011

1112
output:
13+
path("config.R"), emit: config
1214
path("version.txt"), emit: version
1315

1416
script:

0 commit comments

Comments
 (0)