mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-23 19:48:16 +00:00
44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
#!/usr/bin/env nextflow
|
|
nextflow.enable.dsl = 2
|
|
|
|
include { BEDTOOLS_SLOP as BEDTOOLS_SLOP_S } from '../main.nf' addParams( options: [ publish_dir:'test_asymmetrical' ] )
|
|
include { BEDTOOLS_SLOP as BEDTOOLS_SLOP_AS } from '../main.nf' addParams( options: [ publish_dir:'test_symmetrical' ] )
|
|
|
|
// To run with header and pct enabled, type --pct true and --header true with nextflow run command.
|
|
|
|
// Run the workflow
|
|
/*
|
|
Test with l/r method
|
|
*/
|
|
workflow test_asymmetrical {
|
|
def input = []
|
|
input = [ [ id:'test', symmetry: false ],
|
|
[ file("${baseDir}/input/A.bed", checkIfExists: true),] ]
|
|
|
|
BEDTOOLS_SLOP_AS(
|
|
input,
|
|
file("${baseDir}/input/genome.sizes", checkIfExists: true)
|
|
)
|
|
|
|
}
|
|
/*
|
|
Test with b method
|
|
*/
|
|
workflow test_symmetrical {
|
|
def input = []
|
|
input = [ [ id:'test', symmetry: true],
|
|
[ file("${baseDir}/input/A.bed", checkIfExists: true),] ]
|
|
|
|
BEDTOOLS_SLOP_S(
|
|
input,
|
|
file("${baseDir}/input/genome.sizes", checkIfExists: true)
|
|
)
|
|
|
|
}
|
|
|
|
workflow {
|
|
test_asymmetrical()
|
|
test_symmetrical()
|
|
}
|
|
|
|
// output has - b 10 and -l 1 -r 10 as test values. pct and header are both false.
|