nf-core_modules/tests/modules/nextclade/run/main.nf
Harshil Patel 796dbb573e
Add nextclade/datasetget and nextclade/run modules (#1210)
* Remove old nextclade module

* Add nextclade/datasetget and nextclade/run modules

* Fix ECLint

* Add reference and tag as inputs to datasetget module

* Fix tests

* Adjust spacing
2022-01-17 11:46:15 +01:00

22 lines
623 B
Text

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { NEXTCLADE_DATASETGET } from '../../../../modules/nextclade/datasetget/main.nf'
include { NEXTCLADE_RUN } from '../../../../modules/nextclade/run/main.nf'
workflow test_nextclade_run {
dataset = 'sars-cov-2'
reference = 'MN908947'
tag = '2022-01-05T19:54:31Z'
NEXTCLADE_DATASETGET ( dataset, reference, tag )
input = [
[ id:'test', single_end:false ], // meta map
file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
]
NEXTCLADE_RUN ( input, NEXTCLADE_DATASETGET.out.dataset )
}