Question: Scater normalizeExprs() batch effect
gravatar for Jenn
6 months ago by
Jenn20 wrote:

I have a question about how to write the design matrix for normalizeExprs(). Do I include only the uninteresting variables/factors that I wanted to control for in the design matrix or should I also include the condition that I am interested in seeing the effect?


example_sceset <- normaliseExprs(example_sceset, design=design) 



example_sceset <- normaliseExprs(example_sceset, design=design) 



This is the detail from the scater manual

design: design matrix defining the linear model to be fitted to the normalised expression values. If not NULL, then the residuals of this linear model fit are used as the normalised expression values.



ADD COMMENTlink modified 6 months ago by Aaron Lun18k • written 6 months ago by Jenn20
gravatar for Aaron Lun
6 months ago by
Aaron Lun18k
Cambridge, United Kingdom
Aaron Lun18k wrote:

Anything in the design matrix gets regressed out (as residuals are returned), so you don't want to put in features of interest. If you want more control, you can apply removeBatchEffect (from the limma package) on the expression matrix yourself, to define which variables to keep and which variables to remove.

ADD COMMENTlink modified 6 months ago • written 6 months ago by Aaron Lun18k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 366 users visited in the last hour