nf-core_modules/tests/modules/motus/merge/main.nf
James A. Fellows Yates b02e648c22
Add MOTUS/MERGE (#1734)
* Add motus/merge module, missing test yml

* Fix prefix

* Fix polymersase

* Update test meta.yml

* Try new version system

* Typo fix

* Clairfy docs for the version file

* Switch to directory auto detection

* Now with the change and not just meta

* Remove now unneeded input parameter from test

* Fix input type check

* Try adding db requirement to fix docker issue

* Update modules/motus/merge/main.nf

* Fix input

* Apply suggestions from code review

* Fix md5sums

* Replace debugging db location with actual

* Fix contains due to further varialbility

* Indenting
2022-07-07 09:47:41 +02:00

29 lines
1 KiB
Text

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { MOTUS_DOWNLOADDB } from '../../../../modules/motus/downloaddb/main.nf'
include { MOTUS_PROFILE } from '../../../../modules/motus/profile/main.nf'
include { MOTUS_MERGE } from '../../../../modules/motus/merge/main.nf'
workflow test_motus_merge {
input = Channel.fromList(
[
[
[ id:'test', single_end:true ], // meta map
file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true)
],
[
[ id:'test2', single_end:true ], // meta map
file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true)
]
]
)
MOTUS_DOWNLOADDB ( file('https://raw.githubusercontent.com/motu-tool/mOTUs/master/motus/downloadDB.py') )
MOTUS_PROFILE ( input, MOTUS_DOWNLOADDB.out.db )
MOTUS_MERGE ( MOTUS_PROFILE.out.out.map{it[1]}.collect(), MOTUS_DOWNLOADDB.out.db, MOTUS_PROFILE.out.versions.first(), false )
}