broadinstitute / infercnv

Inferring CNV from Single-Cell RNA-Seq
Other
566 stars 166 forks source link

Error in `ScaleData()`: ! No layer matching pattern 'data' found. Please run NormalizeData and retry Run `rlang::last_trace()` to see where the error occurred. #664

Open Noralii opened 5 months ago

Noralii commented 5 months ago

Error in ScaleData(): ! No layer matching pattern 'data' found. Please run NormalizeData and retry Run rlang::last_trace() to see where the error occurred.

xiaoli-gg commented 1 month ago

Dear friends: I am also confused by this Error. Have you solved this problem? Hope to get your advice. Thanks Mengpan Li

Tang-RH commented 1 month ago

The error may be coused by Seurat V5, please check this answer: https://github.com/broadinstitute/infercnv/issues/617#issuecomment-1800868358 Using the following command to convert the seurat object format to v3 before running seems to work temporarily:

options("Seurat.object.assay.version" = "v3")
xiaoli-gg commented 1 month ago

Dear friends, thanks for your advice.