#!/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 ) }