getSizeFactors {STAN} | R Documentation

## 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

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

[Package STAN version 2.22.0 Index]