2021-08-02 13:37:48 +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_SAMPE } from '../../../../modules/bwa/sampe/main.nf'
|
2021-08-02 13:37:48 +00:00
|
|
|
|
|
|
|
workflow test_bwa_sampe {
|
|
|
|
|
2021-09-28 05:56:27 +00:00
|
|
|
Channel
|
|
|
|
.fromList(
|
|
|
|
[
|
|
|
|
[ id:'test', single_end:false ],
|
|
|
|
[ [ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true),
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test_2_fastq_gz'], checkIfExists: true) ] ]
|
2021-08-02 13:37:48 +00:00
|
|
|
]
|
2021-09-28 05:56:27 +00:00
|
|
|
).collect()
|
|
|
|
.set { input }
|
2021-08-02 13:37:48 +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_SAMPE ( input.join(BWA_ALN.out.sai), BWA_INDEX.out.index )
|
2021-08-02 13:37:48 +00:00
|
|
|
}
|