This function takes a vector of genes or a regular expression and discards genes from the object's data matrices, gene meta data.frames and de-analysis results that match the input.

discardGenes(
  object,
  genes = NULL,
  regex = NULL,
  include_dea = TRUE,
  verbose = NULL,
  of_sample = NA
)

Arguments

object

An object of class spata2.

genes

Character vector or NULL. If character vector, specifies the genes to be discarded by name.

regex

Character value or NULL. If character value, specifies the regular expression according to which genes are discarded.

include_dea

Logical value. If set to TRUE the results of de-analysis are included. If set to FALSE de-analysis results are skipped during the discarding steps.

verbose

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

(Warning messages will always be printed.)

of_sample

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

Value

An updated spata-object.