I am using TCGAbiolinks' function TCGAbatch_Correction to perform batch correction on TARGET data. For this, I am using the "unpublished" mode of this function. I have noticed that for this mode, the batch correction - done using ComBat - does not include a model matrix as the mod argument in the ComBat function. The line of code that performs the batch correction using ComBat currently looks like this:
Hello,
I am using TCGAbiolinks' function TCGAbatch_Correction to perform batch correction on TARGET data. For this, I am using the "unpublished" mode of this function. I have noticed that for this mode, the batch correction - done using ComBat - does not include a model matrix as the
mod
argument in the ComBat function. The line of code that performs the batch correction using ComBat currently looks like this:However, I believe it should include a design matrix like this:
where the design matrix includes for example the condition of the samples. This can be created like so:
design_matrix <- model.matrix(~group)
Let me know what you think Thank you, Mona