LRactivity: calculate the activity for each LR pair

LRactivityR Documentation

calculate the activity for each LR pair

Description

calcuate the LR activity

Usage

LRactivity(expr, location, normalize = T, knn = 8, LRpair = LRpair)

Arguments

expr

gene expression matrix, the row is the gene and the column is the spot/cell

location

location matrix, the row number of location should match the column number of expr

normalize

whether to normalize the data (default: TRUE)

knn

the number of nearest neighbours to search (default: 8)

LRpair

the ligand-receptor pair for plot

Value

a data matrix with LR activity in each location, row is LR pair, column is location.


liuqivandy/SpaGene documentation built on July 1, 2023, 6:44 a.m.