nf-core_modules/tests/modules/gtdbtk/classifywf/main.nf

33 lines
887 B
Text
Raw Normal View History

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { GTDBTK_CLASSIFYWF } from '../../../../modules/gtdbtk/classifywf/main.nf' addParams( options: [:] )
process STUB_GTDBTK_DATABASE {
output:
tuple val("gtdbtk_r202_data"), path("database/*"), emit: database
stub:
"""
mkdir database
touch database/gtdbtk_r202_data
"""
}
workflow test_gtdbtk_classifywf {
STUB_GTDBTK_DATABASE()
input = [
[ id:'test', single_end:false, assembler:'SPADES' ],
[
file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true),
file(params.test_data['sarscov2']['illumina']['contigs_fasta'], checkIfExists: true),
file(params.test_data['sarscov2']['illumina']['scaffolds_fasta'], checkIfExists: true)
]
]
GTDBTK_CLASSIFYWF ( input, STUB_GTDBTK_DATABASE.out.database )
}