mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-14 13:43:09 +00:00
080320765c
* 📦 NEW: Add bamtools/convert module * 👌 IMPROVE: Update output channel name, Add tests for each output format * 👌 IMPROVE: Add error test * 🐛 FIX: Remove custom tags Co-authored-by: Chris Cheshire <chris.j.cheshire@gmail.com>
41 lines
833 B
Text
41 lines
833 B
Text
process {
|
|
|
|
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
|
|
|
|
withName: BAMTOOLS_CONVERT_EXT_ERROR {
|
|
ext.args = "-format vcf"
|
|
}
|
|
|
|
withName: BAMTOOLS_CONVERT_NOEXT_ERROR {
|
|
ext.args = ""
|
|
}
|
|
|
|
withName: BAMTOOLS_CONVERT_BED {
|
|
ext.args = "-format bed"
|
|
}
|
|
|
|
withName: BAMTOOLS_CONVERT_FASTA {
|
|
ext.args = "-format fasta"
|
|
}
|
|
|
|
withName: BAMTOOLS_CONVERT_FASTQ {
|
|
ext.args = "-format fastq"
|
|
}
|
|
|
|
withName: BAMTOOLS_CONVERT_JSON {
|
|
ext.args = "-format json"
|
|
}
|
|
|
|
withName: BAMTOOLS_CONVERT_PILEUP {
|
|
ext.args = "-format pileup"
|
|
}
|
|
|
|
withName: BAMTOOLS_CONVERT_SAM {
|
|
ext.args = "-format sam"
|
|
}
|
|
|
|
withName: BAMTOOLS_CONVERT_YAML {
|
|
ext.args = "-format yaml"
|
|
}
|
|
|
|
}
|