diff --git a/modules/nf-core/pairix/meta.yml b/modules/nf-core/pairix/meta.yml index 2b837d12e19..f5277182514 100644 --- a/modules/nf-core/pairix/meta.yml +++ b/modules/nf-core/pairix/meta.yml @@ -4,6 +4,8 @@ description: | containing pairs of genomic coordinates keywords: - index + - block-compressed + - pairs tools: - pairix: description: 2D indexing on bgzipped text files of paired genomic coordinates diff --git a/modules/nf-core/pairix/tests/main.nf.test b/modules/nf-core/pairix/tests/main.nf.test new file mode 100644 index 00000000000..bcfffff8549 --- /dev/null +++ b/modules/nf-core/pairix/tests/main.nf.test @@ -0,0 +1,32 @@ + +nextflow_process { + + name "Test Process PAIRIX" + script "../main.nf" + process "PAIRIX" + + tag "modules" + tag "modules_nfcore" + tag "pairix" + + test("test-pairix") { + + when { + process { + """ + input[0] = [ [ id:'test', single_end:false ], // meta map + file("https://raw.githubusercontent.com/4dn-dcic/pairix/master/samples/4dn.bsorted.chr21_22_only.nontriangle.pairs.gz", checkIfExists: true) ] + + """ + } + } + + then { + assertAll( + { assert process.success }, + { assert snapshot(process.out).match() } + ) + } + } + +} diff --git a/modules/nf-core/pairix/tests/main.nf.test.snap b/modules/nf-core/pairix/tests/main.nf.test.snap new file mode 100644 index 00000000000..d11b4bb4cbc --- /dev/null +++ b/modules/nf-core/pairix/tests/main.nf.test.snap @@ -0,0 +1,39 @@ +{ + "test-pairix": { + "content": [ + { + "0": [ + [ + { + "id": "test", + "single_end": false + }, + "4dn.bsorted.chr21_22_only.nontriangle.pairs.gz:md5,ee90dc99987ece492d598ed939d54561", + "4dn.bsorted.chr21_22_only.nontriangle.pairs.gz.px2:md5,a6e41cc7cff16fd15b5ee505549ec99a" + ] + ], + "1": [ + "versions.yml:md5,848c8be602ec36645d30010ea30f0684" + ], + "index": [ + [ + { + "id": "test", + "single_end": false + }, + "4dn.bsorted.chr21_22_only.nontriangle.pairs.gz:md5,ee90dc99987ece492d598ed939d54561", + "4dn.bsorted.chr21_22_only.nontriangle.pairs.gz.px2:md5,a6e41cc7cff16fd15b5ee505549ec99a" + ] + ], + "versions": [ + "versions.yml:md5,848c8be602ec36645d30010ea30f0684" + ] + } + ], + "meta": { + "nf-test": "0.8.4", + "nextflow": "24.04.4" + }, + "timestamp": "2024-08-23T11:25:18.874503" + } +} \ No newline at end of file diff --git a/tests/config/pytest_modules.yml b/tests/config/pytest_modules.yml index 476c1a5de98..129dbffc219 100644 --- a/tests/config/pytest_modules.yml +++ b/tests/config/pytest_modules.yml @@ -998,9 +998,6 @@ oncocnv: paftools/sam2paf: - modules/nf-core/paftools/sam2paf/** - test/modules/nf-core/paftools/sam2paf/** -pairix: - - modules/nf-core/pairix/** - - tests/modules/nf-core/pairix/** pairtools/dedup: - modules/nf-core/pairtools/dedup/** - tests/modules/nf-core/pairtools/dedup/** diff --git a/tests/modules/nf-core/pairix/main.nf b/tests/modules/nf-core/pairix/main.nf deleted file mode 100644 index 04591eaf0c3..00000000000 --- a/tests/modules/nf-core/pairix/main.nf +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env nextflow - -nextflow.enable.dsl = 2 - -include { PAIRIX } from '../../../../modules/nf-core/pairix/main.nf' - -workflow test_pairix { - - input = [ [ id:'test', single_end:false ], // meta map - file("https://raw.githubusercontent.com/4dn-dcic/pairix/master/samples/4dn.bsorted.chr21_22_only.nontriangle.pairs.gz", checkIfExists: true) ] - - PAIRIX ( input ) -} diff --git a/tests/modules/nf-core/pairix/nextflow.config b/tests/modules/nf-core/pairix/nextflow.config deleted file mode 100644 index 8730f1c4b93..00000000000 --- a/tests/modules/nf-core/pairix/nextflow.config +++ /dev/null @@ -1,5 +0,0 @@ -process { - - publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } - -} diff --git a/tests/modules/nf-core/pairix/test.yml b/tests/modules/nf-core/pairix/test.yml deleted file mode 100644 index 88cd5fcf985..00000000000 --- a/tests/modules/nf-core/pairix/test.yml +++ /dev/null @@ -1,9 +0,0 @@ -- name: pairix test_pairix - command: nextflow run ./tests/modules/nf-core/pairix -entry test_pairix -c ./tests/config/nextflow.config -c ./tests/modules/nf-core/pairix/nextflow.config - tags: - - pairix - files: - - path: output/pairix/4dn.bsorted.chr21_22_only.nontriangle.pairs.gz - md5sum: a0165859d0151f45fe6fb206f2f4814b - - path: output/pairix/4dn.bsorted.chr21_22_only.nontriangle.pairs.gz.px2 - md5sum: a6e41cc7cff16fd15b5ee505549ec99a