add nextflow d30e48d
This commit is contained in:
31
nextflow/tests-v1/ampa.nf
Normal file
31
nextflow/tests-v1/ampa.nf
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env nextflow
|
||||
|
||||
params.in = "$baseDir/data/sample.fa"
|
||||
|
||||
|
||||
/*
|
||||
* For each sequence that is sent over the 'seq' channel
|
||||
* the below task is executed
|
||||
*/
|
||||
process ampaTask {
|
||||
|
||||
input:
|
||||
path seq
|
||||
|
||||
output:
|
||||
path 'result'
|
||||
|
||||
// The BASH script to be executed - for each - sequence
|
||||
"""
|
||||
AMPA.pl -in=${seq} -noplot -rf=result -df=data
|
||||
"""
|
||||
|
||||
}
|
||||
|
||||
workflow {
|
||||
Channel.fromPath(params.in) |
|
||||
splitFasta(file:true) |
|
||||
ampaTask |
|
||||
view { it.text }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user