- cellrank.pl.log_odds(adata, lineage_1, lineage_2=None, time_key='exp_time', backward=False, keys=None, threshold=None, threshold_color='red', layer=None, use_raw=False, size=2.0, cmap='viridis', alpha=0.8, ncols=None, fontsize=None, xticks_step_size=1, legend_loc='best', jitter=True, seed=None, figsize=None, dpi=None, save=None, show=True, **kwargs)#
Plot log-odds ratio between trajectories.
This plotting function is geared towards time-series datasets that have been analyzed using the
RealTimeKernel. It visualizes log-odd ratios between different trajectories per cell, with the option to color in certain molecular features, like genes. This can be useful to detect and visualize fate-decisive genes.
AnnData) – Annotated data object.
str) – The first lineage for which to compute the log-odds.
bool) – Direction of the process.
str) – Color to use when plotting thresholded expression values.
float) – Size of the dots.
str) – Colormap to use for continuous variables in
- Return type
: Nothing, just plots the figure. Optionally saves it based on
show = False, returns the axes object.