Skip to content

Instantly share code, notes, and snippets.

@holtgrewe
Last active August 29, 2015 14:11
Show Gist options
  • Save holtgrewe/208cf9eb7f476c2b3450 to your computer and use it in GitHub Desktop.
Save holtgrewe/208cf9eb7f476c2b3450 to your computer and use it in GitHub Desktop.
Some minimal nextflow examples
>1
CGAT
>2
CGAT
>1
CGAT
>2
CGAT
#!/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