Closed 14MBD4 closed 8 months ago
I successfully use Rscript annh5ad2rds.R --infile sourcefile --outfile outfile
convert the h5ad generated from GEF into rds file. The annh5ad2rds.R is provided by stereopy.
It is my guess maybe sceasy::convertFormat(source_file,from="anndata",to="seurat",outFile=samename_aim_file)
from sceasy do not support the h5ad generated from GEF format. Better to use stereopy own api will avoid abnormal situations.
After I successfully load rds file using
h_st <- readRDS("cellbin.gef.rds")
and rename it usingh_st <- RenameCells(h_st, new.names=make.names(Cells(h_st)))
, with instructionh_st
in the terminal Radian shows as follow:_There is something weird when I try to run
SpatialDimPlot(h_st)
_. The error says:And the error also occurs when I using
h_st <- readRDS("tissue.gef.rds")
with same terminal returned infoAdditional info: The tissuebin and cellbin files are both converted by follow program(h5ad2rdsutil.R):
I ran this in terminal by
Rscript h5ad2rdsutil.R cellbin.gef.h5ad cellbin.gef.rds
andRscript h5ad2rdsutil.R tissue.gef.h5ad tissue.gef.rds
If there is a need for how h5ad files are generated, here is the program(readGEFutil.py) with stereopy0.13.0b1:
I ran this in terminal by
python readGEFutil.py cellbin cellbin.gef aim_path/
andpython readGEFutil.py tissue.gef aim_path/