nf-core_modules/tests/modules/snapaligner/align/main.nf

29 lines
1.1 KiB
Text
Raw Normal View History

2022-05-06 12:10:44 +00:00
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { SNAPALIGNER_INDEX } from '../../../../modules/snapaligner/index/main.nf'
include { SNAPALIGNER_ALIGN } from '../../../../modules/snapaligner/align/main.nf'
2022-05-06 12:10:44 +00:00
workflow test_snapaligner_single {
input = [
[ id:'test', single_end:true ], // meta map
[file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true)]
]
SNAPALIGNER_INDEX ( file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true),[],[],[])
SNAPALIGNER_ALIGN ( input, SNAPALIGNER_INDEX.out.index )
2022-05-06 12:10:44 +00:00
}
workflow test_snapaligner_paired {
input = [
[ id:'test', single_end:false ], // meta map
[file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true), file(params.test_data['sarscov2']['illumina']['test_2_fastq_gz'], checkIfExists: true)]
]
SNAPALIGNER_INDEX ( file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true),[],[],[])
SNAPALIGNER_ALIGN ( input, SNAPALIGNER_INDEX.out.index )
2022-05-06 12:10:44 +00:00
}