make_matrix: Function to transform mutations into "matrix" format

Description Usage Arguments Value Examples

View source: R/make_matrix.R

Description

Transform a data frame of mutations in long format into a data frame of trinucleotide mutations with flanking bases in a wide matrix format.

Usage

1
make_matrix(data, genome = "hg19")

Arguments

data

a data frame of mutations in VCF format (see vignette for details)

genome

the reference genome used ("hg19" or "hg38")

Value

make_matrix returns a data frame of mutations, one row per sample

Examples

1
2
3
head(example_dt) # use example data from package
input_dt <- make_matrix(example_dt) # convert to correct format
head(input_dt)

TomasettiLab/supersigs documentation built on Dec. 13, 2021, 12:53 a.m.