GetFractions.Abbas: Constrained Regression Method (Abbas et al., 2009)

View source: R/timer.R

GetFractions.AbbasR Documentation

Constrained Regression Method (Abbas et al., 2009)

Description

Implements a constrained regression approach described by Abbas et al. (2009). Estimates proportions of immune cell types within mixed cancer tissue samples based on gene expression data. Iteratively adjusts regression coefficients to ensure non-negative values.

Usage

GetFractions.Abbas(XX, YY, w = NA)

Arguments

XX

Matrix. Immune expression data with genes as rows and cell types as columns.

YY

Vector. Cancer expression data with gene expression levels.

w

Vector or NA. Weights for regression. Default is NA (no weights).

Value

Vector with non-negative coefficients representing proportions of each cell type.

Examples

XX <- matrix(runif(100), nrow = 10, ncol = 10)
colnames(XX) <- paste("CellType", 1:10, sep = "")
YY <- runif(10)
results <- GetFractions.Abbas(XX, YY)
print(results)

IOBR documentation built on May 30, 2026, 5:07 p.m.