Skip to contents

Given a set of

  1. signatures and

  2. posteriors for each extracted CN-feature across samples to a set of component models
    calculates signature exposures.

Said more concretely, given a sample-by-component matrix and a component-by-signature matrix, finds the linear combination decomposition (LCD). See the YAPSA::LCD function for details.

Usage

QuantifySignatures(sample_by_component, component_by_signature = NULL)

Arguments

sample_by_component

Matrix. Provide a matrix of posteriors for each sample to each component in the model used.

component_by_signature

String or object of type NMFfitX1. If a string, the function expects a path to CN-Signatures (an NMFfitX1 object) stored as an rds.

Value

A matrix of the exposures for each sample to each signature.