stIHC: Spatial Transcriptomics Iterative Hierarchical Clustering

View source: R/stIHC.R

stIHCR Documentation

Spatial Transcriptomics Iterative Hierarchical Clustering

Description

Spatial Transcriptomics Iterative Hierarchical Clustering

Usage

stIHC(data)

Arguments

data

data frame with columns x, y for spatial coordinates and subsequent columns containing observations.

Value

A list with elements:

label

Vector of cluster labels.

mean_clusters_mat

Matrix of cluster means.

clusters

List of matrices, each matrix contains the observations belonging to that cluster.

Examples


## Load example data within the package
rds_path <- system.file("extdata", "spatial_data.rds", package = "stIHC")
example_data <- readRDS(rds_path)

## Run stIHC
stihc = stIHC(example_data)

## Inspect cluster assignments
table(stihc$label)


stIHC documentation built on Oct. 21, 2026, 5:14 p.m.