Skip to content

Use customed lrpairs

Shao, Xin edited this page Apr 6, 2022 · 1 revision

Create lrpairs_custom

Please follow the structure and colnames of lrpairs or demo_lrpairs() as follows:

# lrpairs is a data.frame object with 3 columns
ligand receptor species
CX3CL1 CX3CR1 Human
TGFB1 TGFBR2 Human
CCL2 CCR2 Human
Sst Sstr1 Mouse

Use lrpairs_custom

Replace the lrpairs with lrpairs_custom in the function of find_lr_path() to infer cell-cell communications

find_lr_path(object, lrpairs = lrpairs_custom, pathways, max_hop)