8000 purgedups/calcuts nftest migration by hyunhwan-jeong · Pull Request #8471 · nf-core/modules · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

purgedups/calcuts nftest migration #8471

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions modules/nf-core/purgedups/calcuts/meta.yml
< 8000 td class="blob-code blob-code-context js-file-line"> - meta:
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ input:
type: file
description: Histogram of coverage
pattern: "*.stat"
ontologies: []
output:
- cutoff:
Expand All @@ -35,6 +36,7 @@ output:
type: file
description: Cutoff file
pattern: "*.cutoffs"
ontologies: []
- log:
- meta:
type: map
Expand All @@ -45,11 +47,14 @@ output:
type: file
description: Log file
pattern: ".calcuts.log"
ontologies: []
- versions:
- versions.yml:
type: file
description: File containing software versions
pattern: "versions.yml"
ontologies:
- edam: http://edamontology.org/format_3750 # YAML
authors:
- "@mahesh-panchal"
maintainers:
Expand Down
43 changes: 43 additions & 0 deletions modules/nf-core/purgedups/calcuts/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "purgedups"
tag "purgedups/pbcstat"
tag "purgedups/calcuts"

test("test_purgedups_calcuts") {

setup {
run("PURGEDUPS_PBCSTAT") {
script "../../pbcstat/main.nf"

process {
"""
input[0] = [
[id:'test'],// meta map
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.paf',checkIfExists:true)
]
"""
}
}
}
when {
process {
"""
input[0] = PURGEDUPS_PBCSTAT.out.stat
"""
}
}
then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
)
}
}
}
51 changes: 51 additions & 0 deletions modules/nf-core/purgedups/calcuts/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"test_purgedups_calcuts": {
"content": [
{
"0": [
[
{
"id": "test"
},
"test.cutoffs:md5,e13542222f6e6e4e0d87754956641008"
]
],
"1": [
[
{
"id": "test"
},
"test.calcuts.log:md5,04053f23b4dbb7947e8b2cb820ca6681"
]
],
"2": [
"versions.yml:md5,df5b856012c4a77707e608b2a73f6dde"
],
"cutoff": [
[
{
"id": "test"
},
"test.cutoffs:md5,e13542222f6e6e4e0d87754956641008"
]
],
"log": [
[
{
"id": "test"
},
"test.calcuts.log:md5,04053f23b4dbb7947e8b2cb820ca6681"
]
],
"versions": [
"versions.yml:md5,df5b856012c4a77707e608b2a73f6dde"
]
}
],
"meta": {
"nf-test": "0.9.2",
"nextflow": "25.04.2"
},
"timestamp": "2025-05-14T14:07:01.617419051"
}
}
6 changes: 6 additions & 0 deletions modules/nf-core/purgedups/getseqs/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ input:
type: file
description: Draft assembly in fasta format
pattern: "*.fasta"
ontologies: []
- bed:
type: file
description: Bed file listing duplicated sequences, produced by PURGEDUPS_PURGEDUPS
pattern: "*.bed"
ontologies: []
output:
- haplotigs:
- meta:
Expand All @@ -40,6 +42,7 @@ output:
type: file
description: Fasta file containing purged haplotigs
pattern: "*.hap.fa"
ontologies: []
- purged:
- meta:
type: map
Expand All @@ -50,11 +53,14 @@ output:
type: file
description: Fasta file purged of duplicated haplotigs
pattern: "*.purged.fa"
ontologies: []
- versions:
- versions.yml:
type: file
description: File containing software versions
pattern: "versions.yml"
ontologies:
- edam: http://edamontology.org/format_3750 # YAML
authors:
- "@mahesh-panchal"
maintainers:
Expand Down
6 changes: 0 additions & 6 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ oncocnv:
paragraph/idxdepth:
- modules/nf-core/paragraph/idxdepth/**
- tests/modules/nf-core/paragraph/idxdepth/**
purgedups/calcuts:
- modules/nf-core/purgedups/calcuts/**
- tests/modules/nf-core/purgedups/calcuts/**
purgedups/getseqs:
- modules/nf-core/purgedups/getseqs/**
- tests/modules/nf-core/purgedups/getseqs/**
purgedups/histplot:
- modules/nf-core/purgedups/histplot/**
- tests/modules/nf-core/purgedups/histplot/**
Expand Down
17 changes: 0 additions & 17 deletions tests/modules/nf-core/purgedups/calcuts/main.nf

This file was deleted.

9 changes: 0 additions & 9 deletions tests/modules/nf-core/purgedups/calcuts/nextflow.config

This file was deleted.

10 changes: 0 additions & 10 deletions tests/modules/nf-core/purgedups/calcuts/test.yml

This file was deleted.

17 changes: 0 additions & 17 deletions tests/modules/nf-core/purgedups/getseqs/main.nf

This file was deleted.

5 changes: 0 additions & 5 deletions tests/modules/nf-core/purgedups/getseqs/nextflow.config

This file was deleted.

10 changes: 0 additions & 10 deletions tests/modules/nf-core/purgedups/getseqs/test.yml

This file was deleted.

Loading
0