mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-23 03:28:17 +00:00
ad46010385
* added module csvtk/split * removed todo statement * adjusted meta map names * changed tests to use generic input files * added module in pytest * updated test-data paths * Apply suggestions from code review Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
27 lines
723 B
Text
27 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 )
|
|
}
|