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
When using schard::h5ad2seurat() in Windows 11 to read an AnnData object as a Seurat object, categorical variables with string values in the metadata are converted into numbers 0123456.
#10
Open
cystone opened this issue
Dec 4, 2024
· 5 comments
That is strange, I can confirm that schard was not working correctly with the file you send but it is fixed now and I cannot see how it can be platform-dependent. Just to make sure we are on same version, could you please share source code of schard::h5ad2data.frame for your installation?
Would you please check out the issue.
Now I use sceasy to read h5ad in R temporarily.
h5ad_file = paste0('sce_qc.h5ad')
sceasy::convertFormat(h5ad_file, from="anndata", to="seurat",
outFile='tmp_sce_qc.rds'))
sce = schard::h5ad2seurat(h5ad_file)
sce0 = readRDS('sce_qc.rds')
[email protected] %>% head()
The text was updated successfully, but these errors were encountered: