rnalysis.enrichment.gene_ontology_graphο
- rnalysis.enrichment.gene_ontology_graph(aspect: Literal['biological_process', 'cellular_component', 'molecular_function'], results_table_path: str | Path, enrichment_score_column: str | Literal['log2_fold_enrichment', 'log2_enrichment_score'] = 'log2_fold_enrichment', title: str | Literal['auto'] = 'auto', ylabel: str = '$\\log_2$(Fold Enrichment)', graph_format: Literal['pdf', 'png', 'svg', 'none'] = 'none', dpi: PositiveInt = 300) Figure | None ο
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="$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).