nf-core_modules/tests/modules/mosdepth/main.nf
Ramprasad Neethiraj 45acc79667
Update mosdepth (#1256)
* nf-core create

* svdb merge module and test

* remove to-do from test.yml

* version

* update meta.yml

* mosdepth update

* update md5sums

* add stub

* add stub

* remove svdb

* remove merge

* Add tests

* code linting fix

* undo previous commit

* revert code linting fix
2022-02-09 12:45:55 +00:00

36 lines
1.3 KiB
Text

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { MOSDEPTH } from '../../../modules/mosdepth/main.nf'
workflow test_mosdepth {
input = [ [ id:'test', single_end:true ],
[ file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true) ],
[ file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam_bai'], checkIfExists: true) ]
]
MOSDEPTH ( input, [], [] )
}
workflow test_mosdepth_window {
input = [ [ id:'test', single_end:true ],
[ file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true) ],
[ file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam_bai'], checkIfExists: true) ]
]
window = 100
MOSDEPTH ( input, [], window )
}
workflow test_mosdepth_bed {
input = [ [ id:'test', single_end:true ],
[ file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true) ],
[ file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam_bai'], checkIfExists: true) ]
]
bed = [ file(params.test_data['sarscov2']['genome']['test_bed'], checkIfExists: true) ]
MOSDEPTH ( input, bed, [] )
}