sig_contribution_table: Create COSMIC Signature Table

Description Usage Arguments Value

View source: R/mutationalpatterns.R

Description

Creates a COSMIC signature table for display in an RMarkdown report.

Usage

1
sig_contribution_table(contr, type, outdir = NULL)

Arguments

contr

A tibble with Rank, Signature, Contribution and RelFreq columns.

type

One of Sig (old COSMIC), SBS, DBS or ID.

outdir

Relative directory to write signature plots to for incorporating in an RMarkdown report.

Value

The contr tibble with an additional Plot column pointing to the local path to the corresponding signature plot (in markdown syntax). If outdir = NULL (default), simply return the contr tibble with the description of the signature.


umccr/gpgr documentation built on Nov. 25, 2021, 1:15 p.m.