scverse / mudata

Multimodal Data (.h5mu) implementation for Python
https://mudata.rtfd.io
BSD 3-Clause "New" or "Revised" License
72 stars 16 forks source link

Disjoint obs with the new update() upon MuData creation #21

Closed gtca closed 2 years ago

gtca commented 2 years ago
import numpy as np
import jax
import mudata

x = jax.random.normal(key=jax.random.PRNGKey(1), shape=(100,20))
y = jax.random.normal(key=jax.random.PRNGKey(1), shape=(110,30))

m = mudata.MuData({"x": mudata.AnnData(np.array(x)), "y": mudata.AnnData(np.array(y))})
# => NotImplementedError: var_names seem to have been renamed and filtered at the same time. 
#    There is no way to restore the order. MuData object has to be re-created from these modalities:
#    mdata1 = MuData(mdata.mod)