OliverDietrich / SeuratHelper

Helper functions for the Seurat toolkit for single-cell genomics
Other
2 stars 1 forks source link

Small bug in R/anndata.R write_h5ad function #9

Open ywangaz opened 10 months ago

ywangaz commented 10 months ago

The ds should be changed to object. Otherwise it throws error Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'as.matrix': object 'ds' not found

OliverDietrich commented 10 months ago

Hello, thanks for your comment. I know I have switched the argument 'object' with 'ds' quite frequently in the development stage of functions due to usage in different context. I will fix this as I work on the individual functions. However, anndata conversion started out as an exercise and I currently do not develop it further. If you are interested in interoperability between Seurat and scanpy please look at Seurat's documentation (https://satijalab.org/seurat/archive/v4.3/conversion_vignette) and the zellkonverter package (https://github.com/theislab/zellkonverter).