mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-23 11:38:17 +00:00
28 lines
723 B
Text
28 lines
723 B
Text
|
#!/usr/bin/env nextflow
|
||
|
|
||
|
nextflow.enable.dsl = 2
|
||
|
|
||
|
include { CSVTK_SPLIT } from '../../../../modules/csvtk/split/main.nf' addParams( options: [args: "-C '&' --fields 'first_name' "])
|
||
|
|
||
|
workflow test_csvtk_split_tsv {
|
||
|
|
||
|
input = [
|
||
|
[ id:'test' ], // meta map
|
||
|
[ file(params.test_data['generic']['tsv']['test_tsv'], checkIfExists: true) ]
|
||
|
]
|
||
|
in_format = "tsv"
|
||
|
out_format = "tsv"
|
||
|
CSVTK_SPLIT ( input, in_format, out_format )
|
||
|
}
|
||
|
|
||
|
workflow test_csvtk_split_csv {
|
||
|
|
||
|
input = [
|
||
|
[ id:'test' ], // meta map
|
||
|
[ file(params.test_data['generic']['csv']['test_csv'], checkIfExists: true) ]
|
||
|
]
|
||
|
in_format = "csv"
|
||
|
out_format = "csv"
|
||
|
CSVTK_SPLIT( input, in_format, out_format )
|
||
|
}
|