reference_signatures_as_matrix: Convert reference signatures to matrix

Description Usage Arguments Details Value

View source: R/reference_signatures_as_matrix.R

Description

Converts a data frame of reference signature data to the matrix form.

Usage

1
reference_signatures_as_matrix(reference_signatures, mutation_catalog)

Arguments

reference_signatures

Reference mutation signature as output by get_reference_signatures()

mutation_catalog

A mutation catalog with mutation types matching those of the reference signatures. This catalog is used only to order the rows of the output matrix such that they correspond with the mutation type order in mutation_catalog.

Details

When generating the matrix, a mutation catalog is required. Because the matrix output does not have a mutation_type column, the matrix rows are arranged so that mutation types match the order of the provide mutation catalog. This way, the matrix output can immediately in correspondence with the provided mutation catalog.

Value

A matrix with named columns, one for each signature.


eyzhao/SignIT documentation built on Dec. 6, 2019, 11:45 a.m.