| blisaPathway | R Documentation |
Rolls up per-ligand-receptor (LR) pair BLISA hotspot results to the signalling
pathway level, grouping LR pairs by a pathway annotation column (e.g.
CellChatDB's pathway_name). For each pathway it returns the spots that
are hotspots for the pathway, a per-spot pathway p-value, and the LR pair
driving each spot.
blisaPathway(
x,
method = c("minP", "simes", "fisher"),
pathway_col = "pathway_name",
p_cutoff = 0.05,
p_adjust = c("none", "BH")
)
x |
A |
method |
Character. Per-spot combination: |
pathway_col |
Character. Column of |
p_cutoff |
Numeric. Significance threshold for |
p_adjust |
Character. Multiple-testing adjustment across spots for
|
The per-spot pathway p-value is computed by one of three methods:
"minP"The union of each LR pair's significant hotspot spots,
with the minimum p-value per spot. p_cutoff and p_adjust
are ignored.
"simes"Per-spot Simes combination across all LR pairs
in the pathway, using the full per-spot p-values (all_pval)
restricted to the High-High co-expression direction.
Non-High-High/untested contributions are set to 1.
"fisher"As "simes" but Fisher's method.
For "simes"/"fisher", a spot is a pathway hotspot when its
combined p-value is \le p_cutoff (after optional p_adjust).
A blisa object whose LR_results slot is the pathway-level
table (one row per pathway, row names = pathway, ordered by
sig_numbers descending), so the standard blisa methods work directly
(plotHotspots, plotLRrank, print). The
bins and spatial_weights slots are carried over from x
(when it is a blisa object); CCI_scores is NULL. The
LR_results columns are:
Number of pathway hotspot spots.
Number of LR pairs annotated to the pathway.
List column: the hotspot spot indices.
List column: the per-spot pathway p-values.
List column: all LR pair IDs in the pathway.
List column: per spot, the LR pair(s) with the smallest contributing p-value.
blisa
## Not run:
res <- blisa(spe, platform = "visium")
blisaPathway(res) # min-P (original behaviour)
blisaPathway(res, method = "simes", p_adjust = "BH")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.