From d2025c2606f9db169273cdef84d943e88dda8914 Mon Sep 17 00:00:00 2001 From: Robrecht Cannoodt Date: Thu, 26 Sep 2024 08:25:05 +0200 Subject: [PATCH] fix output write --- src/data_processors/process_dataset/script.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/data_processors/process_dataset/script.py b/src/data_processors/process_dataset/script.py index 883149dc..e3034f46 100644 --- a/src/data_processors/process_dataset/script.py +++ b/src/data_processors/process_dataset/script.py @@ -42,11 +42,11 @@ # ...filter transcripts tables # Save the single-cell data -adata.write_h5ad(par["output_scrnaseq"]) +adata.write_h5ad(par["output_sc"], compression="gzip") # remove directory if it exists -if os.path.exists(par["output_ist"]): - shutil.rmtree(par["output_ist"]) +if os.path.exists(par["output_sp"]): + shutil.rmtree(par["output_sp"]) # Save the spatial data -sdata.write(par["output_ist"], overwrite=True) +sdata.write(par["output_sp"], overwrite=True)