2021-01-21 21:16:20 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
|
|
|
include { DSH_FILTERBED } from '../../../software/dsh/filterbed/main.nf' addParams( options: [suffix: '.filtered', args: '--range chr1:0-1000'] )
|
2021-01-21 22:34:49 +00:00
|
|
|
include { DSH_SPLITBED } from '../../../software/dsh/splitbed/main.nf' addParams( options: [suffix: '.', args: '--records 2'] )
|
2021-01-21 21:16:20 +00:00
|
|
|
|
|
|
|
workflow test_dsh_filterbed {
|
|
|
|
|
|
|
|
def input = []
|
|
|
|
input = [ [ id:'A' ], // meta map
|
|
|
|
[ file("${launchDir}/tests/data/bed/A.bed.gz", checkIfExists: true) ] ]
|
|
|
|
|
|
|
|
DSH_FILTERBED ( input )
|
|
|
|
}
|
2021-01-21 22:34:49 +00:00
|
|
|
|
|
|
|
workflow test_dsh_splitbed {
|
|
|
|
|
|
|
|
def input = []
|
|
|
|
input = [ [ id:'A' ], // meta map
|
|
|
|
[ file("${launchDir}/tests/data/bed/A.bed.gz", checkIfExists: true) ] ]
|
|
|
|
|
|
|
|
DSH_SPLITBED ( input )
|
|
|
|
}
|