You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gotta figure out what the shape of the object is when X is None. Currently we figure out the shape of an AnnData by checking the shapes of X, obs, and var and asserting everything else fits that. What we should probably start doing is resolving the shape from all elements, so an AnnData with just obsm/ varm can be created.
An interesting question is what happens if you only provide elements aligned to one axis. E.g. just obsm or obs. Is n_vars unknown or zero?
Activity
flying-sheep commentedon Dec 1, 2020
@rcannood which of the above points have been adressed by your PR?
rcannood commentedon Dec 1, 2020
To begin:
There are also some basic checks for 'Views', but not everything mentioned above has been taken care of so it's still WIP.
ivirshup commentedon Jan 11, 2022
I've fixed up many of these cases in #677.
I think
.X is Noneis now in a fairly useable state, and think we're in an alright place to push the rest to the next release.ivirshup commentedon Jan 24, 2022
Adding a point to the checklist:
Gotta figure out what the shape of the object is when X is None. Currently we figure out the shape of an AnnData by checking the shapes of
X,obs, andvarand asserting everything else fits that. What we should probably start doing is resolving the shape from all elements, so an AnnData with justobsm/varmcan be created.An interesting question is what happens if you only provide elements aligned to one axis. E.g. just
obsmorobs. Isn_varsunknown or zero?Is this allowed?
Then what is
n_vars. Would this be allowed after?ivirshup commentedon Aug 8, 2024
We think this is probably closable but we need to verify
AlbertoFabbri93 commentedon Jul 7, 2026
Is this todo list updated? Can we use anndata with
XbeingNoneor is it better to wait for 0.13?flying-sheep commentedon Jul 7, 2026
It has been working quite well for a while, good point!