Skip to contents

A convenient wrapper that routes to platform-specific edge detection methods.

Usage

detectEdgeArtifacts(spe, platform = c("visium", "visiumhd"), ...)

Arguments

spe

A SpatialExperiment object.

platform

Character string: "visium" or "visiumhd" (case insensitive).

...

Additional arguments passed to the specific function:

  • For Visium: edge_threshold, min_cluster_size, etc.

  • For VisiumHD: resolution (REQUIRED), buffer_width_um, etc.

Value

A SpatialExperiment object with artifact detection columns (_edge, _problem_id, _problem_size) added to colData.

Examples

# Load example data
data(spe_vignette)

# 1. Standard Visium example (runnable)
spe_visium <- detectEdgeArtifacts(spe_vignette, platform = "visium")
#> Error in `[[<-`(`*tmp*`, lg10_metric, value = numeric(0)): 0 elements in value to replace 4965 elements

# 2. Visium HD example (wrapped in  to avoid execution without HD data)
# \donttest{
# spe_hd <- detectEdgeArtifacts(spe_hd_example, platform = "visiumhd", resolution = "16um")
# }