updateSigNamesWithMatchTable: update signature names using a match table

View source: R/performanceEvaluationLib.R

updateSigNamesWithMatchTableR Documentation

update signature names using a match table

Description

This function is part of the workflow of simulating a dataset, testing a signature extraction and evaluating the signatures/exposures accuracy. The function evaluatePerformanceSignatureSimilarity returns a table matching true signatures with estimated signatures. The updateSigNamesWithMatchTable function can be used with the match table to replace the names of the estimated signatures with those of the true signatures, for example in the matrix of estimated exposures. See example below.

Usage

updateSigNamesWithMatchTable(signames, matchTable)

Arguments

signames

vector of signature names, typically estimated signatures, that need to be replaced

matchTable

table with matched true and estimated signature names

Value

updated signames vector

Examples

sigsPerf <- evaluatePerformanceSignatureSimilarity(true_signatures,
                                                   estimated_signatures)
updatedNames <- updateSigNamesWithMatchTable(signames,
                                             sigsPerf$matchTable)


Nik-Zainal-Group/signature.tools.lib documentation built on April 13, 2025, 5:50 p.m.