Skip to content

Commit

Permalink
Fix SVG report test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterius committed Mar 7, 2024
1 parent 0600a1e commit d8067c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions tests/pipeline/test_downstream.nf.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
nextflow_pipeline {
extflow_pipeline {
name "Test downstream workflow (excl. Space Ranger)"
script "main.nf"
tag "pipeline"
Expand Down Expand Up @@ -31,10 +31,11 @@ nextflow_pipeline {
// 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("plot the top spatially variable genes") },
{ 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("plot the top spatially variable genes") },
{ assert file("$outputDir/CytAssist_11mm_FFPE_Human_Glioblastoma_2.2/reports/st_svg.html").text.contains("Spatial transcriptomics data can give insight") },

// DEGs
{ assert file("$outputDir/CytAssist_11mm_FFPE_Human_Glioblastoma_2/degs/st_svg.csv").exists() },
Expand Down
2 changes: 1 addition & 1 deletion tests/pipeline/test_spaceranger_ffpe_v1.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ nextflow_pipeline {
// Reports
{ assert file("$outputDir/Visium_FFPE_Human_Ovarian_Cancer/reports/st_quality_controls.html").text.contains("final results of all the filtering") },
{ assert file("$outputDir/Visium_FFPE_Human_Ovarian_Cancer/reports/st_clustering.html").text.contains("spatial distribution of clusters") },
{ assert file("$outputDir/Visium_FFPE_Human_Ovarian_Cancer/reports/st_svg.html").text.contains("plot the top spatially variable genes") },
{ assert file("$outputDir/Visium_FFPE_Human_Ovarian_Cancer/reports/st_svg.html").text.contains("Spatial transcriptomics data can give insight") },

// DEGs
{ assert file("$outputDir/Visium_FFPE_Human_Ovarian_Cancer/degs/st_svg.csv").exists() },
Expand Down
2 changes: 1 addition & 1 deletion tests/pipeline/test_spaceranger_ffpe_v2_cytassist.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ nextflow_pipeline {
// 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("plot the top spatially variable genes") },
{ assert file("$outputDir/CytAssist_11mm_FFPE_Human_Glioblastoma_2/reports/st_svg.html").text.contains("Spatial transcriptomics data can give insight") },

// DEGs
{ assert file("$outputDir/CytAssist_11mm_FFPE_Human_Glioblastoma_2/degs/st_svg.csv").exists() },
Expand Down

0 comments on commit d8067c6

Please sign in to comment.