Closed jjacob12 closed 1 year ago
Got this working now, so closed the issue.
HI @jjacob12 , which order of operations did you end up going with? SCTransform
before or after cell cycle regression?
Thanks! :)
Hi,
SCTransform(YourSeuratObject, vars.to.regress = "CC.difference", method = "glmGamPoi", verbose = FALSE)
for Seurat v4
Hi Satija lab, I want to get the order right for cell cycle regression and the
SCTransform
step in my scRNA-seq analysis workflow. For my purposes I found the 'Alternate Workflow' section in https://satijalab.org/seurat/articles/cell_cycle_vignette.html preferable to regressing out all cell cycle signals. This is the order of what I did on a 10X scRNA-seq dataset (1 condition only) filtered for quality thresholds, e.g. mitochondrial percent:NormalizeData
FindVariableFeatures
ScaleData
RunPCA
CellCycleScoring
RunPCA(seurat_obj, features=c(s.genes, g2m.genes)
DimPlot(seurat_obj, reduction='pca', group.by='Phase')
which gave the below plot that clearly shows clustering by cell cycle phase:To regress out cell cycle differences I did the following, as per the vignette:
this worked exactly as I hoped it would, producing this plot where G2/M and S phase cells no longer cluster separately:
So the
seurat_obj
now has the type of cell cycle regression I want. Can I applySCTransform
on this object, or should I have appliedSCTransform
at an earlier stage? Assuming what I did is correct, then as per the vignette should I next run:the above code on each condition, before going on to do an integrated analysis with multiple conditions?
Many thanks.