2022-05-06 12:10:44 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2022-06-29 10:37:38 +00:00
|
|
|
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),[],[],[])
|
2022-06-29 10:37:38 +00:00
|
|
|
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),[],[],[])
|
2022-06-29 10:37:38 +00:00
|
|
|
SNAPALIGNER_ALIGN ( input, SNAPALIGNER_INDEX.out.index )
|
2022-05-06 12:10:44 +00:00
|
|
|
}
|