Skip to content

Commit

Permalink
Add testing of SpatialData output
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterius committed Mar 7, 2024
1 parent 3245e17 commit d5f16b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/pipeline/test_downstream.nf.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extflow_pipeline {
nextflow_pipeline {
name "Test downstream workflow (excl. Space Ranger)"
script "main.nf"
tag "pipeline"
Expand All @@ -20,19 +20,21 @@ extflow_pipeline {

then {
assertAll(

// Workflow
{ assert workflow.success },
{ assert snapshot(UTILS.removeNextflowVersion("$outputDir")).match("nf_core_pipeline_software_mqc_versions.yml") },

// Data
{ assert file("$outputDir/CytAssist_11mm_FFPE_Human_Glioblastoma_2/data/st_adata_processed.h5ad").exists() },
{ assert path("$outputDir/CytAssist_11mm_FFPE_Human_Glioblastoma_2/data/st_sdata_processed.zarr").exists() },
{ assert file("$outputDir/CytAssist_11mm_FFPE_Human_Glioblastoma_2.2/data/st_adata_processed.h5ad").exists() },
{ assert path("$outputDir/CytAssist_11mm_FFPE_Human_Glioblastoma_2.2/data/st_sdata_processed.zarr").exists() },

// Reports
{ assert file("$outputDir/CytAssist_11mm_FFPE_Human_Glioblastoma_2/reports/st_quality_controls.html").text.contains("final results of all the filtering") },
{ assert file("$outputDir/CytAssist_11mm_FFPE_Human_Glioblastoma_2/reports/st_clustering.html").text.contains("spatial distribution of clusters") },
{ assert
file("$outputDir/CytAssist_11mm_FFPE_Human_Glioblastoma_2/reports/st_svg.html").text.contains("Spatial transcriptomics data can give insight") },
{ assert file("$outputDir/CytAssist_11mm_FFPE_Human_Glioblastoma_2/reports/st_svg.html").text.contains("Spatial transcriptomics data can give insight") },
{ assert file("$outputDir/CytAssist_11mm_FFPE_Human_Glioblastoma_2.2/reports/st_quality_controls.html").text.contains("final results of all the filtering") },
{ assert file("$outputDir/CytAssist_11mm_FFPE_Human_Glioblastoma_2.2/reports/st_clustering.html").text.contains("spatial distribution of clusters") },
{ assert file("$outputDir/CytAssist_11mm_FFPE_Human_Glioblastoma_2.2/reports/st_svg.html").text.contains("Spatial transcriptomics data can give insight") },
Expand Down
1 change: 1 addition & 0 deletions tests/pipeline/test_spaceranger_ffpe_v1.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ nextflow_pipeline {

// Data
{ assert file("$outputDir/Visium_FFPE_Human_Ovarian_Cancer/data/st_adata_processed.h5ad").exists() },
{ assert file("$outputDir/Visium_FFPE_Human_Ovarian_Cancer/data/st_sdata_processed.zarr").exists() },

// Reports
{ assert file("$outputDir/Visium_FFPE_Human_Ovarian_Cancer/reports/st_quality_controls.html").text.contains("final results of all the filtering") },
Expand Down
1 change: 1 addition & 0 deletions tests/pipeline/test_spaceranger_ffpe_v2_cytassist.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ nextflow_pipeline {

// Data
{ assert file("$outputDir/CytAssist_11mm_FFPE_Human_Glioblastoma_2/data/st_adata_processed.h5ad").exists() },
{ assert file("$outputDir/CytAssist_11mm_FFPE_Human_Glioblastoma_2/data/st_sdata_processed.zarr").exists() },

// Reports
{ assert file("$outputDir/CytAssist_11mm_FFPE_Human_Glioblastoma_2/reports/st_quality_controls.html").text.contains("final results of all the filtering") },
Expand Down

0 comments on commit d5f16b4

Please sign in to comment.