persistSig: Mutation signatures in different allele frequency spectrum

Description Usage Arguments Value See Also Examples

View source: R/persistSig.R

Description

Determine the burden of different mutation signatures acrross different allele frequency ranges.The function should be used with caution; Local copy number and purity-corrected variant allele frequencies should be provided in the column 6 of the snv

Usage

1
2
persistSig(snv, th_vec_lw, th_vec_up, signatures.ref = signatures.cosmic,
  bsg = BSgenome.Hsapiens.UCSC.hg19::Hsapiens)

Arguments

snv

A dataframe having sample, chr, pos, ref, alt and/or freq as it's columns. This dataframe may have more than one sample.

th_vec_lw

A vector of lower limits of frequency ranges.

th_vec_up

A vector of upper limits of frequency ranges.

signatures.ref

An object of class mutsig comprising the set of signatures. (signatures.nature2013 or signatures.cosmic or signatures.cosmic.2019 ), Default: 'signatures.cosmic'

bsg

An object of class BSGenome. Default: BSgenome.Hsapiens.UCSC.hg19

Value

A list of samples having mutational signature corresponding to each allele frequency range

See Also

vcfToSNV to generate snv dataframe.

Examples

1
2
data(snv_sample)   # load 'snv' dataframe object
mut_sig_per_freq_range=persistSig(snv=snv_sample,th_vec_lw=c(0,0.4), th_vec_up=c(0.1,1), signatures.ref = signatures.cosmic,  bsg=BSgenome.Hsapiens.UCSC.hg19::Hsapiens)  # list of samples having mutational signature for each allele frequency range i.e., in our example (0.0 - 0.1) & (0.4 - 1.0).

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