forked from sqjin/CellChat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomputeCommunProbPathway.Rd
36 lines (29 loc) · 1.58 KB
/
computeCommunProbPathway.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/modeling.R
\name{computeCommunProbPathway}
\alias{computeCommunProbPathway}
\title{Compute the communication probability on signaling pathway level by summarizing all related ligands/receptors}
\usage{
computeCommunProbPathway(
object = NULL,
net = NULL,
pairLR.use = NULL,
thresh = 0.05
)
}
\arguments{
\item{object}{CellChat object}
\item{net}{A list from object@net; If net = NULL, net = object@net}
\item{pairLR.use}{A dataframe giving the ligand-receptor interactions; If pairLR.use = NULL, pairLR.use = object@LR$LRsig}
\item{thresh}{threshold of the p-value for determining significant interaction}
}
\value{
A CellChat object with updated slot 'netP':
object@netP$prob is the communication probability array on signaling pathway level; USER can convert this array to a data frame using the function 'reshape2::melt()',
e.g., `df.netP <- reshape2::melt(object@netP$prob, value.name = "prob"); colnames(df.netP)[1:3] <- c("source","target","pathway_name")` or access all significant interactions using the function \code{\link{subsetCommunication}}
object@netP$pathways list all the signaling pathways with significant communications.
From version >= 1.1.0, pathways are ordered based on the total communication probabilities. NB: pathways with small total communication probabilities might be also very important since they might be specifically activated between only few cell types.
}
\description{
Compute the communication probability on signaling pathway level by summarizing all related ligands/receptors
}