Skip to content

Commit

Permalink
splitting of synonyms for lipidmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
for-hyde committed Nov 20, 2024
1 parent dc262d3 commit 1a3b30e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion omnipath_metabo/schema/_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
}

Expand Down

0 comments on commit 1a3b30e

Please sign in to comment.