spapros.pl.gene_overlap
- spapros.pl.gene_overlap(selection_df, style='upset', min_degree=0, fontsize=18, show=True, save=None)
Plot overlap of gene sets
- Parameters:
selection_df (DataFrame) – Table with gene sets. Gene names are given in the index, gene sets are given as boolean columns.
style (Literal['upset', 'venn']) –
Plot type. Options are
”upset”: upset plot
”venn”: venn diagram
min_degree (int) – Only for style=”upset”: minimum degree (number of categories intersected) of a subset to be shown in the plot.
fontsize (int) – Matplotlib fontsize.
show (bool) – Whether to display the plot.
save (Optional[str]) – Save the plot to path.
- Return type:
None