Description Usage Arguments Value Examples
Transform a data frame of mutations in long format into a data frame of trinucleotide mutations with flanking bases in a wide matrix format.
1 | make_matrix(data, genome = "hg19")
|
data |
a data frame of mutations in VCF format (see vignette for details) |
genome |
the reference genome used ("hg19" or "hg38") |
make_matrix
returns a data frame of mutations,
one row per sample
1 2 3 | head(example_dt) # use example data from package
input_dt <- make_matrix(example_dt) # convert to correct format
head(input_dt)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.