Skip to content

Commit

Permalink
functioning insertion of identifiers for ramp and hmdb
Browse files Browse the repository at this point in the history
  • Loading branch information
for-hyde committed Nov 20, 2024
1 parent b5a7f0e commit 1db28f8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions omnipath_metabo/schema/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,11 @@ def load(self):
id_type == self.resource.name,
self._resource_id(self.resource.id_types.get(id_type, id_type))
)
for name, smiles, _ in (
r['structure'] for i, r in enumerate(cached_resource.cached['struct'])
)
for i, r in enumerate(cached_resource.cached['struct'])
for name, smiles, _ in [r['structure']]
for _id, id_type in itertools.chain(
(name, self.resource.name),
cached_resource.cached['struct'][i]['identifiers']
[(name, self.resource.name)],
r['identifiers']
)
)

Expand Down

0 comments on commit 1db28f8

Please sign in to comment.