-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make obs and var optional, make obs_names and var_names required #76
Comments
I think this makes sense but is it much different to just doing What does Python anndata put in |
I agree this is very practical, but given #73 we can't add the obs_names to the obs as rownames or to the X as rownames because the obs_names might be integers instead of characters. |
This is what's shown in the original message, no? |
Not entirely, but I could just check myself rather than asking you silly questions 😸 |
:p Closed with #81 |
* origin/main: (23 commits) initial implementation of from_Seurat (#64) only check size when the names are already defined todo: add back obs_names and var_names length check update roxygen move required args to the front Update R/HDF5-read.R fix lint issues update tests refactor code to assume obs_names and var_names are defined Style and lint Add rhdf5 package skipe to HDF5 tests Add 1D sparse array to example.h5ad Remove requireNamespace("rhdf5") Fix bug in read_h5ad_string_array() Add support for reading H5AD rec arrays Covert 1D string arrays to vectors in read_h5ad_string_array() Update tests to use example.h5ad wip changes for #76 Remove Krumsiek augemented dataset Reduce example H5AD to 50 cells x 100 genes ...
At the moment, we require that
obs
andvar
are passed to the InMemoryAnnData and HDF5AnnData, while other slots are optional.However, looking at what happens when I create an empty AnnData in Python, it's actually the
obs_names
and thevar_names
that are required, and notobs
andvar
-- I guess.As such; I propose altering the code of
InMemoryAnnData
andHDF5AnnData
require theobs_names
and thevar_names
to be passed, not theobs
and thevar
.The text was updated successfully, but these errors were encountered: