set_spatial_enrichment: Set spatial enrichment

set_spatial_enrichmentR Documentation

Set spatial enrichment

Description

Function to set a spatial enrichment slot

Usage

set_spatial_enrichment(
  gobject,
  spatenrichment,
  spat_unit = NULL,
  feat_type = NULL,
  enrichm_name = "enrichment",
  provenance = NULL,
  verbose = TRUE,
  set_defaults = TRUE,
  initialize = TRUE
)

Arguments

gobject

giotto object

spatenrichment

spatial enrichment results

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"

verbose

be verbose

set_defaults

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

initialize

(default = FALSE) whether to initialize the gobject before returning

Value

giotto object

See Also

Other spatial enrichment data accessor functions: getSpatialEnrichment(), get_spatial_enrichment(), setSpatialEnrichment()

Other functions to set data in giotto object: get_cell_id(), get_feat_id(), setCellMetadata(), setDimReduction(), setExpression(), setFeatureInfo(), setFeatureMetadata(), setGiottoImage(), setMultiomics(), setNearestNetwork(), setPolygonInfo(), setSpatialEnrichment(), setSpatialGrid(), setSpatialLocations(), setSpatialNetwork(), set_NearestNetwork(), set_cell_id(), set_cell_metadata(), set_dimReduction(), set_expression_values(), set_feat_id(), set_feature_info(), set_giottoImage(), set_multiomics(), set_polygon_info(), set_spatialGrid(), set_spatialNetwork(), set_spatial_locations()


drieslab/Giotto_site_suite documentation built on April 26, 2023, 11:51 p.m.