superexacttestpy.pl.plot

superexacttestpy.pl.plot(data, n, name, degree=-1, sort_by='degree', show_count=True, orientation='horizontal', color_p_val=True, size=(10, 5), background_color='seaborn-notebook', vmax=None)

Plot the results of the superexact test

Parameters:
data : list

List of data to compute with superexact test

n : int

Background size

name : list

List of names of each set

degree : int

Intersection degree

sort_by : str

Sort the results by “degree” or “cardinality”

show_count : bool

Show the number of genes in each set

orientation : str

Orientation of the plot. “horizontal” or “vertical”

color_p_val : bool

Color the bars by their p-value

size : tuple

Size of the plot

background_color : str

Background color of the plot. Default = “seaborn-notebook” other possibility : see style.available for list of available styles

Returns:

df – Dataframe with the results of the superexact test

Return type:

pd.DataFrame

Example

>>> plot(data, n, name, degree=-1, sort_by="degree", show_count=True, orientation="horizontal", color_p_val=True, size=(10,5), background_color="dark_background")
... None