Skip to content

Commit 4b489d6

Browse files
committed
update tests
1 parent 6b720d6 commit 4b489d6

16 files changed

Lines changed: 1335 additions & 574 deletions

tests/.nftignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ shinyngs_app/**/data.rds
1313
*.dds.rld.rds
1414
**/**/*.dds.rld.rds
1515
**/**/*.limma.rds
16+
*.limma.results.tsv
17+
**/**/*.dream.results.tsv
18+
**/**/*.limma.results.tsv
19+
**/**/*.limma.results_filtered.tsv

tests/test_affy.nf.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ nextflow_pipeline {
55
tag "affy"
66
tag "pipeline"
77
config "../conf/affy.config"
8-
profile "test_affy,affy"
8+
profile "test_affy"
99

1010
test("Test affy profile") {
1111

tests/test_affy.nf.test.snap

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,6 @@
267267
"app.R:md5,bedcfc45b6cdcc2b8fe3627987e2b17a",
268268
"versions.yml:md5,b3436c10ff83d0dab55060de3cae3ef2",
269269
"hgu133plus2.annotation.tsv:md5,f2b82ef12b2a2e8e575de06766583d96",
270-
"phenotype_uninvolved_lesional_GSE50790.limma.results.tsv:md5,91bfc5e94dd232b927c3fc7f3ece7e36",
271-
"phenotype_uninvolved_lesional_GSE50790.limma.results_filtered.tsv:md5,445b8fd9dcd34c2d273613b03ead0a7f",
272270
"GSM1229341_Gudjohnsson_001_6690_PP.CEL.gz:md5,259d0908211a071351450f366fd51cad",
273271
"GSM1229342_Gudjohnsson_002_6690_PN.CEL.gz:md5,31cc2b8b26e210760b8ebd4b304b52ba",
274272
"GSM1229343_Gudjohnsson_003_7450_PN.CEL.gz:md5,713a3ca75a883cbff6da0be7bd251422",
@@ -283,7 +281,7 @@
283281
"nf-test": "0.9.2",
284282
"nextflow": "25.04.3"
285283
},
286-
"timestamp": "2025-06-17T09:35:13.777853554"
284+
"timestamp": "2025-06-17T13:47:55.740801939"
287285
},
288286
"Test affy profile - with toolsheet": {
289287
"content": [
@@ -553,8 +551,6 @@
553551
"app.R:md5,bedcfc45b6cdcc2b8fe3627987e2b17a",
554552
"versions.yml:md5,b3436c10ff83d0dab55060de3cae3ef2",
555553
"hgu133plus2.annotation.tsv:md5,f2b82ef12b2a2e8e575de06766583d96",
556-
"phenotype_uninvolved_lesional_GSE50790.limma.results.tsv:md5,91bfc5e94dd232b927c3fc7f3ece7e36",
557-
"phenotype_uninvolved_lesional_GSE50790.limma.results_filtered.tsv:md5,445b8fd9dcd34c2d273613b03ead0a7f",
558554
"GSM1229341_Gudjohnsson_001_6690_PP.CEL.gz:md5,259d0908211a071351450f366fd51cad",
559555
"GSM1229342_Gudjohnsson_002_6690_PN.CEL.gz:md5,31cc2b8b26e210760b8ebd4b304b52ba",
560556
"GSM1229343_Gudjohnsson_003_7450_PN.CEL.gz:md5,713a3ca75a883cbff6da0be7bd251422",
@@ -569,6 +565,6 @@
569565
"nf-test": "0.9.2",
570566
"nextflow": "25.04.3"
571567
},
572-
"timestamp": "2025-06-17T09:38:26.821359936"
568+
"timestamp": "2025-06-17T13:51:07.757386695"
573569
}
574570
}

