Algorithm Principles and Mathematical Framework
Zaoqu Liu
2026-01-23
Source:vignettes/algorithm.Rmd
algorithm.RmdTheoretical Foundation
Connectome is built on the premise that cell-cell communication can be inferred from the co-expression patterns of ligand-receptor pairs across distinct cell populations. This document describes the mathematical framework underlying the analysis.
1. Ligand-Receptor Database
FANTOM5 Database
Connectome utilizes the FANTOM5 (Functional Annotation of the Mammalian Genome 5) ligand-receptor database, which provides curated pairs of interacting molecules:
Where: -
:
Ligand gene symbol -
:
Receptor gene symbol
-
:
Signaling mode/family classification -
:
Total number of pairs (~2,557 for human)
2. Edge Weight Computation
3. Statistical Testing
4. Diagnostic Odds Ratio (DOR)
The DOR quantifies gene specificity for a cell cluster using a 2×2 contingency table:
| Expressing | Non-expressing | |
|---|---|---|
| In cluster | TP | FN |
| Out of cluster | FP | TN |
5. Network Centrality Analysis
7. Implementation Details
References
FANTOM5 Database: Ramilowski, J.A. et al. A draft network of ligand–receptor-mediated multicellular signalling in human. Nat Commun 6, 7866 (2015).
Kleinberg Algorithm: Kleinberg, J.M. Authoritative sources in a hyperlinked environment. Journal of the ACM 46(5), 604–632 (1999).
Haldane-Anscombe Correction: Agresti, A. Categorical Data Analysis. Wiley, 3rd edition (2013).
Session Info
sessionInfo()
#> R version 4.4.0 (2024-04-24)
#> Platform: aarch64-apple-darwin20
#> Running under: macOS 15.6.1
#>
#> Matrix products: default
#> BLAS: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRblas.0.dylib
#> LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.0
#>
#> locale:
#> [1] C
#>
#> time zone: Asia/Shanghai
#> tzcode source: internal
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> loaded via a namespace (and not attached):
#> [1] digest_0.6.39 desc_1.4.3 R6_2.6.1 fastmap_1.2.0
#> [5] xfun_0.56 cachem_1.1.0 knitr_1.51 htmltools_0.5.9
#> [9] rmarkdown_2.30 lifecycle_1.0.5 cli_3.6.5 sass_0.4.10
#> [13] pkgdown_2.1.3 textshaping_1.0.4 jquerylib_0.1.4 systemfonts_1.3.1
#> [17] compiler_4.4.0 tools_4.4.0 ragg_1.5.0 bslib_0.9.0
#> [21] evaluate_1.0.5 yaml_2.3.12 otel_0.2.0 jsonlite_2.0.0
#> [25] rlang_1.1.7 fs_1.6.6 htmlwidgets_1.6.4