greatpy.pl.make_bubble_heatmap
- greatpy.pl.make_bubble_heatmap(p_val_df, odd_ratio_df, na_color='gray', tickscolorbar=[-2, -1, 0, 1, 2], vmin=-2.5, vmax=2.5, heatmap_grid=[2, 4, 0, 2, 2, 1], circle_legend_grid=[2, 4, 0, 2, 2, 1], colorbar_grid=[2, 5, 0, 3, 2, 1], palette_id='RdBu_r', cbar_label='cbar_label', ncols=8, marker=None, **kwargs)
Generate a dotplot with multiple categories
- Parameters:
- p_val_df : pd.DataFrame
DataFrame of the p-values computed by enrichment function
- odd_ratio_df : pd.DataFrame
DataFrame of the odds ratios computed by enrichment function
- na_color : str
Color for NA values
Default is
"gray"- tickscolorbar : list
List of ticks should be add on the colorbar
Default is
[-2, -1, 0, 1, 2]- vmin : int or float
Minimum value for the colorbar
Default is
-2.5- vmax : int or float
Maximum value for the colorbar
Default is
2.5- heatmap_grid : list
Grid for the heatmap
Default is
[2, 4, 0, 2, 2, 1]- circle_legend_grid : list
Grid for the circle legend
Default is
[2, 4, 0, 2, 2, 1]- colorbar_grid : list
Grid for the colorbar
Default is
[2, 5, 0, 3, 2, 1]- palette_id : str
Palette id for the colorbar
Default is
"RdBu_r"- cbar_label : str
Label for the colorbar
Default is
"cbar_label"- ncols : int or None
Number of columns for the colorbar
Default is
8- marker : str or None
Marker for the dots
Default is
None- kwargs
Additional keyword arguments for the plot
- Returns:
Bubble heatmap plot for gene ontology
- Return type:
None