2020-12-21 19:06:57 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
|
|
|
include { BEDTOOLS_COMPLEMENT } from '../../../software/bedtools/complement/main.nf' addParams( options: [:] )
|
|
|
|
include { BEDTOOLS_GENOMECOV } from '../../../software/bedtools/genomecov/main.nf' addParams( options: [:] )
|
|
|
|
include { BEDTOOLS_INTERSECT } from '../../../software/bedtools/intersect/main.nf' addParams( options: [:] )
|
|
|
|
include { BEDTOOLS_MERGE } from '../../../software/bedtools/merge/main.nf' addParams( options: [:] )
|
2021-01-28 12:24:03 +00:00
|
|
|
include { BEDTOOLS_SLOP} from '../../../software/bedtools/slop/main.nf' addParams( options: [args: '-l 15 -r 30'] )
|
2021-01-08 19:22:07 +00:00
|
|
|
include { BEDTOOLS_SORT } from '../../../software/bedtools/sort/main.nf' addParams( options: [:] )
|
2020-12-21 19:06:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
workflow test_bedtools_complement {
|
|
|
|
def input = []
|
2021-01-08 18:21:55 +00:00
|
|
|
input = [ [ id:'test'],
|
2020-12-21 19:06:57 +00:00
|
|
|
file("${launchDir}/tests/data/bed/A.bed", checkIfExists: true),
|
|
|
|
file("${launchDir}/tests/data/bed/genome.sizes", checkIfExists: true) ] //metamap
|
|
|
|
|
|
|
|
BEDTOOLS_COMPLEMENT( input )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_bedtools_genomecov {
|
|
|
|
def input = []
|
2021-01-08 18:21:55 +00:00
|
|
|
input = [ [ id:'test'],
|
2021-01-28 14:24:33 +00:00
|
|
|
file("${launchDir}/tests/data/bam/test.paired_end.sorted.bam", checkIfExists: true) ]
|
2020-12-21 19:06:57 +00:00
|
|
|
|
|
|
|
BEDTOOLS_GENOMECOV( input )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_bedtools_intersect {
|
|
|
|
def input = []
|
2021-01-08 18:21:55 +00:00
|
|
|
input = [ [ id:'test'],
|
2020-12-21 19:06:57 +00:00
|
|
|
file("${launchDir}/tests/data/bed/A.bed", checkIfExists: true),
|
|
|
|
file("${launchDir}/tests/data/bed/B.bed", checkIfExists: true) ] //metamap
|
|
|
|
|
|
|
|
BEDTOOLS_INTERSECT( input )
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
workflow test_bedtools_merge {
|
|
|
|
def input = []
|
2021-01-08 19:05:46 +00:00
|
|
|
input = [ [ id:'test' ], // meta map
|
|
|
|
file("${launchDir}/tests/data/bed/A.bed", checkIfExists: true) ]
|
|
|
|
BEDTOOLS_MERGE(input)
|
2020-12-21 19:06:57 +00:00
|
|
|
}
|
|
|
|
|
2021-01-28 12:24:03 +00:00
|
|
|
workflow test_bedtools_slop {
|
2020-12-21 19:06:57 +00:00
|
|
|
def input = []
|
2021-01-28 12:24:03 +00:00
|
|
|
input = [ [ id:'test'],
|
2020-12-21 19:06:57 +00:00
|
|
|
file("${launchDir}/tests/data/bed/A.bed", checkIfExists: true),
|
|
|
|
file("${launchDir}/tests/data/bed/genome.sizes", checkIfExists: true) ] //metamap
|
2021-01-28 12:24:03 +00:00
|
|
|
BEDTOOLS_SLOP ( input )
|
2020-12-21 19:06:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_bedtools_sort {
|
|
|
|
def input = []
|
2021-01-08 18:21:55 +00:00
|
|
|
input = [ [ id:'test'],
|
2020-12-21 19:06:57 +00:00
|
|
|
file("${launchDir}/tests/data/bed/A.bed", checkIfExists: true) ]
|
|
|
|
|
|
|
|
BEDTOOLS_SORT( input )
|
2021-01-08 19:54:56 +00:00
|
|
|
|
2020-12-21 19:06:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|