liana.plotting.tileplot#
- liana.plotting.tileplot(adata=None, liana_res=None, fill=None, label=None, label_fun=None, source_labels=None, target_labels=None, ligand_complex=None, receptor_complex=None, uns_key='liana_res', top_n=None, orderby=None, orderby_ascending=False, orderby_absolute=True, filter_fun=None, source_title=None, target_title=None, cmap='viridis', figure_size=(5, 5), label_size=12, return_fig=True)#
Tileplot interactions by source and target cells
- Parameters:
adata (
AnnData(default:None)) – Annotated data object.liana_res (
DataFrame(default:None)) –liana_resaDataFramein liana’s format.fill (
str(default:None)) –columninliana_resto define the fill of the tileslabel (
str(default:None)) –columninliana_resto define the label of the tileslabel_fun (
Callable(default:None)) –callableto apply to thelabelcolumnsource_labels (
str|list[str] (default:None)) – List of labels to use assource, the rest are filtered out.target_labels (
str|list[str] (default:None)) – List of labels to use astarget, the rest are filtered out.ligand_complex (
str|list[str] (default:None)) –listof ligand complexes to filter the interactions to be plotted. Defaults to None.receptor_complex (
str|list[str] (default:None)) –listof receptor complexes to filter the interactions to be plotted. Defaults to None.uns_key (
str(default:'liana_res')) – Key inadata.unsthat contains the LIANA results. Default is'liana_res'.top_n (
int(default:None)) –top_nentities to plot.orderby (
str(default:None)) – Iftop_nis notNone, order the interactions by this columnorderby_ascending (
bool(default:False)) – Iftop_nis notNone, specify how to order the interactionsorderby_absolute (
bool(default:True)) – Iftop_nis notNone, whether to order by the absolute value of theorderbycolumn.filter_fun (
Callable(default:None)) – A function, applied along the columns (axis=1), used to filter the results to be plotted.source_title (default:
None) – Title for the source facet. Default is ‘Source’target_title (default:
None) – Title for the target facet. Default is ‘Target’cmap (
str(default:'viridis')) – Colour map to use for plotting.figure_size (
tuple[float,float] (default:(5, 5))) – Figure x,y sizelabel_size (
int(default:12)) – Size of the label textreturn_fig (
bool(default:True)) –boolwhether to return the fig object.
- Return type:
Figure- Returns:
The resulting tileplot