You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if it's ok to specify only the variable genes in ScaleData when regressing out cell cycle. obj <- NormalizeData(obj) obj <- FindVariableFeatures(obj,selection.method = "vst",nfeatures = 2000) s.genes <- cc.genes$s.genes g2m.genes <- cc.genes$g2m.genes obj <- ScaleData(obj, vars.to.regress = c("S.Score", "G2M.Score"), features = VariableFeatures(obj))
This is much slower, and this is how it's done in the tutorial obj <- NormalizeData(obj) obj <- FindVariableFeatures(obj,selection.method = "vst",nfeatures = 2000) s.genes <- cc.genes$s.genes g2m.genes <- cc.genes$g2m.genes obj <- ScaleData(obj, vars.to.regress = c("S.Score", "G2M.Score"), features = rownames(obj))
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was wondering if it's ok to specify only the variable genes in ScaleData when regressing out cell cycle.
obj <- NormalizeData(obj)obj <- FindVariableFeatures(obj,selection.method = "vst",nfeatures = 2000)s.genes <- cc.genes$s.genesg2m.genes <- cc.genes$g2m.genesobj <- ScaleData(obj, vars.to.regress = c("S.Score", "G2M.Score"), features = VariableFeatures(obj))This is much slower, and this is how it's done in the tutorial
obj <- NormalizeData(obj)obj <- FindVariableFeatures(obj,selection.method = "vst",nfeatures = 2000)s.genes <- cc.genes$s.genesg2m.genes <- cc.genes$g2m.genesobj <- ScaleData(obj, vars.to.regress = c("S.Score", "G2M.Score"), features = rownames(obj))Beta Was this translation helpful? Give feedback.
All reactions