Use argument across to specify the grouping variable of interest across which the de-analysis has been conducted and argument max_adj_pval to set the quality requirements of genes to be included in the counting process.

plotDeaGeneCount(
  object,
  across = NULL,
  across_subset = NULL,
  relevel = FALSE,
  method_de = NULL,
  max_adj_pval = NULL,
  clrp = NULL,
  clrp_adjust = NULL,
  display_title = NULL,
  sort_by_count = TRUE,
  of_sample = NA,
  ...
)

Arguments

object

An object of class spata2.

across

Character value or NULL. Specifies the grouping variable of interest.

Use getGroupingOptions() to obtain all variable names that group the barcode spots of your object in a certain manner.

across_subset

Character vector or NULL. Specifies the particular groups of interest the grouping variable specified in argument across contains.

If set to NULL all of them are chosen. You can prefix groups you are NOT interested in with a '-'. (Saves writing if there are more groups you are interested in than groups you are not interested in.)

Use getGroupNames() to obtain all valid input options.

relevel

Logical value. If set to TRUE the input order of across_subset determines the order in which the groups of interest are displayed. Groups that are not included are dropped which affects the colors with which they are displayed.

method_de

Character value. Denotes the method to according to which the de-analysis is performed. Given to argument test.use of the Seurat::FindAllMarkers()-function. Run SPATA::dea_methods to obtain all valid input options.

max_adj_pval

Numeric value. Sets the threshold for adjusted p-values. All genes with adjusted p-values above that threshold are ignored.

clrp

Character value. Specifies the color palette to be used to represent groups of discrete variables. Run validColorPalettes() to obtain valid input options.

display_title

Logical value. If set to TRUE an informative title is displayed.

of_sample

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

...

Used to absorb deprecated arguments or functions.

Value

Returns a ggplot-object that can be additionally customized according to the rules of the ggplot2-framework.