Created
June 24, 2021 00:38
-
-
Save rob-p/11e1d0d9b76f28816a9fc89224835d68 to your computer and use it in GitHub Desktop.
nextflow MWE 2177
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nextflow.enable.dsl=2 | |
process foo { | |
publishDir "output" | |
input: | |
val(prefix) | |
output: | |
path "${prefix}_foo" | |
path "${prefix}_foo/bar.txt" | |
stub: | |
""" | |
mkdir -p ${prefix}_foo | |
echo "contents" >> ${prefix}_foo/bar.txt | |
""" | |
} | |
workflow foowf { | |
take: | |
prefix | |
main: | |
foo(prefix) | |
} | |
workflow { | |
ip = Channel.fromList([1,2,3,4,5,6,7,8,9,10]) | |
foowf(ip) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment