2021-08-04 09:06:08 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2022-03-21 13:49:28 +00:00
|
|
|
include { UNZIP } from '../../../../modules/unzip/main.nf'
|
2021-11-26 07:58:40 +00:00
|
|
|
include { MALT_BUILD } from '../../../../modules/malt/build/main.nf'
|
2022-03-21 13:49:28 +00:00
|
|
|
include { MALT_RUN } from '../../../../modules/malt/run/main.nf'
|
2021-08-04 09:06:08 +00:00
|
|
|
|
|
|
|
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"
|
2022-03-21 13:49:28 +00:00
|
|
|
map_db = [ [], file("https://software-ab.informatik.uni-tuebingen.de/download/megan6/megan-nucl-Jan2021.db.zip", checkIfExists: true) ]
|
2022-03-03 15:35:19 +00:00
|
|
|
input = [
|
|
|
|
[ id:'test', single_end:false ], // meta map
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true)
|
|
|
|
]
|
2021-08-04 09:06:08 +00:00
|
|
|
mode = "BlastN"
|
|
|
|
|
|
|
|
UNZIP ( map_db )
|
2022-03-21 13:49:28 +00:00
|
|
|
MALT_BUILD ( fastas, seq_type, gff, UNZIP.out.unzipped_archive.map { it[1] } )
|
2021-08-04 09:06:08 +00:00
|
|
|
MALT_RUN ( input, mode, MALT_BUILD.out.index )
|
|
|
|
}
|
2022-03-03 15:35:19 +00:00
|
|
|
|