scverse/anndataR

Handle reading empty H5AD slots

Opened this issue · 2 comments

Reading currently fails if a slot is not set in the .h5ad file

Can you post a minimal reproducible example? ;)

e.g. when reading in a file with only a .X:

Error in private$.validate_layers(value) : 
  'layers' must must be a named list
In addition: Warning messages:
1: In private$.validate_obsvar_dataframe(value, "obs") :
  'obs' should not have any rownames, removing them from the data frame.
2: In private$.validate_obsvar_dataframe(value, "var") :
  'var' should not have any rownames, removing them from the data frame.``