Skip to content

Commit 51809c7

Browse files
committed
fix writing .raw
closes #152, closes #153, closes #154
1 parent 37b4923 commit 51809c7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/mudata/_core/io.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,8 @@ def write_h5ad(filename: str | PathLike, mod: str, data: MuData | AnnData):
311311
if not (adata.isbacked and Path(adata.filename) == Path(filepath)):
312312
write_elem(fmd, "X", adata.X)
313313

314-
# NOTE: Calling write_elem() does not allow writing .raw into .h5mu modalities
315314
if adata.raw is not None:
316-
write_elem(f, f"mod/{mod}/raw", adata.raw)
315+
write_elem(fmd, "raw", adata.raw)
317316

318317
write_elem(fmd, "obs", adata.obs)
319318
write_elem(fmd, "var", adata.var)

0 commit comments

Comments
 (0)