Open bkmartinjr opened 5 years ago
What were you expecting adata.T
to do? I'm asking because I'm not completely sure what I'd expect it to do.
My first thought was it would require making a transposed copy of the entire object, and we currently require a path for that in backed mode. A transposed view of the backed object could work, but I'm not sure how much work that would take on our end.
Possibly naively, I was expecting a view. Perhaps this is just a documentation bug, as the docs seem to indicate that these exist and work for all AnnData modes. It would be very helpful if the docs made it clear which subset of the AnnData API work with all modes, and which are mode-specific.
This issue has been automatically marked as stale because it has not had recent activity. Please add a comment if you want to keep the issue open. Thank you for your contributions!
Found while trying to support backed mode in cellxgene: if I load an h5ad in backed mode,
.T
and.transpose
fail:adata.T
is simply missingadata.transpose()
throws exception becauseT
is missingadata.X.T
is missing (not sure it is guaranteed to exist, but it typically does with an ndarray or sparray).Example:
Version info: