-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Copying MuData objects #36
Comments
The minimal example does work: import numpy as np
import muon as mu
x = mu.AnnData(X=np.random.normal(size=1000).reshape(-1, 100))
y = mu.AnnData(X=np.random.normal(size=2000).reshape(-1, 100))
md = mu.MuData({"x": x, "y": y})
md_copy = md.copy() Is there a piece of code that could help to reproduce the |
Sure, this is is the simplest example I can produce that generates the error.
This is the complete error:
|
Looks like a duplicate of #30. Can you try with master? |
Same error with master. |
I could not reproduce this error with the
By the way,
|
Running from Jupyter Notebook
Reinstalled those versions to match your |
Update: I do not get the error in a different environment, so there must be some conflict in my current environment. Thanks for testing. |
I also made a Docker image to test it, and it seems to work for executing the lines above: FROM python:3.9.6-buster
RUN apt-get update
RUN apt-get install -y make automake gcc g++ subversion python3-dev
RUN apt-get install -y gfortran musl libblas-dev liblapack-dev
RUN apt-get install -y git
RUN pip install git+https://github.com/pmbio/muon
CMD [] |
Hi! I am wondering if there is a way to copy MuData objects (i.e.
MuData_copy = MuData.copy()
) without gettingTypeError: cannot unpack non-iterable NoneType object
Originally posted by @SamuelAMiller1 in #24 (comment)
The text was updated successfully, but these errors were encountered: