add nextflow d30e48d

This commit is contained in:
2026-04-29 23:01:54 +02:00
parent d0b12d668d
commit 97cc9058d3
2840 changed files with 730250 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
#!/usr/bin/env nextflow
/*
* Command line input parameter
*/
params.in = "$baseDir/data/sample.fa"
/*
* split a fasta file in multiple files
*/
process splitSequences {
input:
path 'input.fa'
output:
path 'seq_*'
"""
awk '/^>/{f="seq_"++d} {print > f}' < input.fa
"""
}
/*
* Simple reverse the sequences
*/
process reverse {
input:
path x
output:
stdout
"""
cat $x | rev
"""
}
workflow {
splitSequences(params.in) | reverse | view
}