2021-08-02 09:21:23 -04:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-11-26 02:58:40 -05:00
|
|
|
include { BWA_INDEX } from '../../../../modules/bwa/index/main.nf'
|
|
|
|
include { BWA_ALN } from '../../../../modules/bwa/aln/main.nf'
|
|
|
|
include { BWA_SAMSE } from '../../../../modules/bwa/samse/main.nf'
|
2021-08-02 09:21:23 -04:00
|
|
|
|
|
|
|
workflow test_bwa_samse {
|
|
|
|
|
2021-09-28 01:56:27 -04:00
|
|
|
Channel
|
|
|
|
.fromList(
|
|
|
|
[ [ id:'test', single_end:true ],
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true) ]
|
|
|
|
).collect()
|
|
|
|
.set { input }
|
2021-08-02 09:21:23 -04:00
|
|
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
|
|
|
|
BWA_INDEX ( fasta )
|
|
|
|
BWA_ALN ( input, BWA_INDEX.out.index )
|
2021-09-28 01:56:27 -04:00
|
|
|
BWA_SAMSE ( input.join(BWA_ALN.out.sai, by:[0]), BWA_INDEX.out.index )
|
2021-08-02 09:21:23 -04:00
|
|
|
}
|