Skip to content

Commit

Permalink
Use primary identifiers instead of names in identifiers table.
Browse files Browse the repository at this point in the history
  • Loading branch information
for-hyde committed Oct 24, 2024
1 parent 5cb3579 commit 3103d6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omnipath_metabo/schema/_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class SwissLipids():
name = 'SwissLipids'
def __iter__(self):
for met in swisslipids.swisslipids_lipids():
yield met['Lipid ID'], met['SMILES (pH7.3)']
yield met['Name'], met['SMILES (pH7.3)']


class LipidMaps():
Expand All @@ -77,7 +77,7 @@ def __iter__(self):

for met in sdf:

if smiles := met['name'].get('SMILES', None):
if smiles := met['id'].get('SMILES', None):

yield met['id'], smiles

Expand Down

0 comments on commit 3103d6b

Please sign in to comment.