Last active
August 29, 2015 14:11
-
-
Save holtgrewe/208cf9eb7f476c2b3450 to your computer and use it in GitHub Desktop.
Some minimal nextflow examples
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
>1 | |
CGAT | |
>2 | |
CGAT |
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
>1 | |
CGAT | |
>2 | |
CGAT |
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 | |
inputFiles = Channel.fromPath("input*.fa") | |
process myTest { | |
input: | |
file inputFile from inputFiles | |
output: | |
file "${inputFile}.out" into outputFiles | |
script: | |
""" | |
wc -l ${inputFile} > ${inputFile}.out | |
""" | |
} | |
myStoreDir = "$HOME/tmp/data" | |
inputFilesStore = Channel.fromPath("${myStoreDir}/input*.fa") | |
process myTestWithStore { | |
storeDir myStoreDir | |
input: | |
file inputFile from inputFilesStore | |
output: | |
file "${inputFile}.out" into outputFilesStore | |
script: | |
""" | |
wc -l ${inputFile} > ${inputFile}.out | |
""" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment