count_indel_contexts: Count indel contexts

Description Usage Arguments Details Value See Also Examples

View source: R/count_indel_contexts.R

Description

Count indel contexts

Usage

1

Arguments

vcf_list

GRanges or GRangesList object containing Indel mutations in which the context was added with get_indel_context.

Details

Counts the number of indels per COSMIC context from a GRanges or GRangesList object containing Indel mutations. This function applies the count_indel_contexts_gr function to each gr in its input. It then combines the results in a single tibble and returns this.

Value

A tibble containing the number of indels per COSMIC context per gr.

See Also

get_indel_context

Other Indels: get_indel_context(), plot_compare_indels(), plot_indel_contexts(), plot_main_indel_contexts()

Examples

1
2
3
4
5
6
7
8
## Get a GRangesList or GRanges object with indel contexts.
## See 'indel_get_context' for more info on how to do this.
grl_indel_context <- readRDS(system.file("states/blood_grl_indel_context.rds",
  package = "MutationalPatterns"
))

# Count the indel contexts
count_indel_contexts(grl_indel_context)

MutationalPatterns documentation built on Nov. 14, 2020, 2:03 a.m.