Closed crichgriffin closed 2 years ago
Hi @crichgriffin,
Thanks a lot for noticing that, this actually seems to be an issue within MuData (rather than with intersect_obs
), which we'll actually address with the next update shortly. I will keep this issue open for now and will close it accordingly.
Hi,
please try the latest mudata snapshot from github (pip install git+https://github.com/PMBio/mudata
).
Running mu.pp.intersect_obs erroneously introduces NaNs into mdata.obs
Minimal working example:
In my tests above the mdata.obs['batch'] are all NaNs after running intersect obs. Weirdly in bigger datasets, sometimes a really small number of data entries are not NaNs.
System OS: CentOS Linux release 7.8.2003 (Core) Python 3.9.5 Versions of libraries involved numpy 1.20.3 muon 0.1.1 (installed from github today (2021-11-30) using
pip install git+https://github.com/gtca/muon
)