nf-core_modules/tests/software/fastqc/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

28 lines
785 B
Text

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { FASTQC } from '../../../software/fastqc/main.nf' addParams( options: [:] )
/*
* Test with single-end data
*/
workflow test_fastqc_single_end {
input = [ [ id:'test', single_end:true ], // meta map
[ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true) ]
]
FASTQC ( input )
}
/*
* Test with paired-end data
*/
workflow test_fastqc_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) ]
]
FASTQC ( input )
}