Adjust expression values to account for known batch effects or technological covariates.
giotto object
expression values to use
metadata columns that represent different batch (max = 2)
metadata columns that represent covariates to regress out
boolean: return giotto object (default = TRUE)
expression slot that will be updated (default = custom)
giotto object
This function implements the removeBatchEffect
function to
remove known batch effects and to adjust expression values according to provided covariates.
data(mini_giotto_single_cell)
#> Warning: data set ‘mini_giotto_single_cell’ not found
adjust_gobject = adjustGiottoMatrix(mini_giotto_single_cell)
#> Error in adjustGiottoMatrix(mini_giotto_single_cell): Metadata for either different batches or covariates must be
#> provided.