Skip to content

Commit ed321e9

Browse files
author
Habib Rehman
committed
allowed for overwriting h5ad
1 parent 273a4be commit ed321e9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/methods_cell_type_annotation/RCTD

src/methods_cell_type_annotation/RCTD/script.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@ colData(sce)$cell_type <- "None_sp"
6363
colData(sce)[names(spatial_cell_types),"cell_type"] <- as.character(spatial_cell_types)
6464

6565
# Write the final object to h5ad format
66+
# set to 'w', is this ok?
6667
dir.create(dirname(par$output), showWarnings = FALSE, recursive = TRUE)
67-
write_h5ad(sce, par$output)
68+
write_h5ad(sce, par$output, mode = "w")

0 commit comments

Comments
 (0)