calculate_marginal_activity: Marginal activity calculation

View source: R/marginal_activity.R

calculate_marginal_activityR Documentation

Marginal activity calculation

Description

Calculates the marginal activities between every two combinations of the input signatures. Marginal activity is defined as the activity of a signature after removing genes that it overlaps with another signature.

Usage

calculate_marginal_activity(input_data, selected_signatures, model)

Arguments

input_data

a data.frame with gene IDs in the first column and expression values from the second column.

selected_signatures

a vector storing names of selected signatures

model

an ADAGE model to extract signatures from

Value

a data.frame storing marginal activities for the input samples. Its rownames is set as "signature1-signature2", indicating a marginal activity for signature1 after removing the effect of signature2. If rowname is "signature1-signature1", then it's the activity of signature1 itself.


greenelab/ADAGEpath documentation built on May 25, 2022, 7:11 a.m.