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
{{ message }}
Repository navigation
Make obs and var optional, make obs_names and var_names required #76
At the moment, we require that obs and var 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 the var_names that are required, and not obs and var -- I guess.
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.
Activity
lazappi commentedon May 10, 2023
I think this makes sense but is it much different to just doing
obs = data.frame(row.names=obs_names).What does Python anndata put in
obs_names/var_nameswhen you just set the shape?rcannood commentedon May 11, 2023
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.
rcannood commentedon May 11, 2023
This is what's shown in the original message, no?
wip changes for #76
lazappi commentedon May 12, 2023
Not entirely, but I could just check myself rather than asking you silly questions 😸
rcannood commentedon May 16, 2023
:p
Closed with #81
Merge remote-tracking branch 'origin/main' into hdf5-write-dataframe