Generate connectivity matrix
generate_connectivity.Rd
Based on the radius with the lowest TopKAT p-value, compute a connections matrix that shows how many edges are between cells of each type at the simplicial complex constructed based on this radius.
Value
Returns a connectivity matrix of dimension \(n\times n\) where \(n\)
is the number of cell types, i.e. the length of unique.types
Details
images.df
should contain a PID
column indicating which sample
each image corresponds to. It should also contain columns x
and y
indicating
the location of each cell. Each row in images.df
corresponds to a cell within
each image. See the package vignettes for an example of the structure.
This function may take several minutes to run and does require
a substantial amount of memory. If the memory limit is reached, consider
running mem.maxVSize(vsize = x)
and specify x
to a large value.