MapSPToSASignatureNamesInExposure: With the signatures represented in a matrix of exposures,...

View source: R/MapSPToSASignatureNamesInExposure.R

MapSPToSASignatureNamesInExposureR Documentation

With the signatures represented in a matrix of exposures, find the nearest SignatureAnalyzer exposure.

Description

With the signatures represented in a matrix of exposures, find the nearest SignatureAnalyzer exposure.

Usage

MapSPToSASignatureNamesInExposure(
  sp.exposures,
  sa.sig.names.to.consider = colnames(sa.96.sigs)
)

Arguments

sp.exposures

The exposures

sa.sig.names.to.consider

A subset of the colnames of sa.96.sigs

Details

IMPORTANT: uses the package global variables sa.96.sigs and sp.sigs.

Value

A list with

  1. exp2 Copy of sp.exposures with the rownames(signature names) updated according to the match.

  2. sp.to.sa.sig.match

  3. sa.to.sp.sig.match Best matches in the opposite direction


steverozen/SynSigGen documentation built on April 1, 2022, 8:54 p.m.