CellCycleScoring error
0
0
Entering edit mode
4 months ago
marco.barr ▴ 150

Hi, everyone,

I'm trying to assess the effect of the cell cycle on my normalized scRNA data using Seurat but I'm encountering this error.

seurat_phase <- CellCycleScoring(seurat_phase,
                             g2m.features = cc.genes$g2m_genes,
                             s.features = cc.genes$s_genes)

  Error in `GetAssayData()`:
  ! GetAssayData doesn't work for multiple layers in v5 assay.
  Run `rlang::last_trace()` to see where the error occurred.

Should I perhaps split by sample or use JoinLayers() or what else could I do? Thank you very much for your help

seurat cell-cycle scRNA • 565 views
ADD COMMENT
1
Entering edit mode

Yes, I think you need to join the layers. I was trying to perform DGE on the split layers and it was throwing the same error. So, I guess before calculating the score, which I am sure uses the GetAssayData() internally and needs the collapsed layers.

Description form Seurat_v5 documentation:

Once integrative analysis is complete, you can rejoin the layers - which collapses the individual datasets together and recreates the original counts and data layers. You will need to do this before performing any differential expression analysis.......

Regards,

Nitin N,

ADD REPLY
0
Entering edit mode

Thank you very much for your help. However, I have a question. In my dataset, I have a control sample and a patient sample (which I noticed differ significantly in the number of cells). Should I, for example, 'play around' by using JoinLayers() and SplitObject() depending on whether I want to facilitate certain filters, and then proceed with doublet identification and removal? For cluster assignment and annotation, would it be preferable to split again?

ADD REPLY

Login before adding your answer.

Traffic: 2681 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6