nf-core_modules/tests/software/fastp/main.nf
Harshil Patel 83a500e6b0
Use a config containing all test data for module tests (#365)
* Re-organise all test data

* Fix ECLint

* Fix ECLint agaaainn

* Now is not the time EClint

* Initial commit for test data config

* Rename test data

* Include test config

* Update indents

* Update test for FastQC via config

* Remove quotes of bottom-level variables

* Use underscores in key names

* Get tests working for fastp

* Remove whitespace at beginning of file
2021-03-24 13:07:37 +00:00

29 lines
792 B
Text

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { FASTP } from '../../../software/fastp/main.nf' addParams( options: [:] )
/*
* Test with single-end data
*/
workflow test_fastp_single_end {
input = [ [ id:'test', single_end:true ], // meta map
[ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true) ]
]
FASTP ( input )
}
/*
* Test with paired-end data
*/
workflow test_fastp_paired_end {
input = [ [ id:'test', single_end:false ], // meta map
[ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true),
file(params.test_data['sarscov2']['illumina']['test_2_fastq_gz'], checkIfExists: true) ]
]
FASTP ( input )
}