mut_96_UI: Count mutation occurrences in the provided contexts

mut_96_UIR Documentation

Count mutation occurrences in the provided contexts

Description

@details This function is called by mut_matrix_UI. It is a modification of the mut_96_occurrences() function from the MutationalPatterns package. It calculates the context for all variants and then splits these per GRanges (samples). It then calculates how often each context occurs. This function is compatible with assymetric context and UI value

Usage

mut_96_UI(type_context, gr_sizes, UI = FALSE)

Arguments

type_context

result from type_context function

gr_sizes

A vector indicating the number of variants per GRanges

UI

if TRUE, it will calculated the mean UI instead of counting the mutations

Value

Mutation matrix with 96 trinucleotide mutation occurrences

References

https://genomemedicine.biomedcentral.com/articles/10.1186/s13073-018-0539-0


rayanramin/RamPack documentation built on Sept. 2, 2023, 1:20 a.m.