View source: R/plotMutationDistribution.R
plotMutationDistribution | R Documentation |
'plotMutationDistribution()' plots a single signature or the mutation frequency data for a single genome. This works for signatures or genome data of both the Shiraishi and the Alexandrov type.
plotMutationDistribution(mutData, colors = NULL, strip = NULL)
mutData |
(Mandatory) The signature or genome mutation frequency data to be plotted. This can either be a matrix (Shiraishi model) or a numeric vector (Alexandrov model). |
colors |
Vector of colors to be used for the base change data. For
Alexandrov-type data, this vector must contain six elements (one per base
change). For Shiraishi-type data, this vector must contain four elements
(one per base). If |
strip |
Background color for strip labels; used only for
Alexandrov-type data. If |
Returns (or draws) a plot according to the Alexandrov or Shiraishi model of mutational signatures.
Rosario M. Piro
Politecnico di Milano
Maintainer: Rosario
M. Piro
E-Mail: <rmpiro@gmail.com> or <rosariomichael.piro@polimi.it>
http://rmpiro.net/decompTumor2Sig/
Krueger, Piro (2019) decompTumor2Sig: Identification of mutational
signatures active in individual tumors. BMC Bioinformatics
20(Suppl 4):152.
decompTumor2Sig
### Attention: using plotMutationDistribution requires the package ### pmsignature to be installed! ### get Alexandrov signatures from COSMIC signatures <- readAlexandrovSignatures() ### plot the first Alexandrov signature plotMutationDistribution(signatures[[1]]) ### read four Shiraishi signatures for breast cancer genomes from ### Nik-Zainal et al (PMID: 22608084) from flat files sigfiles <- system.file("extdata", paste0("Nik-Zainal_PMID_22608084-pmsignature-sig",1:4,".tsv"), package="decompTumor2Sig") signatures <- readShiraishiSignatures(sigfiles) ### plot the first Shiraishi signature plotMutationDistribution(signatures[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.