Add adjacency matrix list for a SRTProject object

AddAdj(
  SRTProj,
  platform = c("Visium", "ST", "Other"),
  type = "fixed_distance",
  force = FALSE,
  ...
)

Arguments

SRTProj

a SRTProject object

platform

a string, specify the data collection platform, one of "Visium", "ST" and "Other", default as "Visium". The platform helps to calculate the adjacency matrix by defining the neighborhoods when type="fixed_distance" is chosen.

type

an optional string, specify which type of neighbors' definition. Here we provide two definition: one is "fixed_distance", the other is "fixed_number".

force

a logical value, whether delete and rewrite the adjacency matrix list to h5file if there exists the adjacency matrix.

...

other arguments pass to getAdj_auto.

Value

return a SRTProject.