omicverse.metabol.parse_lipid

Contents

omicverse.metabol.parse_lipid#

omicverse.metabol.parse_lipid(name)[source]#

Parse a lipid name into a LipidIdentity.

Tries the Goslin reference parser (pygoslin) first — it handles the LIPID MAPS shorthand and the common vendor dialects and gives class, category and per-chain detail. Falls back to the built-in regex when pygoslin is unavailable or the name is unrecognised. Returns None if neither parser recognises the name.

Parameters:

name (str)