mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-23 03:28:17 +00:00
83a500e6b0
* 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
28 lines
785 B
Text
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 )
|
|
}
|