Hi All,
I have counts normalized matrix and sva run on it and have two surrogate variables (which are continuous variables ofcourse) for hidden batch effects in my RNAseq data.
Now I am aware of combatseq package and limmas removebatcheffect() function but they don't take continuous variables. What are my options or probably I am missing something regarding continuous batch variables(in this case surrogate variables from sva). Please help me.
@OP, it's the
covariates
argument in said function.Thank you both- Yeah I figured covariates is my shot to go. Just for everyone else who comes back , code below worked for me without any problem and my batch effect was certainly controlled for that I was able to visualize with pac :)