mut_type_occurrences: Count the occurrences of each base substitution type

Description Usage Arguments Value See Also Examples

View source: R/mut_type_occurrences.R

Description

Count the occurrences of each base substitution type

Usage

1
mut_type_occurrences(vcf_list, ref_genome)

Arguments

vcf_list

GRangesList or GRanges object.

ref_genome

BSGenome reference genome object

Value

data.frame with counts of each base substitution type for each sample in vcf_list

See Also

read_vcfs_as_granges,

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## See the 'read_vcfs_as_granges()' example for how we obtained the
## following data:
vcfs <- readRDS(system.file("states/read_vcfs_as_granges_output.rds",
  package = "MutationalPatterns"
))

## Load a reference genome.
ref_genome <- "BSgenome.Hsapiens.UCSC.hg19"
library(ref_genome, character.only = TRUE)

## Get the type occurrences for all VCF objects.
type_occurrences <- mut_type_occurrences(vcfs, ref_genome)

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