getSizeFactors: Compute size factors

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Compute size factors

Usage

1
getSizeFactors(obs, celltypes)

Arguments

obs

The observations. A list of one or more entries containing the observation matrix (numeric) for the samples (e.g. chromosomes).

celltypes

Indicates the cell type/tissue for each entry in obs.

Value

A celltype/tissue x data tracks matrix containing the size factors.

Examples

1
2
3
4
5
data(trainRegions)
celltypes = list("E123"=grep("E123", names(trainRegions)), 
        "E116"=grep("E116", names(trainRegions)))
sizeFactors = getSizeFactors(trainRegions, celltypes)
sizeFactors

STAN documentation built on Nov. 8, 2020, 11:11 p.m.