Removes genes from the data set. This affects count- and expression matrices and can drastically decrease object size.

subsetByGenes(object, genes, verbose = NULL)

Arguments

object

An object of class spata2.

genes

Character vector of gene names that are kept.

verbose

Logical. If set to TRUE informative messages regarding the computational progress will be printed.

(Warning messages will always be printed.)

Value

The input spata2 object containing the added or computed results.

Note

Gene dependent analysis results such as DEA or SPARKX are not subsetted. Stored results are kept as they are. To update them run the algorithms again.