What are the differences between vars.to.regress and latent.vars? Should I use both for a variable? #4259
-
Hi there,
Note that in my workflow, I already use SCTransform() to regress out percent.mt and ScaleData() to regress out cell cycle gene difference. Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Reduce the effect on what exactly? If you have a set of genes, eg. the cell cycle genes, that you don't want to drive the clustering results, you can regress out those genes (first adding as a module score) before running PCA, or remove those genes from the set of variable features used in the PCA.
You shouldn't be combining SCTransform and ScaleData. Please see the documentation for SCTransform as well as the paper |
Beta Was this translation helpful? Give feedback.
vars.to.regress
inScaleData()
andSCTransform()
specifies variables to regress out of the scaled data or sctransform residuals. These values are typically used for PCA dimension reduction, and so would prevent those variables that are regressed out from contributing much to the PCA.latent.vars
inFindMarkers()
specifies latent variables to include in the differential expression model. The normalized data, rather than scaled data or sctransform residuals is typically used for differential expression.Reduce the effect on what exactly? If you have a set of gen…