create_result_model: Load an external model into a result_model object

View source: R/load_data.R

create_result_modelR Documentation

Load an external model into a result_model object

Description

This function creates a result_model object from signatures, exposures, and a mutation count table.

Usage

create_result_model(signatures, exposures, model_id, modality)

Arguments

signatures

A matrix or data.frame of signatures by mutational motifs

exposures

A matrix or data.frame of samples by signature weights

model_id

Name of model

modality

Modality of the model

Value

A result_model object

Examples

signatures <- signatures(res, "result", "SBS96", "res")
exposures <- exposures(res, "result", "SBS96", "res")
model <- create_result_model(signatures, exposures, "example_model", "SBS96")

campbio/musicatk documentation built on Dec. 25, 2024, 9:34 p.m.