Closed jharenza closed 1 year ago
Hi,
I would like to know whether this enhancement will be implemented soon?
Thanks, Axel
Hi Axel, Sorry for the delay and not following it up. However, I do not have any immediate plans to include it as a dependency :|
@kunstner Do you mean the signature exposure in each sample? If this is what you want, you can use {sigminer} package, which is compatible with {maftools}.
The current version of {sigminer} is under development, you have to install it from Github.
remotes::install_github("ShixiangWang/sigminer@V3")
An example:
library(maftools)
laml.maf = system.file('extdata', 'tcga_laml.maf.gz', package = 'maftools')
laml = read.maf(maf = laml.maf)
library(BSgenome.Hsapiens.UCSC.hg19, quietly = TRUE)
laml.tnm = trinucleotideMatrix(maf = laml, prefix = 'chr', add = TRUE, ref_genome = "BSgenome.Hsapiens.UCSC.hg19")
dim(laml.tnm$nmf_matrix)
library(NMF)
library(sigminer)
laml.sig = sig_extract(laml.tnm$nmf_matrix, n_sig = 3, pConstant = 1e-9)
get_sig_exposure(laml.sig)
get_sig_exposure(laml.sig, type = "relative")
@ShixiangWang Thanks! That's what I was looking for. In the past, I iterated over all samples to perform the analysis but this seems way more elegant.
@ShixiangWang One more thing. Is it possible to relate the found signatures to e.g. know COSMIC profiles?
@kunstner Yep! You can use get_sig_similarity()
function. It is modified from source code of maftools
, you can run ?sigminer::get_sig_similarity
in your R console to see the doc.
Recently, I uploaded sigminer package v1.0 to CRAN, and the per-sample exposure quantification has been documented in https://shixiangwang.gitee.io/sigminer-doc/sigfit.html. I hope it is helpful for related issues.
Integrate deconstructSigs into package for investigation of mutational signatures on a per-sample level.