diff --git a/omnipath_metabo/schema/_structure.py b/omnipath_metabo/schema/_structure.py index a130cc6..ecd70f0 100644 --- a/omnipath_metabo/schema/_structure.py +++ b/omnipath_metabo/schema/_structure.py @@ -199,8 +199,10 @@ def __iter__(self): None, met['name'].get('FORMULA', None)), 'identifiers': [ - (met.get(k[0], {}).get(k[1], None), k[1]) + (name, k[1]) for k in self.id_fields + for name in names.split('; ') + if (names := met.get(k[0], {}).get(k[1], None)) is not None ] }