Adds an expression matrix to the object's data slot and makes it available for all SPATA-intern function. Use setActiveExpressionMatrix() to denote it as the default to use.

addExpressionMatrix(object, expr_mtr, mtr_name, of_sample = "")

Arguments

object

A valid spata-object.

expr_mtr

A matrix in which the rownames correspond to the gene names and the column names correspond to the barcode-spots.

mtr_name

A character value that denotes the name of the exprssion matrix with which one can refer to it in subsequent functions.

of_sample

This argument is currently inactive. It might be reactivated when spata-objects can store more than one sample.

Value

The input spata2 object containing the added or computed results.