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
Hi,
I have a problem when I use the function ReadH5AD. It seems that categories are replaced by numbers. In my case for example in the meta.data there is the column cell_type in which cell type labels were replaced by numbers. Is there any way to solve this? The data are at the following link: https://cellgeni.cog.sanger.ac.uk/gutcellatlas/Colon_cell_atlas.h5ad .
Thank you in advance for you help!
Elisabetta
The text was updated successfully, but these errors were encountered:
We are transitioning our support for AnnData/H5AD files to SeuratDisk, our new package for interfacing Seurat objects with single-cell HDF5-based file formats. We would very much like it if you could give this a shot for reading in your data.
You can install SeuratDisk with the following:
if (!requireNamespace("remotes", quietly=TRUE)) {
install.packages("remotes")
}
remotes::install_github("mojaveazure/seurat-disk")
A tutorial on how to read in AnnData/H5AD files via the h5Seurat intermediate can be found here. Greater detail about the new Convert mechanism can be found here
The categories are turned into numbers after conversion, because they are a vector of factors instead of a vector of characters. If you're new to R, this may confuse you at first. My solution is to convert all of the factor vectors in the meta data over to character vectors, assuming pmbc is a Seurat object:
Hi,
I have a problem when I use the function ReadH5AD. It seems that categories are replaced by numbers. In my case for example in the meta.data there is the column cell_type in which cell type labels were replaced by numbers. Is there any way to solve this? The data are at the following link: https://cellgeni.cog.sanger.ac.uk/gutcellatlas/Colon_cell_atlas.h5ad .
Thank you in advance for you help!
Elisabetta
The text was updated successfully, but these errors were encountered: