Skip to content

Commit

Permalink
fix output write
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Sep 26, 2024
1 parent 44f6171 commit d2025c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/data_processors/process_dataset/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit d2025c2

Please sign in to comment.