View source: R/convert_sigs_to_ref.R
convert_sigs_to_ref | R Documentation |
This function converts tissue specific signature contributions into reference signature contributions. This works on SNV signatures from SIGNAL. It uses a conversion matrix to do the conversion. The output can include possible artifact signatures.
convert_sigs_to_ref(fit_res)
fit_res |
Named list with signature contributions and reconstructed mutation matrix |
The input fit_res, but with converted signature contributions.
## See the 'mut_matrix()' example for how we obtained the mutation matrix: mut_mat <- readRDS(system.file("states/mut_mat_data.rds", package = "MutationalPatterns" )) ## Get tissue specific signatures signatures <- get_known_signatures(source = "SIGNAL", sig_type = "tissue", tissue_type = "Skin") ## Fit tissue specific signatures fit_res <- fit_to_signatures(mut_mat, signatures) ## Convert the tissue specific signatures exposures to reference fit_res <- convert_sigs_to_ref(fit_res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.