Merger: Merge expression matrices

View source: R/pre_processing.R

MergerR Documentation

Merge expression matrices

Description

This function takes a list of expression matrices as input with ST spots in columns and genes in rows. All expression matrices will be merged into one matrix where all genes that are present in any of the expression matrices will be included. If a there are no counts available for a gene in one or more of the expression matrices, the counts for that gene will be set to 0 in those expression matrices. By default, a unique number will be prefixed to the headers of each expression matrix.

Usage

Merger(exp.list, delim = "x", labels = NULL, sparse.matrix.fmt = F)

Arguments

exp.list

list of expression matrices

delim

delimiter used to separate coordinates in expression matrix headers

labels

labels to use as suffix for the headers of each expression matrix

sparse.matrix.fmt

return mergedexpression matrix in dgCMatrix format to save memory

Value

merged expression matrix


jbergenstrahle/STUtility documentation built on March 14, 2023, 7:15 a.m.