make_matrix {supersigs} | R Documentation

## Function to transform mutations into "matrix" format

### 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

    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

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

[Package supersigs version 1.0.0 Index]