dot-expand_sce_rows: Helper function to expand a SingleCellExperiment to include...

.expand_sce_rowsR Documentation

Helper function to expand a SingleCellExperiment to include specified genes

Description

The function identifies the missing ensembl_gene_id's (if any), and generates new zero'd matrix rows, rbinds them to the matrix, then sorts the matrix by ensembl_gene_id. rowData (except ensembl_gene_id) and metadata are dropped to facilitate subsequent cbind-ing of SingleCellExperiments.

Usage

.expand_sce_rows(sce, union_ensembl_gene_id)

Arguments

sce

a SingleCellExperiment

union_ensembl_gene_id

the full list of ensembl_gene_id to be included in the new expanded SingleCellExperiment

Value

sce a annotated SingleCellExperiment object with any


combiz/scFlow documentation built on Feb. 25, 2024, 10:25 a.m.