From e36d3dc4d3c3de0e8dbd20bde8cda34f6d40330c Mon Sep 17 00:00:00 2001 From: ctbus Date: Wed, 1 Nov 2023 13:00:24 -0400 Subject: [PATCH] Update tests --- .tests/e2e/test_full_run.py | 32 ++++++++++++++++++++++---------- sbx_mapping.smk | 1 + 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/.tests/e2e/test_full_run.py b/.tests/e2e/test_full_run.py index 5278a4a..57c909a 100755 --- a/.tests/e2e/test_full_run.py +++ b/.tests/e2e/test_full_run.py @@ -80,24 +80,36 @@ def run_sunbeam(setup): shutil.copytree(os.path.join(output_fp, "logs/"), "logs/") shutil.copytree(os.path.join(project_dir, "stats/"), "stats/") - bfragilis_cov_fp = os.path.join(output_fp, "mapping/Bfragilis/coverage.csv") - ecoli_cov_fp = os.path.join(output_fp, "mapping/Ecoli/coverage.csv") + bfragilis_sliding_cov_fp = os.path.join(output_fp, "mapping/Bfragilis/sliding_coverage.csv") + ecoli_sliding_cov_fp = os.path.join(output_fp, "mapping/Ecoli/sliding_coverage.csv") + bfragilis_filtered_cov_fp = os.path.join(output_fp, "mapping/filtered/Bfragilis/coverage_filtered.csv") + ecoli_filtered_cov_fp = os.path.join(output_fp, "mapping/filtered/Ecoli/coverage_filtered.csv") + bfragilis_num_reads_fp = os.path.join(output_fp, "mapping/Bfragilis/numReads.csv") + ecoli_num_reads_fp = os.path.join(output_fp, "mapping/Ecoli/numReads.csv") benchmarks_fp = os.path.join(project_dir, "stats/") - yield bfragilis_cov_fp, ecoli_cov_fp, benchmarks_fp + yield bfragilis_sliding_cov_fp, ecoli_sliding_cov_fp, bfragilis_filtered_cov_fp, ecoli_filtered_cov_fp, bfragilis_num_reads_fp, ecoli_num_reads_fp, benchmarks_fp def test_full_run(run_sunbeam): ( - bfragilis_cov_fp, - ecoli_cov_fp, + bfragilis_sliding_cov_fp, + ecoli_sliding_cov_fp, + bfragilis_filtered_cov_fp, + ecoli_filtered_cov_fp, + bfragilis_num_reads_fp, + ecoli_num_reads_fp, benchmarks_fp, ) = run_sunbeam # Check output - assert os.path.exists(bfragilis_cov_fp) - assert os.path.exists(ecoli_cov_fp) - - assert os.stat(bfragilis_cov_fp).st_size != 0 - assert os.stat(ecoli_cov_fp).st_size != 0 + assert os.path.exists(bfragilis_sliding_cov_fp) + assert os.path.exists(ecoli_sliding_cov_fp) + assert os.path.exists(bfragilis_filtered_cov_fp) + assert os.path.exists(ecoli_filtered_cov_fp) + assert os.path.exists(bfragilis_num_reads_fp) + assert os.path.exists(ecoli_num_reads_fp) + + assert os.stat(bfragilis_sliding_cov_fp).st_size != 0 + assert os.stat(ecoli_sliding_cov_fp).st_size != 0 diff --git a/sbx_mapping.smk b/sbx_mapping.smk index ab386cb..cbd5aad 100644 --- a/sbx_mapping.smk +++ b/sbx_mapping.smk @@ -234,6 +234,7 @@ rule summarize_num_reads: "(cat {input}) > {output}" +# TODO: Remove if not needed rule samtools_mpileup: