Skip to content

Commit

Permalink
Update main.nf
Browse files Browse the repository at this point in the history
  • Loading branch information
cgpu committed Nov 3, 2021
1 parent 6cc20ea commit 4d84a04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ numberFilesForProcessA = params.filesProcessA
processAWriteToDiskMb = params.processAWriteToDiskMb
processAInput = Channel.from([1] * numberRepetitionsForProcessA)
processAInputFiles = Channel.fromPath("${params.dataLocation}/**${params.fileSuffix}").take( numberRepetitionsForProcessA )
multiDockerConfig = Channel.fromPath(params.multidocker_config)

process processA {
publishDir "${params.output}/${task.hash}/", mode: 'copy'
Expand All @@ -63,13 +64,15 @@ process processA {
input:
val x from processAInput
file(a_file) from processAInputFiles
file(multiDockerConfig) from multiDockerConfig

output:
val x into processAOutput
val x into processCInput
val x into processDInput
file "*.txt"
file("command-logs") optional true
file("multidocker.config")

script:
"""
Expand All @@ -85,6 +88,7 @@ process processA {
echo "task cpus: ${task.cpus}"
${params.savescript}
cp $multiDockerConfig multidocker.config
"""
}

Expand Down

0 comments on commit 4d84a04

Please sign in to comment.