Add adjacency matrix list for a SRTProject object
AddAdj(
SRTProj,
platform = c("Visium", "ST", "Other"),
type = "fixed_distance",
force = FALSE,
...
)
a SRTProject object
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.
an optional string, specify which type of neighbors' definition. Here we provide two definition: one is "fixed_distance", the other is "fixed_number".
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
.
return a SRTProject.