Description Usage Arguments Details Value Examples
View source: R/make_conn_mat.R
This function calculates the connectivity of a spatial cell to other cells.
1 | make_conn_mat(sdata, orig.ident = NULL, verbose = F)
|
sdata |
Seurat formatted spatial 10X scRNA expression data |
orig.ident |
A unique orig.ident for creating connectivity matrix. |
verbose |
Print intermediate value checks as stderr() |
Returns a list of spatial connectivity matrix variables (C, W) according to Lee S. J Geograph Syst (2001) 3:369-385.
A list containing $barcodes_in_tissue (barcodes of spatial cells with 'tissue=TRUE'), $nbarcodes_in_tissue (length of barcodes_in_tissue), $C (raw connectivity/adjacency matrix), $W (row-sum divided connectivity matrix), $L_estimate_divR (L estimate, divided by Pearson's R (used later))
1 | #' # Refer to https://github.com/soymintc/scBSC
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.