Closed shamsbhuiyan closed 1 year ago
Hello,
I appreciate your interest in this pipeline. I tried again on my machine to create this environment but unfortunately, it throws similar errors. This environment was created about half a year ago and I think that the package dependencies have been updated. The SeuratDisk package seems to be also less well-maintained these days.
I suggest trying a different package such as sceasy or creating the objects from scratch. We only need to convert the count matrix, the .obs and the .var so it is rather straightforward:
library(anndata)
library(SeuratObject)
for( file in list.files(path = ".", pattern='*.h5ad', full.names=TRUE, recursive=TRUE)){
ad = read_h5ad(file)
data <- CreateSeuratObject(counts = t(as.matrix(ad$X)), meta.data = ad$obs)
SaveH5Seurat(data, gsub(".h5ad", ".h5seurat", file), overwrite=T)
}
Thank you.
Hello,
This is a really cool pipeline. I would like to implement it for my own cross-species data, but I'm having trouble at the step of setting up the conda environment for .h5ad/.h5seurat conversion.
This is my terminal:
These lines of text concerning mismatched packages continue for ~2000 lines. I am running R/3.6 and python/2.7 (I've tested this out on R version 4 and python version 3.7). Is there anything else I need to have installed before I create the conda environment? Thank you for all your help.