Created
June 20, 2017 10:36
-
-
Save LukeGoodsell/7db6765adbe7309f4570e5f24158c0f5 to your computer and use it in GitHub Desktop.
Demo of taking input file with exec block
This file contains 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
#!/usr/bin/env nextflow | |
process foo { | |
output: | |
file "out.txt" into fooFiles | |
shell: | |
''' | |
echo "hi" > "out.txt"; | |
''' | |
} | |
process bar { | |
input: | |
file fooFile from fooFiles | |
exec: | |
println(fooFile.toFile().exists()); # prints false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment