pilotpy.pl.go_enrichment

pilotpy.pl.go_enrichment(df, num_gos=20, source=None, cell_type='cell_type', fontsize=32, s=200, figsize=(15, 12), color='tab:blue', dpi=100, bbox_inches='tight', facecolor='white', transparent=False, organism='hsapiens')

Perform Gene Ontology (GO) enrichment analysis and create a scatterplot of enriched terms.

Parameters:

dfDataFrame

Input DataFrame containing gene information.

num_gosint, optional

Number of top enriched GO terms to visualize. Default is 20.

sourcestr, optional

Specify the source of GO terms. The default is None.

cell_typestr, optional

Name of the cell type for which the GO enrichment is performed. Default is ‘cell_type’.

fontsizeint, optional

Font size for the plot title and labels. Default is 32.

sint, optional

Marker size for the scatterplot. Default is 200.

figsizetuple, optional

Figure size (width, height) in inches. Default is (15, 12).

colorstr, optional

Color of the scatterplot markers. Default is ‘tab:blue’.

dpiint, optional

Dots per inch for the saved plot image. Default is 100.

bbox_inchesstr, optional

Bounding box options for saving the plot. Default is ‘tight’.

facecolorstr, optional

Background color of the saved plot image. Default is ‘white’.

transparentbool, optional

Whether the saved plot image has a transparent background. Default is False.

organismstr, optional

Organism for GO enrichment analysis. Default is ‘hsapiens’.

Returns:

None

Saves the scatterplot of enriched GO terms as a PDF file.