nf-core_modules/tests/modules/bamtools/split/main.nf

31 lines
933 B
Text
Raw Normal View History

2021-10-12 12:43:08 +00:00
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
2022-04-22 12:42:43 +00:00
include { BAMTOOLS_SPLIT as BAMTOOLS_SPLIT_SINGLE } from '../../../../modules/bamtools/split/main.nf'
include { BAMTOOLS_SPLIT as BAMTOOLS_SPLIT_MULTIPLE } from '../../../../modules/bamtools/split/main.nf'
2021-10-12 12:43:08 +00:00
2022-04-22 12:39:25 +00:00
workflow test_bamtools_split_single_input {
2021-10-12 12:43:08 +00:00
input = [
[ id:'test', single_end:false ], // meta map
2022-04-22 12:42:43 +00:00
file(params.test_data['homo_sapiens']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true)
]
2021-10-12 12:43:08 +00:00
2022-04-22 12:42:43 +00:00
BAMTOOLS_SPLIT_SINGLE ( input )
2022-04-22 12:39:25 +00:00
}
2022-04-22 13:02:41 +00:00
workflow test_bamtools_split_multiple {
2022-04-22 12:39:25 +00:00
input = [
[ id:'test', single_end:false ], // meta map
[
file(params.test_data['homo_sapiens']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true),
file(params.test_data['homo_sapiens']['illumina']['test2_paired_end_sorted_bam'], checkIfExists: true)
]
2022-04-22 13:02:41 +00:00
]
2022-04-22 12:39:25 +00:00
2022-04-22 12:42:43 +00:00
BAMTOOLS_SPLIT_MULTIPLE ( input )
2021-10-12 12:43:08 +00:00
}
2022-04-22 13:02:41 +00:00