Closed jessicook closed 3 years ago
might have figured this out, looked at the meta.data and the regressions were stored per gene as "RBC_regress1" and so on, when I changed vars.to.regress = c("RBC_regress1", RBC_regress2"..."4") , it seems to be working. Was this the correct solution?
First a disclaimer, AddModuleScore
and SCTransform
are functions from the Seurat
package, not sctransform
.
There is one problem with your solution. The list you are passing to AddModuleScore
as features is of length 4, when I think you want a list with one entry only.
rbc.genes <- list(c("Hba-a1", "Hbb-bs", "Hbb-bt", "Hba-a2"))
You'd then only get one RBC_regress
variable (combining the signal from the four genes) that you could use like so:
vars.to.regress = "RBC_regress1"
this solved it, thanks!
Thanks for this great package, I've enjoyed using it. I'm attempting to regress out the effect of RBC genes, and I'm running into the error below. I've added my session info at the end.
In addition, if I want to regress out multiple facotrs (percent.mt, cell cycle etc), should I do this all at once, or is running SCtransform sequentially okay?