Closed MartaBenegas closed 3 years ago
Hi Marta,
That's because the ".h5" file Cell BLAST uses has a special format specification, requiring certain hdf5 groups like "exprs" for expression matrix, "obs" for cell-level meta information, "var" for gene-level meta data, etc. (Basically a simplified version of anndata.) It's complaining about missing "obs" group because your hdf5 file does not comply to the required format.
Actually it's unnecessary to write the hdf5 by yourself. We have a dedicated function to read text-based data files like this:
ds = cb.data.ExprDataSet.read_table("Brain_Myeloid-counts.csv", orientation="gc", sparsify=True, index_col=0)
See this documentation for details.
Hi, it's me again! I was able to construct the database, but now I'm having some issues with my input file.
Originally, my input file was in csv format so I converted it to h5 using the
h5write()
function from rhdf5 R library as follows:But when I tried to read it, it rose the following error:
Is there a problem with my input file? Here you have a link to a Drive folder with the original csv and converted h5 files.
Thanks in advance! Marta.