generateCellProportions: Create matrix of cellular composition profiles consisting of...

View source: R/generateCellProportions.R

generateCellProportionsR Documentation

Create matrix of cellular composition profiles consisting of proportion of noise and remaining compostion in the ratio of supplied cell types

Description

Create matrix of cellular composition profiles consisting of proportion of noise and remaining compostion in the ratio of supplied cell types

Usage

generateCellProportions(cellProp, noise)

Arguments

cellProp

A vector of the required cellular proportions. Must be named with cell labels.

noise

A vector of the proportion of noise.

Value

A matrix with length(noise) columns and length(cellProp)+1 columns.

Examples

meanBloodProp <- c(3.01, 13.4, 6.13)
names(meanBloodProp) <- c("Bcell", "CDT4+", "CDT8")
noise <- c(seq(0, 0.1, 0.02))
generateCellProportions(meanBloodProp, noise)


ds420/CETYGO documentation built on Oct. 22, 2024, 8:49 p.m.