Skip to content

get_lipid_string output not parseable for GlcSph/GalSph #46

@felicious-fe

Description

@felicious-fe

Describe the bug
Goslin is able to parse the input lipids "GlcSph" and "GalSph" and creates the output "LGlcCer(1) 18:0;3OH" and "LGalCer(1) 18:0;3OH". However if you try to parse "LGlcCer(1) 18:0;3OH" or "LGalCer(1) 18:0;3OH" it raises a LipidException.

To Reproduce
Steps to reproduce the behavior:

  1. Create a LipidParser object
  2. Execute the LipidParser::parse() function with the argument "GlcSph" and save the resulting LipidAdduct object
  3. Execute the LipidAdduct::get_lipid_string() function on the saved object and save the resulting string
  4. Execute the LipidParser::parse() function with the saved string as argument
  5. See error

Expected behavior
Goslin parses the output it generated and creates the same Lipid object from it.

Additional context
Occured in pygoslin 2.1.5 on Python 3.13.2 on Fedora Linux 41

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions