nf-core_modules/tests/modules/csvtk/split/main.nf
SusiJo ad46010385
Added new module csvtk/split (#1014)
* 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>
2021-11-15 18:29:55 +00:00

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 )
}