Generic function. Plots each bin coloured by significance status: empty, non-significant, or significant hotspot (continuous gradient of -log10 p-value or 1 - p-value).
Usage
plotHotspots(x, ...)
# S3 method for class 'blisa'
plotHotspots(
x,
index = 1,
ligand = NULL,
receptor = NULL,
log_pval = TRUE,
p_cutoff = NULL,
...
)Arguments
- x
A
blisaobject.- ...
Additional arguments passed to the method.
- index
Integer. Row index into
LR_resultsselecting the ligand-receptor pair to visualise. Ignored when bothligandandreceptorare supplied. Default1(top-ranked pair).- ligand
Character. Ligand gene symbol. When both
ligandandreceptorare provided the matching LR pair is located automatically andindexis ignored. Must be supplied together withreceptor.- receptor
Character. Receptor gene symbol. Must be supplied together with
ligand.- log_pval
Logical. If
TRUE(default), colour significant bins by -log10(p-value). IfFALSE, use 1 - p-value.- p_cutoff
Numeric or
NULL. WhenNULL(default), the pre-computed hotspot bins stored in theblisaobject are used, reflecting thep_cutoffand High-High quadrant classification applied duringblisa. When a numeric value is supplied, bins are re-defined on the fly as those withall_pval <= p_cutoffand quadrant label"High-High"(from the storedall_quadrant), giving an exact re-threshold consistent with the original classification.