Skip to content
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

Updated shinyngs containers and nftest snaps #7323

Merged
merged 5 commits into from
Jan 17, 2025
Merged
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
2 changes: 1 addition & 1 deletion modules/nf-core/shinyngs/app/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ channels:
- conda-forge
- bioconda
dependencies:
- bioconda::r-shinyngs=2.0.0
- bioconda::r-shinyngs=2.1.0
4 changes: 2 additions & 2 deletions modules/nf-core/shinyngs/app/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ process SHINYNGS_APP {

conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/r-shinyngs:2.0.0--r43hdfd78af_0' :
'biocontainers/r-shinyngs:2.0.0--r43hdfd78af_0' }"
'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/97/971684ed03cda2689eea7db9e7f2ee74d079ddd74e3a3baac31e958eea6feb0e/data' :
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice- was going to suggest this

'community.wave.seqera.io/library/r-shinyngs:2.1.0--09e258eb60cb225f' }"

input:
tuple val(meta), path(sample), path(feature_meta), path(assay_files) // Experiment-level info
Expand Down
24 changes: 12 additions & 12 deletions modules/nf-core/shinyngs/app/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,41 @@
"data.rds",
"app.R:md5,d41d8cd98f00b204e9800998ecf8427e",
[
"versions.yml:md5,a6c3af4b2fd261b4049c92449ea6bb4d"
"versions.yml:md5,8e8f77fd5f860fb3e8123f266c0c450b"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
"nf-test": "0.9.2",
"nextflow": "24.10.3"
},
"timestamp": "2024-06-25T09:43:49.880332"
"timestamp": "2025-01-16T20:12:57.965636745"
},
"mouse - multi matrix": {
"content": [
"data.rds",
"app.R:md5,bedcfc45b6cdcc2b8fe3627987e2b17a",
[
"versions.yml:md5,a6c3af4b2fd261b4049c92449ea6bb4d"
"versions.yml:md5,8e8f77fd5f860fb3e8123f266c0c450b"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
"nf-test": "0.9.2",
"nextflow": "24.10.3"
},
"timestamp": "2024-06-25T09:43:15.455356"
"timestamp": "2025-01-16T20:12:25.659843541"
},
"mouse - single matrix": {
"content": [
"data.rds",
"app.R:md5,bedcfc45b6cdcc2b8fe3627987e2b17a",
[
"versions.yml:md5,a6c3af4b2fd261b4049c92449ea6bb4d"
"versions.yml:md5,8e8f77fd5f860fb3e8123f266c0c450b"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
"nf-test": "0.9.2",
"nextflow": "24.10.3"
},
"timestamp": "2024-06-25T09:43:35.309081"
"timestamp": "2025-01-16T20:12:44.933479752"
}
}
3 changes: 1 addition & 2 deletions modules/nf-core/shinyngs/staticdifferential/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ channels:
- conda-forge
- bioconda
dependencies:
- bioconda::r-shinyngs=2.0.0
- conda-forge::r-base=4.3.3
- bioconda::r-shinyngs=2.1.0
7 changes: 3 additions & 4 deletions modules/nf-core/shinyngs/staticdifferential/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ process SHINYNGS_STATICDIFFERENTIAL {

conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/2b/2b43cb5832431a3d581f3abdca0f5d45fa814b8a4b2c4e49f12296d2e07629fd/data' :
'community.wave.seqera.io/library/r-shinyngs:2.0.0--feeacac14bcf4bb0' }"
'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/97/971684ed03cda2689eea7db9e7f2ee74d079ddd74e3a3baac31e958eea6feb0e/data' :
'community.wave.seqera.io/library/r-shinyngs:2.1.0--09e258eb60cb225f' }"

