partial_signature: Function to remove the contribution of a SuperSig

Description Usage Arguments Value Examples

View source: R/partial_signature.R

Description

Remove the contribution of a SuperSig from the data and return the data.

Usage

1

Arguments

data

a data frame of mutations containing columns for sample_id, age, IndVar, and the 96 trinucleotide mutations (see vignette for details)

object

an object of class SuperSig

Value

predict_signature returns the original data frame with the contribution of a supervised signature removed

Examples

1
2
3
4
5
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)

TomasettiLab/supersigs documentation built on Dec. 13, 2021, 12:53 a.m.