Skip to content

Commit

Permalink
modify gprofiler2 snapshot to assert unstable png
Browse files Browse the repository at this point in the history
  • Loading branch information
suzannejin committed Jan 21, 2025
1 parent d795904 commit d88df5d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 36 deletions.
14 changes: 12 additions & 2 deletions modules/nf-core/gprofiler2/gost/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,19 @@ nextflow_process {
{ assert process.success },
{ assert snapshot(
process.out.all_enrich,
process.out.plot_png,
process.out.sub_enrich,
process.out.sub_plot,
[
file(process.out.plot_png[0][1]).name,
file(process.out.sub_plot[0][1][0]).name,
file(process.out.sub_plot[0][1][1]).name,
file(process.out.sub_plot[0][1][2]).name,
file(process.out.sub_plot[0][1][3]).name,
file(process.out.sub_plot[0][1][4]).name,
file(process.out.sub_plot[0][1][5]).name,
file(process.out.sub_plot[0][1][6]).name,
file(process.out.sub_plot[0][1][7]).name,
file(process.out.sub_plot[0][1][8]).name,
], // assert unstable file
process.out.filtered_gmt,
process.out.session_info.collect{ meta,session_info -> file(session_info).name }, //assert unstable file
process.out.versions,
Expand Down
46 changes: 12 additions & 34 deletions modules/nf-core/gprofiler2/gost/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@
"Condition_genotype_WT_KO.gprofiler2.all_enriched_pathways.tsv:md5,1134a02ca061c463bcbff277eefbfb19"
]
],
[
[
{
"id": "Condition_genotype_WT_KO",
"variable": "Condition genotype",
"reference": "WT",
"target": "KO",
"blocking": "batch"
},
"Condition_genotype_WT_KO.gprofiler2.gostplot.png:md5,4b83d1bcf7dc9dbf6cef3d545e440c5b"
]
],
[
[
{
Expand All @@ -48,26 +36,16 @@
]
],
[
[
{
"id": "Condition_genotype_WT_KO",
"variable": "Condition genotype",
"reference": "WT",
"target": "KO",
"blocking": "batch"
},
[
"Condition_genotype_WT_KO.gprofiler2.GO:BP.sub_enriched_pathways.png:md5,d89498267e985adf0ad1266e2deb9f48",
"Condition_genotype_WT_KO.gprofiler2.GO:CC.sub_enriched_pathways.png:md5,e04cdd51b200671613254d021d3af242",
"Condition_genotype_WT_KO.gprofiler2.GO:MF.sub_enriched_pathways.png:md5,33ea0652d78111978677acde0fe7f807",
"Condition_genotype_WT_KO.gprofiler2.HP.sub_enriched_pathways.png:md5,6c040ac4baba73ae5637b00650e6aea1",
"Condition_genotype_WT_KO.gprofiler2.KEGG.sub_enriched_pathways.png:md5,fbd232c4eeced95ceda60b43a02dbe1f",
"Condition_genotype_WT_KO.gprofiler2.MIRNA.sub_enriched_pathways.png:md5,956880d3bf4852a06b0ffaaaba565732",
"Condition_genotype_WT_KO.gprofiler2.REAC.sub_enriched_pathways.png:md5,0e8f9217d275668986771dc7fede3170",
"Condition_genotype_WT_KO.gprofiler2.TF.sub_enriched_pathways.png:md5,0697164bc87e95e6508db966df94e01e",
"Condition_genotype_WT_KO.gprofiler2.WP.sub_enriched_pathways.png:md5,09976762c7541ff9e5009e8763986845"
]
]
"Condition_genotype_WT_KO.gprofiler2.gostplot.png",
"Condition_genotype_WT_KO.gprofiler2.GO:BP.sub_enriched_pathways.png",
"Condition_genotype_WT_KO.gprofiler2.GO:CC.sub_enriched_pathways.png",
"Condition_genotype_WT_KO.gprofiler2.GO:MF.sub_enriched_pathways.png",
"Condition_genotype_WT_KO.gprofiler2.HP.sub_enriched_pathways.png",
"Condition_genotype_WT_KO.gprofiler2.KEGG.sub_enriched_pathways.png",
"Condition_genotype_WT_KO.gprofiler2.MIRNA.sub_enriched_pathways.png",
"Condition_genotype_WT_KO.gprofiler2.REAC.sub_enriched_pathways.png",
"Condition_genotype_WT_KO.gprofiler2.TF.sub_enriched_pathways.png",
"Condition_genotype_WT_KO.gprofiler2.WP.sub_enriched_pathways.png"
],
[

Expand All @@ -89,7 +67,7 @@
"nf-test": "0.9.2",
"nextflow": "24.10.3"
},
"timestamp": "2025-01-09T13:43:18.555455129"
"timestamp": "2025-01-21T11:20:46.746311783"
},
"stub": {
"content": [
Expand Down Expand Up @@ -298,6 +276,6 @@
"nf-test": "0.9.2",
"nextflow": "24.10.3"
},
"timestamp": "2025-01-09T13:43:36.462475057"
"timestamp": "2025-01-21T11:22:25.04488011"
}
}

0 comments on commit d88df5d

Please sign in to comment.