Description Usage Arguments Value Examples
View source: R/simplify_signature.R
Take a signature representation from SuperSig and group trinucleotides within each feature into interpretable labels, with optional IUPAC labeling from IUPAC_CODE_MAP in the Biostrings package
1 | simplify_signature(object, iupac)
|
object |
an object of class |
iupac |
logical value indicating whether to use IUPAC labels
(iupac = |
simplify_signature
returns a vector of
simplified features and their difference in mean
mean rates between exposed and unexposed (or
average rate if the factor is "age")
1 2 3 4 5 6 | 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 = "Smoking")
simplify_signature(object = supersig, iupac = FALSE)
simplify_signature(object = supersig, iupac = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.