split_dataset_by_batch: Split the expression matrix into a list of per batch...

Description Usage Arguments Value

View source: R/data_preprocessing_utils.R

Description

Split the expression matrix into a list of per batch expressions

Usage

1
2
3
4
5
6
7
split_dataset_by_batch(
  X,
  batch,
  labels = NULL,
  metadata = NULL,
  dataset.name = NULL
)

Arguments

X

An ncells-by-ngenes gene expression matrix

batch

categorical/characteristic vector as batch id

labels

(optional) charateristic vector of cell labels (default NULL)

metadata

(optinal) dataframe of ncells row saving the cell metadata

dataset.name

string, prefix of list name

Value

a list containing

X.list

a list of gene expression matrix per batch

labels.list

a list of vectors, saving the cell labels per batch

metadata.list

a list of dataframe saving the metadata per batch


pengminshi/cFIT documentation built on July 11, 2021, 11:12 p.m.