mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-15 06:03:10 +00:00
28 lines
1.1 KiB
Text
28 lines
1.1 KiB
Text
#!/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'
|
|
|
|
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 )
|
|
}
|
|
|
|
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 )
|
|
}
|