nf-core_modules/tests/modules/malt/run/main.nf
James A. Fellows Yates 76cdd46f3f
Add meta to MALT/RUN (#1372)
* Add meta to MALT/RUN

* Update modules/malt/run/main.nf
2022-03-03 10:35:19 -05:00

25 lines
943 B
Text

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { UNZIP } from '../../../../modules/unzip/main.nf'
include { MALT_BUILD } from '../../../../modules/malt/build/main.nf'
include { MALT_RUN } from '../../../../modules/malt/run/main.nf'
workflow test_malt_run {
fastas = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
gff = file(params.test_data['sarscov2']['genome']['genome_gff3'], checkIfExists: true)
seq_type = "DNA"
map_db = file("https://software-ab.informatik.uni-tuebingen.de/download/megan6/megan-nucl-Jan2021.db.zip", checkIfExists: true)
input = [
[ id:'test', single_end:false ], // meta map
file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true)
]
mode = "BlastN"
UNZIP ( map_db )
MALT_BUILD ( fastas, seq_type, gff, UNZIP.out.unzipped_archive )
MALT_RUN ( input, mode, MALT_BUILD.out.index )
}