Skip to content

Commit

Permalink
id_fields from lipidmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
for-hyde committed Nov 20, 2024
1 parent 784d110 commit 5fc91ab
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion omnipath_metabo/schema/_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,20 @@ def __iter__(self):
class LipidMaps():
scheme = Structure
name = 'LipidMaps'
id_fields = [
('name','SYSTEMATIC_NAME'),
('name', 'PUBCHEM_CID'),
('name', 'CHEBI_ID'),
('name', 'HMDB_ID'),
('name','SWISSLIPIDS_ID'),
('name','SYNONYMS'),
('name','ABBREVIATION')
('annot','KEGG_ID'),
('annot','LIPIDBANK_ID'),
('annot','PLANTFA_ID'),
('annot','NAME')
]

def __iter__(self):
sdf = lipidmaps.lmsd_sdf()

Expand All @@ -180,7 +194,11 @@ def __iter__(self):

yield {
'structure':(met['id'], smiles, met['name']['INCHI']),
'properties':(met['annot'].get('EXACT_MASS', None), None, None, met['name'].get('FORMULA', None) )
'properties':(met['annot'].get('EXACT_MASS', None),
None,
None,
met['name'].get('FORMULA', None)),
'identifiers':(met['PUBCHEM_CID'], met['CHEBI_ID'])
}

class Ramp(ResourceBase):
Expand Down

0 comments on commit 5fc91ab

Please sign in to comment.