R/remove_parameter_effects.R
remove_parameter_effects.Rd
subtract effect from norm counts of a single factor from coef x design. coef is in normalized log space. dds must have been created with model.matrix
remove_parameter_effects(deseq_object, col_indicies)
a deseq data object REQUIRED: the object must have been created with a model.matrix rather than a formula for the design argument
a numeric vector corresponding to the column indicies of the batch parameters you'd like to remove
a log2 scale gene by samples matrix with desired effects removed
works for both formula and model.matrix designs in the dds object