rnalysis.enrichment.gene_ontology_graph

rnalysis.enrichment.gene_ontology_graph(aspect: Literal['biological_process', 'cellular_component', 'molecular_function'], results_table_path: Union[str, Path], enrichment_score_column: Union[str, Literal['log2_fold_enrichment', 'log2_enrichment_score']] = 'log2_fold_enrichment', title: Union[str, Literal['auto']] = 'auto', ylabel: str = '$\\log_2$(Fold Enrichment)', graph_format: Literal['pdf', 'png', 'svg', 'none'] = 'none', dpi: PositiveInt = 300) Optional[Figure]

Generate a GO enrichment ontology graph based on an enrichment results table.

Parameters
  • aspect ('biological_process', 'molecular_function', or 'cellular_component') – The GO aspect to generate an ontology graph for.

  • results_table_path (str or Path) – Path to the results table returned by enrichment functions.

  • enrichment_score_column (str (default='log2_fold_enrichment')) – name of the table column that contains the enrichment scores.

  • title (str or 'auto' (default='auto')) – plot title.

  • ylabel (str (default=r"$log_2$(Fold Enrichment)")) – plot y-axis label.

  • graph_format ('pdf', 'png', 'svg', or 'none' (default='none')) – if graph_format is not ‘none’, the ontology graph will additonally be generated in the specified file format.

  • dpi (int (default=300)) – resolution of the ontology graph in DPI (dots per inch).