From 2d7c90e7dd8038bb158d7b75620eea3bfc5e0221 Mon Sep 17 00:00:00 2001 From: Felipe Marques de Almeida Date: Wed, 14 Feb 2024 15:45:04 +0000 Subject: [PATCH] update the number of tasks that are executed, and include raw/filtered in the testings (cellranger) --- tests/main_pipeline_cellranger.test | 16 ++++++++++------ tests/main_pipeline_cellranger.test.snap | 16 +++++++++++----- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/tests/main_pipeline_cellranger.test b/tests/main_pipeline_cellranger.test index 996c0f76..30723ba3 100644 --- a/tests/main_pipeline_cellranger.test +++ b/tests/main_pipeline_cellranger.test @@ -30,12 +30,12 @@ nextflow_pipeline { {assert workflow.success}, // How many tasks were executed? - {assert workflow.trace.tasks().size() == 15}, + {assert workflow.trace.tasks().size() == 20}, // How many results were produced? {assert path("${outputDir}/results_cellranger").list().size() == 4}, {assert path("${outputDir}/results_cellranger/cellranger").list().size() == 4}, - {assert path("${outputDir}/results_cellranger/cellranger/mtx_conversions").list().size() == 4}, + {assert path("${outputDir}/results_cellranger/cellranger/mtx_conversions").list().size() == 5}, {assert path("${outputDir}/results_cellranger/cellranger/count").list().size() == 3}, {assert path("${outputDir}/results_cellranger/fastqc").list().size() == 12}, {assert path("${outputDir}/results_cellranger/multiqc").list().size() == 3}, @@ -43,8 +43,10 @@ nextflow_pipeline { // // Check if files were produced // - {assert new File( "${outputDir}/results_cellranger/cellranger/mtx_conversions/Sample_X/Sample_X_matrix.h5ad" ).exists()}, - {assert new File( "${outputDir}/results_cellranger/cellranger/mtx_conversions/Sample_Y/Sample_Y_matrix.h5ad" ).exists()}, + {assert new File( "${outputDir}/results_cellranger/cellranger/mtx_conversions/Sample_X/Sample_X_raw_matrix.h5ad" ).exists()}, + {assert new File( "${outputDir}/results_cellranger/cellranger/mtx_conversions/Sample_Y/Sample_Y_raw_matrix.h5ad" ).exists()}, + {assert new File( "${outputDir}/results_cellranger/cellranger/mtx_conversions/Sample_X/Sample_X_filtered_matrix.h5ad" ).exists()}, + {assert new File( "${outputDir}/results_cellranger/cellranger/mtx_conversions/Sample_Y/Sample_Y_filtered_matrix.h5ad" ).exists()}, // // Check if files are the same @@ -63,8 +65,10 @@ nextflow_pipeline { path( "${outputDir}/results_cellranger/cellranger/count/Sample_Y/outs/raw_feature_bc_matrix/barcodes.tsv.gz" ), path( "${outputDir}/results_cellranger/cellranger/count/Sample_Y/outs/raw_feature_bc_matrix/features.tsv.gz" ), path( "${outputDir}/results_cellranger/cellranger/count/Sample_Y/outs/raw_feature_bc_matrix/matrix.mtx.gz" ), - path( "${outputDir}/results_cellranger/cellranger/mtx_conversions/Sample_X/Sample_X_matrix.rds" ), - path( "${outputDir}/results_cellranger/cellranger/mtx_conversions/Sample_Y/Sample_Y_matrix.rds" ) + path( "${outputDir}/results_cellranger/cellranger/mtx_conversions/Sample_X/Sample_X_raw_matrix.rds" ), + path( "${outputDir}/results_cellranger/cellranger/mtx_conversions/Sample_Y/Sample_Y_raw_matrix.rds" ), + path( "${outputDir}/results_cellranger/cellranger/mtx_conversions/Sample_X/Sample_X_filtered_matrix.rds" ), + path( "${outputDir}/results_cellranger/cellranger/mtx_conversions/Sample_Y/Sample_Y_filtered_matrix.rds" ) ).match()} ) // end of assertAll() diff --git a/tests/main_pipeline_cellranger.test.snap b/tests/main_pipeline_cellranger.test.snap index 5f88b954..4aab7554 100644 --- a/tests/main_pipeline_cellranger.test.snap +++ b/tests/main_pipeline_cellranger.test.snap @@ -14,8 +14,8 @@ "errorMessage": "", "trace": { "tasksFailed": 0, - "tasksCount": 15, - "tasksSucceeded": 15 + "tasksCount": 20, + "tasksSucceeded": 20 }, "name": "workflow", "success": true @@ -32,9 +32,15 @@ "barcodes.tsv.gz:md5,081f72b5252ccaf5ffd535ffbd235c4c", "features.tsv.gz:md5,99e453cb1443a3e43e99405184e51a5e", "matrix.mtx.gz:md5,a4db04e43e650accc96361a287126a6b", - "Sample_X_matrix.rds:md5,f9191ba575a3ab79ada4807715f18573", - "Sample_Y_matrix.rds:md5,7be3f7b29d668dcf7e951b9f4d371a5e" + "Sample_X_raw_matrix.rds:md5,306a5477ace4d43d851b8389fdfeaf1f", + "Sample_Y_raw_matrix.rds:md5,74b31532da4cae5a8197d690021d77fc", + "Sample_X_filtered_matrix.rds:md5,f9191ba575a3ab79ada4807715f18573", + "Sample_Y_filtered_matrix.rds:md5,7be3f7b29d668dcf7e951b9f4d371a5e" ], - "timestamp": "2024-01-22T15:19:20.134275449" + "meta": { + "nf-test": "0.8.4", + "nextflow": "23.10.1" + }, + "timestamp": "2024-02-14T15:10:31.638485641" } } \ No newline at end of file