Hi,
I have a experiment where ERCC mix1 and mix2 were applied cross samples. I was trying to remove unwanted factors using ERCCs in class B which are supposed to be no fold change between mix1 and mix2. After that, I wanna integrate the RUVg-adjusted factors (W_1 as in the manual) into a GLMM formula by lme4 package. I have the following questions:
During modelling GLMM by lme4, should I use W_1 as a block in the fixed effect part or as an additional offset (current offset is library size) ? As the values in W_1 seems already been log-transformed, I guess it's better to be used as offset?
Thanks a lot.
Thanks a lot for your comments Davide. That's really helpful. I also realised the noise from only using ERCC class B as negative control, as I'm down to 9 of them to pass the minimal reads threshold. I would try to re-estimate the unwanted effect using all the detected ERCCs across the samples (although only 52), by fitting a regression between the expected and observed fold change from mix1 to mix2.