Sender-by-receiver heatmap of CCI scores for one ligand-receptor pair
Source:R/plotCCILR.R
plotCCILR.RdGeneric function. Reshapes the CCI data frame into a receiver-by-sender cell-type matrix for one selected LR pair and draws a clustered heatmap.
Usage
plotCCILR(x, ...)
# S3 method for class 'blisa'
plotCCILR(x, index = 1, ligand = NULL, receptor = NULL, main = NULL, ...)
# Default S3 method
plotCCILR(x, lr_pair, main = NULL, ...)Arguments
- x
A
blisaobject or a CCI scores data frame (theCCI_scoresslot of ablisaobject).- ...
Additional arguments passed to the relevant 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.- main
Character or
NULL. Title drawn above the heatmap. When supplied, the heatmap is drawn with this overall title (viaComplexHeatmap::draw); theHeatmapobject is returned invisibly. DefaultNULL(no title; object returned for the caller to print).- lr_pair
Character. Column name in the CCI scores data frame corresponding to the ligand-receptor pair to visualise (e.g.
"CXCL12_CXCR4").
Methods (by class)
plotCCILR(blisa): Method for ablisaobject. The LR pair is selected byindex(default 1, the top-ranked pair) unless bothligandandreceptorare supplied, in which case the matching row is located automatically andindexis ignored. Stops with an informative error ifCCI_scoresisNULLor the selected LR pair has no significant hotspots.plotCCILR(default): Method for a CCI scores data frame (e.g. theCCI_scoresslot of ablisaobject). The LR pair is selected by column name vialr_pair.
See also
plotCCI for an overview heatmap across all LR pairs;
plotCCIsummary for an aggregated sender-by-receiver heatmap.