signaturePCA: Create three PCA plots for signatures.

Description Usage Arguments Value See Also Examples

View source: R/signaturePCA.R

Description

Constructs three PCA plots showing variations among the signatures in terms of the weights of the principal components for different mutation signatures, as well as the eigenvalues and cosine similarity among expected and actual signatures.

Usage

1
signaturePCA(sigmat, pngfile )

Arguments

sigmat

An object of class mutsig describing a set of signatures.

pngfile

name of png formatted image file to be created

Value

Create three PCA plots with the following extensions to show difference among mutational signatures.

  1. *_Eigen.png The eigenvalues of the PCA and the relative amount of the variation each eigenvalue.

  2. *_var.png The different single-nucleotide alteration components in terms of the two dimensions.

  3. *_PCA.png The different signatures in terms of the 2 non-dimensional vectors derived by the PCA analysis and the cosine similarity between the estimate of each mutation signature using PCA and the actual mutation signature(in order to determine how accurately the 2 dimensions calculated by PCA represent the mutational signatures).

See Also

signatureHeatmap, signatures.cosmic, deleteSignature, renameSignature and mergeSignature.

Examples

1
2
sigmat=signatures.cosmic
signaturePCA(sigmat, pngfile="signaturePCA")

sjdlabgroup/MutSigTools documentation built on Oct. 5, 2019, 3:31 a.m.