tests/test_maxquant.nf.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ nextflow_pipeline {
44
script "../main.nf"
55
tag "maxquant"
66
tag "pipeline"
7-
profile "test_maxquant,maxquant"
7+
profile "test_maxquant"
88

99
test("Test maxquant profile") {
1010

tests/test_maxquant.nf.test.snap

Lines changed: 56 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,33 @@
2929
"nf-core/differentialabundance": "v1.6.0dev"
3030
}
3131
},
32+
{
33+
"CUSTOM_FILTERDIFFERENTIALTABLE": {
34+
"pandas": "1.5.2"
35+
},
36+
"LIMMA_DIFFERENTIAL": {
37+
"r-base": "4.3.3",
38+
"bioconductor-limma": "3.58.1"
39+
},
40+
"PLOT_DIFFERENTIAL": {
41+
"r-shinyngs": "2.2.4"
42+
},
43+
"PLOT_EXPLORATORY": {
44+
"r-shinyngs": "2.2.4"
45+
},
46+
"PROTEUS": {
47+
"r-base": "4.2.1",
48+
"r-proteus-bartongroup": "0.2.16",
49+
"r-plotly": "4.10.2",
50+
"bioconductor-limma": "3.54.0"
51+
},
52+
"VALIDATOR": {
53+
"r-shinyngs": "2.2.4"
54+
},
55+
"Workflow": {
56+
"nf-core/differentialabundance": "v1.6.0dev"
57+
}
58+
},
3259
[
3360
"other",
3461
"other/limma",
@@ -125,13 +152,9 @@
125152
"raw_proteingroups.rds:md5,daef7d25977a1628870dee75e2977ee3",
126153
"versions.yml:md5,225ced8832439345efa781c726cf2e5c",
127154
"versions.yml:md5,d5f6ad8fe6242dcd75bc62b654d1d211",
128-
"fakebatch_fakeBatch_b1_b2_PXD043349.limma.results.tsv:md5,8cdd17fbb6ab065811ed775849f4218a",
129155
"fakebatch_fakeBatch_b1_b2_PXD043349.limma.results_filtered.tsv:md5,50d7e7ece68f799b73333ccd6a159078",
130-
"genotype_celltype_t1_FoB_PXD043349.limma.results.tsv:md5,f5c222dbc6202e7222edcbdd9be9b138",
131156
"genotype_celltype_t1_FoB_PXD043349.limma.results_filtered.tsv:md5,50dc06d421f7d51f2ef0f45ebc9d5671",
132-
"genotype_celltype_t1_MZ_fakeBatch_PXD043349.limma.results.tsv:md5,3e68964f1f43965890602cca8de3ea24",
133157
"genotype_celltype_t1_MZ_fakeBatch_PXD043349.limma.results_filtered.tsv:md5,664e6cb3fad5744724e2736749ce1357",
134-
"genotype_celltype_t1_t2_PXD043349.limma.results.tsv:md5,46fb6997ad46f3c8ae9044d76e4dcb99",
135158
"genotype_celltype_t1_t2_PXD043349.limma.results_filtered.tsv:md5,cdd22b242d8fe1e7ace48d8c73a66b25",
136159
"normalizeMedian.normalized_proteingroups_tab.tsv:md5,154fcd8d23409981b897d153e7b7e34e",
137160
"raw_proteingroups_tab.tsv:md5,33a8791f84c676ea1aea4842231acb6a",
@@ -143,7 +166,7 @@
143166
"nf-test": "0.9.2",
144167
"nextflow": "25.04.3"
145168
},
146-
"timestamp": "2025-06-17T13:00:28.84951094"
169+
"timestamp": "2025-06-17T13:25:15.519554825"
147170
},
148171
"Test maxquant profile - with toolsheet": {
149172
"content": [
@@ -175,6 +198,33 @@
175198
"nf-core/differentialabundance": "v1.6.0dev"
176199
}
177200
},
201+
{
202+
"CUSTOM_FILTERDIFFERENTIALTABLE": {
203+
"pandas": "1.5.2"
204+
},
205+
"LIMMA_DIFFERENTIAL": {
206+
"r-base": "4.3.3",
207+
"bioconductor-limma": "3.58.1"
208+
},
209+
"PLOT_DIFFERENTIAL": {
210+
"r-shinyngs": "2.2.4"
211+
},
212+
"PLOT_EXPLORATORY": {
213+
"r-shinyngs": "2.2.4"
214+
},
215+
"PROTEUS": {
216+
"r-base": "4.2.1",
217+
"r-proteus-bartongroup": "0.2.16",
218+
"r-plotly": "4.10.2",
219+
"bioconductor-limma": "3.54.0"
220+
},
221+
"VALIDATOR": {
222+
"r-shinyngs": "2.2.4"
223+
},
224+
"Workflow": {
225+
"nf-core/differentialabundance": "v1.6.0dev"
226+
}
227+
},
178228
[
179229
"other",
180230
"other/limma",
@@ -271,13 +321,9 @@
271321
"raw_proteingroups.rds:md5,daef7d25977a1628870dee75e2977ee3",
272322
"versions.yml:md5,225ced8832439345efa781c726cf2e5c",
273323
"versions.yml:md5,d5f6ad8fe6242dcd75bc62b654d1d211",
274-
"fakebatch_fakeBatch_b1_b2_PXD043349.limma.results.tsv:md5,8cdd17fbb6ab065811ed775849f4218a",
275324
"fakebatch_fakeBatch_b1_b2_PXD043349.limma.results_filtered.tsv:md5,50d7e7ece68f799b73333ccd6a159078",
276-
"genotype_celltype_t1_FoB_PXD043349.limma.results.tsv:md5,f5c222dbc6202e7222edcbdd9be9b138",
277325
"genotype_celltype_t1_FoB_PXD043349.limma.results_filtered.tsv:md5,50dc06d421f7d51f2ef0f45ebc9d5671",
278-
"genotype_celltype_t1_MZ_fakeBatch_PXD043349.limma.results.tsv:md5,3e68964f1f43965890602cca8de3ea24",
279326
"genotype_celltype_t1_MZ_fakeBatch_PXD043349.limma.results_filtered.tsv:md5,664e6cb3fad5744724e2736749ce1357",
280-
"genotype_celltype_t1_t2_PXD043349.limma.results.tsv:md5,46fb6997ad46f3c8ae9044d76e4dcb99",
281327
"genotype_celltype_t1_t2_PXD043349.limma.results_filtered.tsv:md5,cdd22b242d8fe1e7ace48d8c73a66b25",
282328
"normalizeMedian.normalized_proteingroups_tab.tsv:md5,154fcd8d23409981b897d153e7b7e34e",
283329
"raw_proteingroups_tab.tsv:md5,33a8791f84c676ea1aea4842231acb6a",
@@ -289,6 +335,6 @@
289335
"nf-test": "0.9.2",
290336
"nextflow": "25.04.3"
291337
},
292-
"timestamp": "2025-06-17T13:01:31.502573937"
338+
"timestamp": "2025-06-17T13:26:18.176770325"
293339
}
294340
}
Lines changed: 2 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,12 @@ nextflow_pipeline {
55
tag "nogtf"
66
tag "pipeline"
77
profile "test_nogtf"
8-
config "../conf/rnaseq.config"
98

109
test("Test no gtf profile") {
1110

1211
when {
1312
params {
1413
outdir = "$outputDir"
15-
study_name = 'SRP254919'
16-
config_profile_name = 'Test nogtf profile'
17-
config_profile_description = 'Minimal test dataset to check pipeline function'
18-
19-
// Input data
20-
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/mus_musculus/rnaseq_expression/SRP254919.samplesheet.csv'
21-
matrix = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/mus_musculus/rnaseq_expression/SRP254919.salmon.merged.gene_counts.top1000cov.tsv'
22-
contrasts_yml = 'https://raw.githubusercontent.com/nf-core/test-datasets/refs/heads/differentialabundance/testdata/SRP254919.contrasts.yaml'
23-
24-
//Features
25-
features_metadata_cols = 'gene_id,gene_name'
26-
27-
// Observations
28-
observations_id_col = 'sample'
29-
observations_name_col = 'sample'
30-
31-
// Apply a higher filter to check that the filtering works
32-
filtering_min_abundance = 10
33-
34-
// Exploratory
35-
exploratory_main_variable = 'contrasts'
36-
37-
// Test dataset is too small for the nsub default value
38-
deseq2_vst_nsub = 500
3914
}
4015
}
4116

@@ -51,6 +26,7 @@ nextflow_pipeline {
5126
workflow.trace.succeeded().size(),
5227
// pipeline versions.yml file for multiqc from which Nextflow version is removed because we tests pipelines on multiple Nextflow versions
5328
removeNextflowVersion("$outputDir/pipeline_info/collated_versions.yml"),
29+
removeNextflowVersion("$outputDir/pipeline_info/nf_core_differentialabundance_software_versions.yml"),
5430
// All stable path name, with a relative path
5531
stable_name,
5632
// All files with stable contents
@@ -67,31 +43,6 @@ nextflow_pipeline {
6743
outdir = "$outputDir"
6844
paramset_name = "deseq2_rnaseq"
6945
differential_method = null
70-
71-
study_name = 'SRP254919'
72-
config_profile_name = 'Test nogtf profile - with toolsheet'
73-
config_profile_description = 'Minimal test dataset to check pipeline function'
74-
75-
// Input data
76-
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/mus_musculus/rnaseq_expression/SRP254919.samplesheet.csv'
77-
matrix = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/mus_musculus/rnaseq_expression/SRP254919.salmon.merged.gene_counts.top1000cov.tsv'
78-
contrasts_yml = 'https://raw.githubusercontent.com/nf-core/test-datasets/refs/heads/differentialabundance/testdata/SRP254919.contrasts.yaml'
79-
80-
//Features
81-
features_metadata_cols = 'gene_id,gene_name'
82-
83-
// Observations
84-
observations_id_col = 'sample'
85-
observations_name_col = 'sample'
86-
87-
// Apply a higher filter to check that the filtering works
88-
filtering_min_abundance = 10
89-
90-
// Exploratory
91-
exploratory_main_variable = 'contrasts'
92-
93-
// Test dataset is too small for the nsub default value
94-
deseq2_vst_nsub = 500
9546
}
9647
}
9748

@@ -107,6 +58,7 @@ nextflow_pipeline {
10758
workflow.trace.succeeded().size(),
10859
// pipeline versions.yml file for multiqc from which Nextflow version is removed because we tests pipelines on multiple Nextflow versions
10960
removeNextflowVersion("$outputDir/pipeline_info/collated_versions.yml"),
61+
removeNextflowVersion("$outputDir/pipeline_info/nf_core_differentialabundance_software_versions.yml"),
11062
// All stable path name, with a relative path
11163
stable_name,
11264
// All files with stable contents

0 commit comments

Comments
 (0)