addSpatialCentroidLocations#

Date

2022-10-06

https://github.com/drieslab/Giotto/tree/suite/R/giotto_structures.R#L1699

Description#

Calculates the centroid locations for the polygons within one or more selected layers

Usage#

addSpatialCentroidLocations(
  gobject,
  poly_info = "cell",
  feat_type = NULL,
  spat_loc_name = "raw",
  return_gobject = TRUE,
  verbose = TRUE
)

Arguments#

Argument

Description

gobject

giotto object

poly_info

polygon information

feat_type

feature type

spat_loc_name

name to give to the created spatial locations

return_gobject

return giotto object (default: TRUE)

verbose

be verbose

Value#

If return_gobject = TRUE the giotto object containing the calculated polygon centroids will be returned. If return_gobject = FALSE only the generated polygon centroids will be returned.