make_matrix {supersigs} | R Documentation |
Transform a data frame of mutations in long format into a data frame of trinucleotide mutations with flanking bases in a wide matrix format.
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
head(example_dt) # use example data from package input_dt <- make_matrix(example_dt) # convert to correct format head(input_dt)