Description Usage Arguments Value Examples
View source: R/get_signature.R
Generate a tissue-specific SuperSig for a given dataset of mutations and exposure factor. Returns the SuperSig and a classification model trained with the SuperSig.
1 | get_signature(data, factor, wgs = FALSE)
|
data |
a data frame of mutations containing columns for
|
factor |
the factor/exposure (e.g. "age", "smoking"). If the factor = "age", the SuperSig is computed using counts. Otherwise, rates (counts/age) are used. |
wgs |
logical value indicating whether sequencing data is
whole-genome (wgs = |
get_signature
returns an object of class SuperSig
1 2 3 4 | 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
get_signature(data = input_dt, factor = "Age") # get SuperSig
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.