Skip to content

Commit

Permalink
Merge branch 'master' into nf-test/vsearch_usearchglobal
Browse files Browse the repository at this point in the history
  • Loading branch information
SPPearce authored Aug 22, 2024
2 parents 6a737fe + a289753 commit e638485
Show file tree
Hide file tree
Showing 22 changed files with 311 additions and 165 deletions.
2 changes: 2 additions & 0 deletions modules/nf-core/arriba/download/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ process ARRIBA_DOWNLOAD {
'https://depot.galaxyproject.org/singularity/arriba:2.4.0--h0033a41_2' :
'biocontainers/arriba:2.4.0--h0033a41_2' }"

input:

output:
path "*" , emit: reference
path "versions.yml" , emit: versions
Expand Down
35 changes: 35 additions & 0 deletions modules/nf-core/arriba/download/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

nextflow_process {

name "Test Process ARRIBA_DOWNLOAD"
script "../main.nf"
process "ARRIBA_DOWNLOAD"

tag "modules"
tag "modules_nfcore"
tag "arriba"
tag "arriba/download"

test("test-arriba-download") {

when {
process {
"""
"""
}
}

then {
assertAll(
{ assert process.success },
{ assert snapshot(
process.out.reference[0].collect { file(it).name }.toSorted(),
process.out.versions
).match()
}
)
}
}

}
35 changes: 35 additions & 0 deletions modules/nf-core/arriba/download/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"test-arriba-download": {
"content": [
[
"CREDITS",
"RefSeq_viral_genomes_v2.4.0.fa.gz",
"blacklist_hg19_hs37d5_GRCh37_v2.4.0.tsv.gz",
"blacklist_hg38_GRCh38_v2.4.0.tsv.gz",
"blacklist_mm10_GRCm38_v2.4.0.tsv.gz",
"blacklist_mm39_GRCm39_v2.4.0.tsv.gz",
"cytobands_hg19_hs37d5_GRCh37_v2.4.0.tsv",
"cytobands_hg38_GRCh38_v2.4.0.tsv",
"cytobands_mm10_GRCm38_v2.4.0.tsv",
"cytobands_mm39_GRCm39_v2.4.0.tsv",
"known_fusions_hg19_hs37d5_GRCh37_v2.4.0.tsv.gz",
"known_fusions_hg38_GRCh38_v2.4.0.tsv.gz",
"known_fusions_mm10_GRCm38_v2.4.0.tsv.gz",
"known_fusions_mm39_GRCm39_v2.4.0.tsv.gz",
"protein_domains_hg19_hs37d5_GRCh37_v2.4.0.gff3",
"protein_domains_hg38_GRCh38_v2.4.0.gff3",
"protein_domains_mm10_GRCm38_v2.4.0.gff3",
"protein_domains_mm39_GRCm39_v2.4.0.gff3",
"versions.yml"
],
[
"versions.yml:md5,98c69df5eaea5caf0b4af7b8d7af4893"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-22T17:00:38.086459"
}
}
2 changes: 1 addition & 1 deletion modules/nf-core/verifybamid/verifybamid/environment.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: VERIFYBAMID_VERIFYBAMID
name: verifybamid_verifybamid
channels:
- conda-forge
- bioconda
Expand Down
4 changes: 2 additions & 2 deletions modules/nf-core/verifybamid/verifybamid/meta.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "VERIFYBAMID_VERIFYBAMID"
name: "verifybamid_verifybamid"
description: Detecting and estimating inter-sample DNA contamination became a crucial quality assessment step to ensure high quality sequence reads and reliable downstream analysis.
keywords:
- qc
Expand All @@ -11,7 +11,7 @@ tools:
documentation: "http://genome.sph.umich.edu/wiki/VerifyBamID"
tool_dev_url: "https://github.com/statgen/verifyBamID"
doi: "10.1016/j.ajhg.2012.09.004"
licence: "['GPL v3']"
licence: ["GPL v3"]
input:
- meta:
type: map
Expand Down
44 changes: 44 additions & 0 deletions modules/nf-core/verifybamid/verifybamid/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

nextflow_process {

name "Test Process VERIFYBAMID_VERIFYBAMID"
script "../main.nf"
process "VERIFYBAMID_VERIFYBAMID"
config "./nextflow.config"

tag "modules"
tag "modules_nfcore"
tag "verifybamid"
tag "verifybamid/verifybamid"

test("test-verifybamid-verifybamid") {

when {
process {
"""
input[0] = [ [ id:'test', single_end:false ], // meta map
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test.paired_end.sorted.bam', checkIfExists: true),
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test.paired_end.sorted.bam.bai', checkIfExists: true)
]
input[1] = file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/vcf/genmod.vcf.gz', checkIfExists: true)
"""
}
}

then {
assertAll(
{ assert process.success },
{ assert snapshot(
file(process.out.log[0][1]).name,
process.out.depthrg,
process.out.depthsm,
process.out.selfrg,
process.out.selfsm,
process.out.versions,
).match() }
)
}
}

}
51 changes: 51 additions & 0 deletions modules/nf-core/verifybamid/verifybamid/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"test-verifybamid-verifybamid": {
"content": [
"test.log",
[
[
{
"id": "test",
"single_end": false
},
"test.depthRG:md5,2374504c4138c04f3b29210dcb3da96f"
]
],
[
[
{
"id": "test",
"single_end": false
},
"test.depthSM:md5,4f5367f2be8567b95b57278b2e7372c3"
]
],
[
[
{
"id": "test",
"single_end": false
},
"test.selfRG:md5,3772283d3eaa88683f562a2157b92d55"
]
],
[
[
{
"id": "test",
"single_end": false
},
"test.selfSM:md5,5d2808d70f76e2f753b670fc9b2a6d55"
]
],
[
"versions.yml:md5,36b44d66ecfdbef7191f47a33f688b7f"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-22T17:54:07.273193"
}
}
3 changes: 3 additions & 0 deletions modules/nf-core/verifybamid/verifybamid/tests/nextflow.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
process {
ext.args = '--ignoreRG'
}
2 changes: 1 addition & 1 deletion modules/nf-core/vt/decompose/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tools:
homepage: "https://genome.sph.umich.edu/wiki/Vt"
documentation: "https://genome.sph.umich.edu/wiki/Vt"
tool_dev_url: "https://github.com/atks/vt"
licence: "['MIT']"
licence: ["MIT"]
input:
- meta:
type: map
Expand Down
60 changes: 60 additions & 0 deletions modules/nf-core/vt/decompose/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@

nextflow_process {

name "Test Process VT_DECOMPOSE"
script "../main.nf"
process "VT_DECOMPOSE"
config "./nextflow.config"

tag "modules"
tag "modules_nfcore"
tag "vt"
tag "vt/decompose"

test("test-vt-decompose") {

when {
process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/vcf/test.vcf.gz', checkIfExists: true),
[]
]
"""
}
}

then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
)
}
}

test("test-vt-decompose-intervals") {

when {
process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/vcf/test.vcf', checkIfExists: true),
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/bed/test.bed', checkIfExists: true)
]
"""
}
}

then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
)
}
}

}
72 changes: 72 additions & 0 deletions modules/nf-core/vt/decompose/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"test-vt-decompose-intervals": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"decompose.vcf.gz:md5,892b6b5c55c69afd3a96cd9bfd8ab743"
]
],
"1": [
"versions.yml:md5,f10f0ae7e4b74341393c2a9fc87afa87"
],
"vcf": [
[
{
"id": "test",
"single_end": false
},
"decompose.vcf.gz:md5,892b6b5c55c69afd3a96cd9bfd8ab743"
]
],
"versions": [
"versions.yml:md5,f10f0ae7e4b74341393c2a9fc87afa87"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-22T17:30:33.250927"
},
"test-vt-decompose": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"decompose.vcf.gz:md5,892b6b5c55c69afd3a96cd9bfd8ab743"
]
],
"1": [
"versions.yml:md5,f10f0ae7e4b74341393c2a9fc87afa87"
],
"vcf": [
[
{
"id": "test",
"single_end": false
},
"decompose.vcf.gz:md5,892b6b5c55c69afd3a96cd9bfd8ab743"
]
],
"versions": [
"versions.yml:md5,f10f0ae7e4b74341393c2a9fc87afa87"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-22T17:30:27.223776"
}
}
5 changes: 5 additions & 0 deletions modules/nf-core/vt/decompose/tests/nextflow.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
process {
withName: VT_DECOMPOSE {
ext.prefix = "decompose"
}
}
9 changes: 0 additions & 9 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ angsd/contamination:
arriba/arriba:
- modules/nf-core/arriba/arriba/**
- tests/modules/nf-core/arriba/arriba/**
arriba/download:
- modules/nf-core/arriba/download/**
- tests/modules/nf-core/arriba/download/**
artic/guppyplex:
- modules/nf-core/artic/guppyplex/**
- tests/modules/nf-core/artic/guppyplex/**
Expand Down Expand Up @@ -1641,9 +1638,6 @@ vcflib/vcffilter:
vcflib/vcfuniq:
- modules/nf-core/vcflib/vcfuniq/**
- tests/modules/nf-core/vcflib/vcfuniq/**
verifybamid/verifybamid:
- modules/nf-core/verifybamid/verifybamid/**
- tests/modules/nf-core/verifybamid/verifybamid/**
verifybamid/verifybamid2:
- modules/nf-core/verifybamid/verifybamid2/**
- tests/modules/nf-core/verifybamid/verifybamid2/**
Expand All @@ -1668,9 +1662,6 @@ vrhyme/vrhyme:
vsearch/sintax:
- modules/nf-core/vsearch/sintax/**
- tests/modules/nf-core/vsearch/sintax/**
vt/decompose:
- modules/nf-core/vt/decompose/**
- tests/modules/nf-core/vt/decompose/**
vt/normalize:
- modules/nf-core/vt/normalize/**
- tests/modules/nf-core/vt/normalize/**
Expand Down
10 changes: 0 additions & 10 deletions tests/modules/nf-core/arriba/download/main.nf

This file was deleted.

Loading

0 comments on commit e638485

Please sign in to comment.