Description Usage Arguments Value Examples
View source: R/signature_exposure.R
Estimates the signature exposure of a mutational catalogue by reconstructing it from a chosen set of signatures, by default, the used method is quadratic programming
1 2 | signature_exposure(mut_cat, P = get(utils::data("cosmicSigs", package =
"SigsPack")), sig_set = NULL, FUN = decomposeQP, ...)
|
mut_cat |
matrix (f by n) conatining one or several mutational catalogues of samples whose signature exposures are to be estimated f is the amount of features that the profiles are defined on n is the number of catalogues |
P |
Matrix (f by k) containing the signature profiles of k signatures whose exposure is to be found k is the amount of signature profiles that P contains f is the amount of features that the profiles are defined on (default: COSMIC signature matrix 96 x 30) |
sig_set |
Numeric vector containing the index of the columns from the signature matrix (which are the signature profiles) that will be used reconstruct the mutational catalogue. |
FUN |
Function to estimate the signature exposure. Default: Quadratic programming (P has to be of full rank to use this method) |
... |
control parameters that will be passed to FUN |
List of the estimated signature exposure, the reconstructed profile of the sample, the cosine similarity between the two and the error
1 2 3 4 | data(cosmicSigs)
signature_exposure(create_mut_catalogues(10,500)[['catalogues']])
signature_exposure(create_mut_catalogues(10,500)[['catalogues']], sig_set = c(2,7,16,28,30))
signature_exposure(as.matrix(create_mut_catalogues(10,500)[['catalogues']][,1]))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.