nf-core_modules/tests/modules/mash/screen/main.nf

25 lines
762 B
Text
Raw Normal View History

2022-05-20 13:23:11 +00:00
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { MASH_SKETCH } from '../../../../modules/mash/sketch/main.nf'
include { MASH_SCREEN } from '../../../../modules/mash/screen/main.nf'
workflow test_mash_screen {
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)
]
]
2022-05-25 12:29:14 +00:00
sars_db = [
[ id: 'sars_db' ],
file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
]
2022-05-20 13:23:11 +00:00
2022-05-25 12:29:14 +00:00
MASH_SKETCH ( sars_db )
MASH_SCREEN ( input, MASH_SKETCH.out.mash.map { meta, sketch -> sketch } )
2022-05-20 13:23:11 +00:00
}