sce2matlist: SingleCellExperiment to list of matrices

View source: R/utils.R

sce2matlistR Documentation

SingleCellExperiment to list of matrices

Description

SingleCellExperiment to list of matrices

Usage

sce2matlist(sce, splitby, to_include = NULL, whichmat = "counts")

Arguments

sce

SingleCellExperiment that is to be separated into list of count matrices

splitby

character; name of the attribute from colData that should be used to separate the SCE

to_include

(optional) character vector; determines which values from the "splitby" column will be included in the outputted matlist. NULL is the default, and will result in selecting all elements

whichmat

character; defaults to counts, can also use logcounts or normcounts if stored in the sce object

Value

list of matrices

Examples

library(DuoClustering2018)
sce <- sce_full_Zhengmix4eq()
matlist <- sce2matlist(sce = sce, splitby = 'phenoid', whichmat = 'logcounts')

laurenhsu1/corral documentation built on Feb. 19, 2023, 10:37 p.m.