add nextflow d30e48d
This commit is contained in:
33
nextflow/tests-v1/watch.nf
Normal file
33
nextflow/tests-v1/watch.nf
Normal file
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env nextflow
|
||||
|
||||
params.events = 'create'
|
||||
params.files = 'examples/data/*.fa'
|
||||
|
||||
|
||||
process align {
|
||||
input:
|
||||
path fasta
|
||||
|
||||
output:
|
||||
path aln
|
||||
|
||||
"""
|
||||
t_coffee -in $fasta 1> aln
|
||||
"""
|
||||
}
|
||||
|
||||
/*
|
||||
* main flow
|
||||
*/
|
||||
|
||||
workflow {
|
||||
|
||||
Channel
|
||||
.watchPath(params.files, params.events) \
|
||||
| align \
|
||||
| subscribe {
|
||||
println '------'
|
||||
println it.text
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user