Skip to content

Commit

Permalink
LipidMaps in structure
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Oct 11, 2024
1 parent 3e85baf commit 436b721
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions omnipath_metabo/schema/_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,18 @@ class SwissLipids():
def __iter__(self):
for met in swisslipids.swisslipids_lipids():
yield met['Lipid ID'], met['SMILES (pH7.3)']
"""


class LipidMaps():
scheme = Structure

def __iter__(self):
sdf = lipidmaps.structure.
for met in sdf.data:
yield met['LM_ID'], met['SMILES']
"""
sdf = lipidmaps.lmsd_sdf()

for met in sdf:

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

yield met['id'], smiles

#Ramp and LipidMaps

0 comments on commit 436b721

Please sign in to comment.