Skip to content

Commit 07b2302

Browse files
committed
fix writing .raw
closes #152, closes #153, closes #154 (cherry picked from commit 51809c7)
1 parent 7387f28 commit 07b2302

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
@@ -278,9 +278,8 @@ def write_h5ad(filename: str | PathLike, mod: str, data: MuData | AnnData):
278278
if not (adata.isbacked and Path(adata.filename) == Path(filepath)):
279279
write_elem(fmd, "X", adata.X)
280280

281-
# NOTE: Calling write_elem() does not allow writing .raw into .h5mu modalities
282281
if adata.raw is not None:
283-
write_elem(f, f"mod/{mod}/raw", adata.raw)
282+
write_elem(fmd, "raw", adata.raw)
284283

285284
write_elem(fmd, "obs", adata.obs)
286285
write_elem(fmd, "var", adata.var)

0 commit comments

Comments
 (0)