From ac7f634675e51d503a78b742e3163a54e1967e24 Mon Sep 17 00:00:00 2001 From: sruthipsuresh Date: Thu, 28 Jan 2021 18:41:49 -0600 Subject: [PATCH] Added complement test --- .github/filters.yml | 2 +- tests/software/bedtools/complement/main.nf | 16 ++++++++++++++++ tests/software/bedtools/complement/test.yml | 10 ++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 tests/software/bedtools/complement/main.nf create mode 100644 tests/software/bedtools/complement/test.yml diff --git a/.github/filters.yml b/.github/filters.yml index 73f120d4..40dce47b 100644 --- a/.github/filters.yml +++ b/.github/filters.yml @@ -147,7 +147,7 @@ ucsc_bedgraphtobigwig: bedtools_complement: - software/bedtools/complement/** - - tests/software/bedtools/** + - tests/software/bedtools/complement** bedtools_genomecov: - software/bedtools/genomecov/** diff --git a/tests/software/bedtools/complement/main.nf b/tests/software/bedtools/complement/main.nf new file mode 100644 index 00000000..42f8a5e2 --- /dev/null +++ b/tests/software/bedtools/complement/main.nf @@ -0,0 +1,16 @@ +#!/usr/bin/env nextflow + +nextflow.enable.dsl = 2 + +include { BEDTOOLS_COMPLEMENT } from '../../../../software/bedtools/complement/main.nf' addParams( options: [:] ) + + +workflow test_bedtools_complement { + def input = [] + input = [ [ id:'test'], + file("${launchDir}/tests/data/bed/A.bed", checkIfExists: true), + file("${launchDir}/tests/data/bed/genome.sizes", checkIfExists: true) ] //metamap + + BEDTOOLS_COMPLEMENT( input ) +} + diff --git a/tests/software/bedtools/complement/test.yml b/tests/software/bedtools/complement/test.yml new file mode 100644 index 00000000..2062646b --- /dev/null +++ b/tests/software/bedtools/complement/test.yml @@ -0,0 +1,10 @@ +- name: bedtools complement + command: nextflow run ./tests/software/bedtools/complement -entry test_bedtools_complement -c tests/config/nextflow.config + tags: + - bedtools + - bedtools_complement + + files: + - path: output/bedtools/test.complement.bed + md5sum: 55a43973abb1a08ac57290ff44f6c502 + should_exist: true