partial_signature {supersigs} | R Documentation

## Function to remove the contribution of a SuperSig

### Description

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

### Usage

    partial_signature(data, object)

### 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

    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)

[Package supersigs version 1.0.0 Index]