2021-02-03 11:02:58 -05:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-07-07 05:10:18 -04: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 11:02:58 -05:00
|
|
|
|
2021-04-16 03:56:47 -04:00
|
|
|
workflow test_samtools_index_bai {
|
2021-02-03 11:02:58 -05:00
|
|
|
input = [ [ id:'test', single_end:false ], // meta map
|
2021-03-24 14:15:30 -04:00
|
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true)
|
2021-03-24 05:53:41 -04:00
|
|
|
]
|
2021-03-24 14:15:30 -04:00
|
|
|
|
2021-04-16 03:56:47 -04: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 11:02:58 -05:00
|
|
|
}
|