Skip to content

Instantly share code, notes, and snippets.

@LukeGoodsell
Created June 20, 2017 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LukeGoodsell/7db6765adbe7309f4570e5f24158c0f5 to your computer and use it in GitHub Desktop.
Save LukeGoodsell/7db6765adbe7309f4570e5f24158c0f5 to your computer and use it in GitHub Desktop.
Demo of taking input file with exec block
#!/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