sce2matlist: SingleCellExperiment to list of matrices

Description Usage Arguments Value Examples

View source: R/utils.R

Description

SingleCellExperiment to list of matrices

Usage

1
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

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

corral documentation built on Nov. 8, 2020, 8:25 p.m.