omicverse.metabol.lion_enrichment

omicverse.metabol.lion_enrichment#

omicverse.metabol.lion_enrichment(hits, background, *, ontology=None, min_size=3)[source]#

LION-style over-representation for lipid classes / properties.

Parameters:
  • hits (Iterable[str]) – Lipid names in LIPID MAPS shorthand (e.g. ['PC 34:1', 'TAG 54:3', ...]).

  • background (Iterable[str]) – All tested lipid names.

  • ontology (Optional[dict[str, dict]] (default: None)) – Dict of {term_name: {"members": [lipid_class, ...], "category": ...}}. If None, the local LION subset is used.

Return type:

DataFrame