decoupler.plot_targets
- decoupler.plot_targets(data, stat, source_name, net, source='source', target='target', weight='weight', top=10, figsize=(5, 5), dpi=100, ax=None, return_fig=False, save=None)
Plot the weight and statistic of the target genes of a given source.
- Parameters:
- datapd.DataFrame
Results of DEA in long format.
- statstr
Column name of data storing feature statistics.
- source_namestr
Name of source to plot.
- netDataFrame
Network dataframe..
- sourcestr
Column name in net with source nodes.
- targetstr
Column name in net with target nodes.
- weightstr, None
Column name in net with weights.
- topint
Number of features to show labels.
- figsizetuple
Figure size.
- dpiint
DPI resolution of figure.
- axAxes, None
A matplotlib axes object. If None returns new figure.
- return_figbool
Whether to return a Figure object or not.
- savestr, None
Path to where to save the plot. Infer the filetype if ending on {
.pdf
,.png
,.svg
}.
- Returns:
- figFigure, None
If return_fig, returns Figure object.