2021-02-03 16:02:58 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-07-07 09:10:18 +00:00
|
|
|
include { SAMTOOLS_INDEX as SAMTOOLS_INDEX_BAI } from '../../../../modules/samtools/index/main.nf' addParams( options: [:] )
|
|
|
|
include { SAMTOOLS_INDEX as SAMTOOLS_INDEX_CSI } from '../../../../modules/samtools/index/main.nf' addParams( options: [args:'-c'] )
|
2021-02-03 16:02:58 +00:00
|
|
|
|
2021-04-16 07:56:47 +00:00
|
|
|
workflow test_samtools_index_bai {
|
2021-02-03 16:02:58 +00:00
|
|
|
input = [ [ id:'test', single_end:false ], // meta map
|
2021-03-24 18:15:30 +00:00
|
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true)
|
2021-03-24 09:53:41 +00:00
|
|
|
]
|
2021-03-24 18:15:30 +00:00
|
|
|
|
2021-04-16 07:56:47 +00:00
|
|
|
SAMTOOLS_INDEX_BAI ( input )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_samtools_index_csi {
|
|
|
|
input = [ [ id:'test', single_end:false ], // meta map
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true)
|
|
|
|
]
|
|
|
|
|
|
|
|
SAMTOOLS_INDEX_CSI ( input )
|
2021-02-03 16:02:58 +00:00
|
|
|
}
|