nichenetr icon indicating copy to clipboard operation
nichenetr copied to clipboard

SeuratV5

Open shayansaniei opened this issue 1 year ago • 4 comments

Hi, I want to run nichenet on a Seurat object v5 but I am having troubles. I was wondering if you can provide some insight, Thank you

shayansaniei avatar Mar 06 '24 16:03 shayansaniei

Me too. when I ran 'get_expressed_genes' , it can not match the version of seuratv5. expressed_genes_receiver = get_expressed_genes(receiver, IMC, pct = 0.10) Error in get_expressed_genes(receiver, IMC, pct = 0.1) : no slot of name "data" for this object of class "Assay5"

wanwan26 avatar Mar 10 '24 05:03 wanwan26

Based on their GitHub, it seems that the package is built for Seurat V3/V4, thus I would expect the V5 format/assay won't work. You can try converting your Seurat V5 objects to Seurat V4 by: obj[["RNA"]] <- as(obj[["RNA"]], "Assay")

Hope this helps

Best regards, Peter

RolantusdataExp avatar Mar 12 '24 10:03 RolantusdataExp

Hi, @shayansaniei @wanwan26 Can you try following my suggestion from #253 to see if you can follow the classical pipeline?

I'm aware that there's currently an issue with the wrapper functions and the alias conversion function, but if you update to v2.0.5, I think you will be able to run the step-by-step analysis. Please let me know if that's not the case.

Thanks Peter for the possible solution :)

csangara avatar Mar 20 '24 10:03 csangara

If you update to NicheNet v2.0.6, the wrapper function should also work with v5 objects now.

csangara avatar Mar 25 '24 14:03 csangara