seurat-disk icon indicating copy to clipboard operation
seurat-disk copied to clipboard

Failure in SaveH5Seurat

Open GreenGilad opened this issue 3 years ago • 5 comments

When trying to save a Seurat object using the SaveH5Seurat function it fails with the error:

Error in guess_dtype(x = x, ...) : unknown type
Calls: SaveProject ... BasicWrite -> <Anonymous> -> GuessDType -> guess_dtype

It happens because I added an instance of some other object (for example a glnment classifier object or a clusterProfiler result object) to the misc slot of the Seurat object . I can of course save these objects/results as separate RDS files but I think it is nice to be able to have it as part of the object - especially since using SeuratDisk we can specify what to load and what not.

Is it possible to add this feature? And perhaps objects of different not h5 supported types to just store in some binary/other representation similar to what would have happened if saved using saveRDS?

Thanks, Gilad Green

GreenGilad avatar Jun 23 '21 05:06 GreenGilad

Hi, I'm having the same issue. May i know have you figured it out?

jiangpuxuan avatar Apr 24 '22 02:04 jiangpuxuan

I am having the same issue

Rohit-Satyam avatar Nov 05 '23 15:11 Rohit-Satyam

I am having the same issue

I gaved up and used scanpy to make another single-cell transcriptome data rather than using seurat and Saveh5seurat

jiangpuxuan avatar Nov 06 '23 02:11 jiangpuxuan

Anyone figured out a solution?

yinan-wan0 avatar Jan 30 '24 15:01 yinan-wan0

I am having the same issue

zhoufh avatar Feb 27 '24 02:02 zhoufh