We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db4e12e commit 13eb3e2Copy full SHA for 13eb3e2
1 file changed
src/convert/from_h5ad_to_h5mu/script.py
@@ -29,13 +29,18 @@
29
}
30
31
logger.info("Converting to mudata")
32
+var_index_names = {key: adata.var.index.name for key, adata in data.items()}
33
mudata = mu.MuData(data)
34
35
try:
36
mudata.var_names_make_unique()
37
except (TypeError, ValueError):
38
pass
39
40
+# Set var index names to avoid https://github.com/scverse/mudata/issues/146
41
+for key, name in var_index_names.items():
42
+ mudata.mod[key].var.index.name = name
43
+
44
logger.info("Writing to %s.", par["output"])
45
mudata.write_h5mu(par["output"], compression=par["output_compression"])
46
0 commit comments