detectSpatialCorGenes: detectSpatialCorGenes

Description Usage Arguments Details Value See Also Examples

Description

Detect genes that are spatially correlated

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
detectSpatialCorGenes(
  gobject,
  method = c("grid", "network"),
  expression_values = c("normalized", "scaled", "custom"),
  subset_genes = NULL,
  spatial_network_name = "Delaunay_network",
  network_smoothing = NULL,
  spatial_grid_name = "spatial_grid",
  min_cells_per_grid = 4,
  cor_method = c("pearson", "kendall", "spearman")
)

Arguments

gobject

giotto object

method

method to use for spatial averaging

expression_values

gene expression values to use

subset_genes

subset of genes to use

spatial_network_name

name of spatial network to use

network_smoothing

smoothing factor beteen 0 and 1 (default: automatic)

spatial_grid_name

name of spatial grid to use

min_cells_per_grid

minimum number of cells to consider a grid

cor_method

correlation method

Details

For method = network, it expects a fully connected spatial network. You can make sure to create a fully connected network by setting minimal_k > 0 in the createSpatialNetwork function.

The spatCorObject can be further explored with showSpatialCorGenes()

Value

returns a spatial correlation object: "spatCorObject"

See Also

showSpatialCorGenes

Examples

1

bernard2012/Giotto documentation built on Sept. 22, 2020, 10:29 a.m.