Learn R Programming

STAN (version 2.0.3)

getSizeFactors: Compute size factors

Description

Compute size factors

Usage

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

Run this code

data(trainRegions)
celltypes = list("E123"=grep("E123", names(trainRegions)), 
        "E116"=grep("E116", names(trainRegions)))
sizeFactors = getSizeFactors(trainRegions, celltypes)
sizeFactors

Run the code above in your browser using DataLab