input:
tuple val(meta), path(differential_result) // Differential info: contrast and differential stats
Expand Down Expand Up @@ -37,7 +37,7 @@ process SHINYNGS_STATICDIFFERENTIAL {
r-shinyngs: \$(Rscript -e "library(shinyngs); cat(as.character(packageVersion('shinyngs')))")
END_VERSIONS
"""

stub:
def prefix = task.ext.prefix ?: meta.id
"""
Expand All @@ -47,7 +47,6 @@ process SHINYNGS_STATICDIFFERENTIAL {

cat <<-END_VERSIONS > versions.yml
"${task.process}":
r-base: \$(echo \$(R --version 2>&1) | sed 's/^.*R version //; s/ .*\$//')
r-shinyngs: \$(Rscript -e "library(shinyngs); cat(as.character(packageVersion('shinyngs')))")
END_VERSIONS
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ nextflow_process {
then {
assertAll (
{ assert process.success },
{ assert snapshot(process.out).match() }
{ assert snapshot(
file(process.out.volcanos_png[0][1]).name, //assert unstable file
process.out.volcanos_html,
process.out.versions
).match()
}
)
}
}
Expand Down
53 changes: 11 additions & 42 deletions modules/nf-core/shinyngs/staticdifferential/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -1,50 +1,19 @@
{
"test": {
"content": [
{
"0": [
[
{
"id": "treatment_mCherry_hND6_",
"variable": "treatment",
"reference": "mCherry",
"target": "hND6",
"blocking": ""
},
"volcano.png:md5,32d82a790e028f9476972a7f38190430"
]
],
"1": [

],
"2": [
"versions.yml:md5,907105596993b0b0eda8989fba5a3a29"
],
"versions": [
"versions.yml:md5,907105596993b0b0eda8989fba5a3a29"
],
"volcanos_html": [

],
"volcanos_png": [
[
{
"id": "treatment_mCherry_hND6_",
"variable": "treatment",
"reference": "mCherry",
"target": "hND6",
"blocking": ""
},
"volcano.png:md5,32d82a790e028f9476972a7f38190430"
]
]
}
"volcano.png",
[

],
[
"versions.yml:md5,45c5f38af38a536b8a0869946c746adf"
]
],
"meta": {
"nf-test": "0.9.2",
"nextflow": "24.10.3"
},
"timestamp": "2024-12-26T16:03:53.372133087"
"timestamp": "2025-01-17T12:01:51.447441326"
},
"stub": {
"content": [
Expand Down Expand Up @@ -74,10 +43,10 @@
]
],
"2": [
"versions.yml:md5,907105596993b0b0eda8989fba5a3a29"
"versions.yml:md5,f2e3d411d3d82796173bcce72c30c20e"
],
"versions": [
"versions.yml:md5,907105596993b0b0eda8989fba5a3a29"
"versions.yml:md5,f2e3d411d3d82796173bcce72c30c20e"
],
"volcanos_html": [
[
Expand Down Expand Up @@ -109,6 +78,6 @@
"nf-test": "0.9.2",
"nextflow": "24.10.3"
},
"timestamp": "2024-12-26T16:04:08.867324031"
"timestamp": "2025-01-17T11:10:38.36289072"
}
}
2 changes: 1 addition & 1 deletion modules/nf-core/shinyngs/staticexploratory/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ channels:
- conda-forge
- bioconda
dependencies:
- bioconda::r-shinyngs=2.0.0
- bioconda::r-shinyngs=2.1.0
4 changes: 2 additions & 2 deletions modules/nf-core/shinyngs/staticexploratory/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ process SHINYNGS_STATICEXPLORATORY {

conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/r-shinyngs:2.0.0--r43hdfd78af_0' :
'biocontainers/r-shinyngs:2.0.0--r43hdfd78af_0' }"
'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/97/971684ed03cda2689eea7db9e7f2ee74d079ddd74e3a3baac31e958eea6feb0e/data' :
'community.wave.seqera.io/library/r-shinyngs:2.1.0--09e258eb60cb225f' }"

input:
tuple val(meta), path(sample), path(feature_meta), path(assay_files)
Expand Down
32 changes: 16 additions & 16 deletions modules/nf-core/shinyngs/staticexploratory/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
"pca3d.png",
"sample_dendrogram.png",
[
"versions.yml:md5,e04025d7790ddfa09ba5bd719cfba8c7"
"versions.yml:md5,6a4a415b0aad7a9878674ff5102f31e8"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
"nf-test": "0.9.2",
"nextflow": "24.10.3"
},
"timestamp": "2024-06-25T10:24:53.456056"
"timestamp": "2025-01-16T20:14:07.293636493"
},
"mouse - defaults": {
"content": [
Expand All @@ -26,14 +26,14 @@
"pca3d.png",
"sample_dendrogram.png",
[
"versions.yml:md5,e04025d7790ddfa09ba5bd719cfba8c7"
"versions.yml:md5,6a4a415b0aad7a9878674ff5102f31e8"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
"nf-test": "0.9.2",
"nextflow": "24.10.3"
},
"timestamp": "2024-06-25T10:24:39.111271"
"timestamp": "2025-01-16T20:13:54.495198737"
},
"mouse - specify log": {
"content": [
Expand All @@ -44,14 +44,14 @@
"pca3d.png",
"sample_dendrogram.png",
[
"versions.yml:md5,e04025d7790ddfa09ba5bd719cfba8c7"
"versions.yml:md5,6a4a415b0aad7a9878674ff5102f31e8"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
"nf-test": "0.9.2",
"nextflow": "24.10.3"
},
"timestamp": "2024-06-25T10:25:14.646472"
"timestamp": "2025-01-16T20:14:27.861376263"
},
"mouse - html": {
"content": [
Expand All @@ -67,13 +67,13 @@
false,
false,
[
"versions.yml:md5,e04025d7790ddfa09ba5bd719cfba8c7"
"versions.yml:md5,6a4a415b0aad7a9878674ff5102f31e8"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
"nf-test": "0.9.2",
"nextflow": "24.10.3"
},
"timestamp": "2024-06-25T10:25:38.256352"
"timestamp": "2025-01-16T20:14:50.517212318"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ channels:
- conda-forge
- bioconda
dependencies:
- bioconda::r-shinyngs=2.0.0
- conda-forge::r-base=4.3.3
- bioconda::r-shinyngs=2.1.0
5 changes: 2 additions & 3 deletions modules/nf-core/shinyngs/validatefomcomponents/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ process SHINYNGS_VALIDATEFOMCOMPONENTS {

conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/2b/2b43cb5832431a3d581f3abdca0f5d45fa814b8a4b2c4e49f12296d2e07629fd/data' :
'community.wave.seqera.io/library/r-shinyngs:2.0.0--feeacac14bcf4bb0' }"
'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/97/971684ed03cda2689eea7db9e7f2ee74d079ddd74e3a3baac31e958eea6feb0e/data' :
'community.wave.seqera.io/library/r-shinyngs:2.1.0--09e258eb60cb225f' }"

input:
tuple val(meta), path(sample), path(assay_files)
Expand Down Expand Up @@ -40,7 +40,6 @@ process SHINYNGS_VALIDATEFOMCOMPONENTS {

cat <<-END_VERSIONS > versions.yml
"${task.process}":
r-base: \$(echo \$(R --version 2>&1) | sed 's/^.*R version //; s/ .*\$//')
r-shinyngs: \$(Rscript -e "library(shinyngs); cat(as.character(packageVersion('shinyngs')))")
END_VERSIONS
"""
Expand Down
33 changes: 33 additions & 0 deletions modules/nf-core/shinyngs/validatefomcomponents/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,39 @@ nextflow_process {
}
}

test("test_yaml") {

when {
params{
observations_id_col = "sample"
features_id_col = "gene_id"

module_args = "--sample_id_col '${params.observations_id_col}' --feature_id_col '${params.features_id_col}'"
}
process {
"""
input[0] = [['id':'SRP254919'],
file(params.modules_testdata_base_path + "genomics/mus_musculus/rnaseq_expression/SRP254919.samplesheet.csv", checkIfExists:true),
file(params.modules_testdata_base_path + "genomics/mus_musculus/rnaseq_expression/SRP254919.salmon.merged.gene_counts.top1000cov.tsv", checkIfExists:true)
]
input[1] = [['id':'SRP254919'],
file(params.modules_testdata_base_path + "genomics/mus_musculus/rnaseq_expression/Mus_musculus.anno.tsv", checkIfExists:true)
]
input[2] = [['id':'SRP254919'],
file(params.modules_testdata_base_path + "genomics/mus_musculus/rnaseq_expression/SRP254919.contrasts.yaml", checkIfExists:true)
]
"""
}
}

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

test("stub") {

options "-stub"
Expand Down
Loading
Loading