name_signatures: Rename signatures for a model

View source: R/class_musica.R

name_signaturesR Documentation

Rename signatures for a model

Description

Rename signatures for a model

Usage

name_signatures(
  musica,
  model_id,
  name_vector,
  modality = "SBS96",
  result_name = "result"
)

Arguments

musica

A musica object containing a mutational signature discovery or prediction.

model_id

The name of the model to rename signatures for.

name_vector

Vector of user-defined signature names

modality

The modality of the model. Must be "SBS96", "DBS78", or "IND83". Default "SBS96".

result_name

Name of the result list entry containing the model. Default "result".

Value

Musica object with user-defined signatures names

Examples

data(res)
name_signatures(res,
  model_id = "res",
  name_vector = c("smoking", "apobec", "unknown")
)

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