set_feat_id: Set feat IDs for a given feature type

View source: R/accessors.R

set_feat_idR Documentation

Set feat IDs for a given feature type

Description

Setter function for the feat_ID slot. Directly replaces (sets) this slot

Usage

set_feat_id(
  gobject,
  feat_type = NULL,
  feat_IDs,
  set_defaults = TRUE,
  verbose = TRUE
)

Arguments

gobject

giotto object

feat_type

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

feat_IDs

character vector of feature IDs to set.

set_defaults

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

verbose

be verbose

Details

Across a single modality/feature type, and within a spatial unit, all feature information is expected to share a single set of feat_IDs. These feat_IDs are stored within the giotto object's feat_ID slot separated by feat_type.

Pass NULL to feat_IDs param in order to delete the entry.
Pass 'initialize' to feat_IDs param in order to initialize the specified entry.

NOTE: The main purpose of the setter is to initialize, as feat_ID values are AUTOMATICALLY updated every time initialize() is called on the giotto object.

Value

giotto object with set cell_ID slot

See Also

get_feat_id

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_feature_info(), set_giottoImage(), set_multiomics(), set_polygon_info(), set_spatialGrid(), set_spatialNetwork(), set_spatial_enrichment(), set_spatial_locations()


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