2021-08-02 13:21:23 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-11-26 07:58:40 +00: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 13:21:23 +00:00
|
|
|
|
|
|
|
workflow test_bwa_samse {
|
|
|
|
|
2021-09-28 05:56:27 +00: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 13:21:23 +00: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 05:56:27 +00:00
|
|
|
BWA_SAMSE ( input.join(BWA_ALN.out.sai, by:[0]), BWA_INDEX.out.index )
|
2021-08-02 13:21:23 +00:00
|
|
|
}
|