partial_signature {supersigs} | R Documentation |
Remove the contribution of a SuperSig from the data and return the data.
partial_signature(data, object)
data |
a data frame of mutations containing columns for
|
object |
an object of class |
predict_signature
returns the original data frame with
the contribution of a supervised signature removed
head(example_dt) # use example data from package input_dt <- make_matrix(example_dt) # convert to correct format input_dt$IndVar <- c(1, 1, 1, 0, 0) # add IndVar column supersig <- get_signature(data = input_dt, factor = "Age") # get SuperSig partial_signature(data = input_dt, object = supersig)