Skip to contents

Function to get a spatial enrichment data.table

Usage

get_spatial_enrichment(
  gobject,
  spat_unit = NULL,
  feat_type = NULL,
  enrichm_name = "DWLS",
  output = c("spatEnrObj", "data.table"),
  copy_obj = TRUE,
  set_defaults = TRUE
)

Arguments

gobject

giotto object

spat_unit

spatial unit (e.g. "cell")

feat_type

feature type (e.g. "rna", "dna", "protein")

enrichm_name

name of spatial enrichment results. Default "DWLS"

output

what format in which to get information (e.g. "data.table")

copy_obj

whether to deep copy/duplicate when getting the object (default = TRUE)

set_defaults

set default spat_unit and feat_type. Change to FALSE only when expression and spat_info are not expected to exist.

Value

spatEnrObj or data.table with fractions