getSizeFactors {STAN} | R Documentation |
Compute size factors
getSizeFactors(obs, celltypes)
obs |
The observations. A list of one or more entries containing the observation matrix ( |
celltypes |
Indicates the cell type/tissue for each entry in obs. |
A celltype/tissue x data tracks matrix containing the size factors.
data(trainRegions) celltypes = list("E123"=grep("E123", names(trainRegions)), "E116"=grep("E116", names(trainRegions))) sizeFactors = getSizeFactors(trainRegions, celltypes) sizeFactors