diff --git a/software/bedtools/sloprefseq/test/input/A.bed b/software/bedtools/sloprefseq/test/input/A.bed new file mode 100644 index 00000000..dc9a4f0c --- /dev/null +++ b/software/bedtools/sloprefseq/test/input/A.bed @@ -0,0 +1,5 @@ +chr1 951 1061 +chr1 1300 1420 +chr1 1400 1500 + + diff --git a/software/bedtools/sloprefseq/test/input/genome.sizes b/software/bedtools/sloprefseq/test/input/genome.sizes new file mode 100644 index 00000000..8cc54558 --- /dev/null +++ b/software/bedtools/sloprefseq/test/input/genome.sizes @@ -0,0 +1 @@ +chr1 1780869 diff --git a/software/bedtools/sloprefseq/test/main.nf b/software/bedtools/sloprefseq/test/main.nf new file mode 100644 index 00000000..6ba25510 --- /dev/null +++ b/software/bedtools/sloprefseq/test/main.nf @@ -0,0 +1,22 @@ +#!/usr/bin/env nextflow + +nextflow.preview.dsl = 2 + +include BEDTOOLS_SLOPREFSEQ from '../sloprefseq/main.nf' addParams( options: [publish_dir:'test_bed_file']) + +// Define input channels + +// Run the workflow +workflow test_bed_file{ + def input = [] + input = [ [ id:'test' ], + [ file("${baseDir}/input/A.bed", checkIfExists: true), + file("${baseDir}/input/genome.sizes", checkIfExists: true)] ] + + BEDTOOLS_SLOPREFSEQ ( input ) + +} + +workflow { + test_bed_file() +} diff --git a/software/bedtools/sloprefseq/test/nextflow.config b/software/bedtools/sloprefseq/test/nextflow.config new file mode 100644 index 00000000..01af7cef --- /dev/null +++ b/software/bedtools/sloprefseq/test/nextflow.config @@ -0,0 +1,19 @@ +params { + outdir = "output/" + publish_dir_mode = "copy" + enable_conda = false +} + +profiles { + conda { + params.enable_conda = true + } + docker { + docker.enabled = true + docker.runOptions = '-u \$(id -u):\$(id -g)' + } + singularity { + singularity.enabled = true + singularity.autoMounts = true + } +}