diff --git a/software/samtools/flagstat/test/input/test.paired_end.sorted.bam b/software/samtools/flagstat/test/input/test.paired_end.sorted.bam new file mode 120000 index 00000000..af606d91 --- /dev/null +++ b/software/samtools/flagstat/test/input/test.paired_end.sorted.bam @@ -0,0 +1 @@ +../../../../../tests/data/bam/test.paired_end.sorted.bam \ No newline at end of file diff --git a/software/samtools/flagstat/test/input/test.paired_end.sorted.bam.bai b/software/samtools/flagstat/test/input/test.paired_end.sorted.bam.bai new file mode 120000 index 00000000..61a71557 --- /dev/null +++ b/software/samtools/flagstat/test/input/test.paired_end.sorted.bam.bai @@ -0,0 +1 @@ +../../../../../tests/data/bam/test.paired_end.sorted.bam.bai \ No newline at end of file diff --git a/software/samtools/flagstat/test/main.nf b/software/samtools/flagstat/test/main.nf new file mode 100755 index 00000000..f41a0d86 --- /dev/null +++ b/software/samtools/flagstat/test/main.nf @@ -0,0 +1,19 @@ +#!/usr/bin/env nextflow + +nextflow.enable.dsl = 2 + +include { SAMTOOLS_FLAGSTAT } from '../main.nf' + +workflow test { + + def input = [] + input = [ [ id:'test', single_end:false ], // meta map + file("${baseDir}/input/test.paired_end.sorted.bam", checkIfExists: true), + file("${baseDir}/input/test.paired_end.sorted.bam.bai", checkIfExists: true) ] + + SAMTOOLS_FLAGSTAT ( input, [:] ) +} + +workflow { + test() +} diff --git a/software/samtools/flagstat/test/nextflow.config b/software/samtools/flagstat/test/nextflow.config new file mode 100644 index 00000000..44b62ed8 --- /dev/null +++ b/software/samtools/flagstat/test/nextflow.config @@ -0,0 +1,20 @@ + +params { + outdir = "output/" + publish_dir_mode = "copy" + conda = false +} + +profiles { + conda { + params.conda = true + } + docker { + docker.enabled = true + docker.runOptions = '-u \$(id -u):\$(id -g)' + } + singularity { + singularity.enabled = true + singularity.autoMounts = true + } +}