Generate a graph under a uniformized ligand-receptor baseline
Source:R/network_generation.R
generateUniformLRGraph.RdGenerate a graph under a uniformized ligand-receptor baseline
Usage
generateUniformLRGraph(
LRdistr,
Lmatrix,
Rmatrix,
Cdistr,
cellTypes,
patient = 1,
N = 20,
avdeg = 2
)Arguments
- LRdistr
Ligand-receptor tensor.
- Lmatrix
Cell-by-ligand compatibility matrix.
- Rmatrix
Cell-by-receptor compatibility matrix.
- Cdistr
Patient-by-cell-type abundance matrix.
- cellTypes
Character vector of cell-type labels.
- patient
Patient index to simulate.
- N
Number of cells in the generated graph.
- avdeg
Target average degree.