Skip to content

Commit

Permalink
Mapping all ChEBI ID cross-reference from KEGG
Browse files Browse the repository at this point in the history
  • Loading branch information
Archh1 committed Apr 25, 2023
1 parent 31d81ec commit a4e5106
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mergem/__database_id_merger.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def process_kegg_compounds(filename):
ids = ["kegg:" + kegg_id]

if len(properties['chebi']) > 0:
ids += [properties['chebi'][0]]
ids += [chebi_id for chebi_id in properties['chebi']]

property_dict = {'ids': ids,
'Name': properties['Name'],
Expand Down Expand Up @@ -859,7 +859,7 @@ def add_values_to_property_list(property_list, prop_value, for_name=False):

def merge_identifiers(source_id, other_id, for_reac=False):
"""
Merges the two met IDs into lowest univ ID only if at least two properties match.
Merges the two met IDs into lowest univ ID.
:param source_id: primary metabolite ID from database being processed
:param other_id: cross referenced metabolite ID to be mapped to primary met ID
"""
Expand Down
2 changes: 1 addition & 1 deletion mergem/__version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
_version = '0.22.1'
_version = '0.22.2'

0 comments on commit a4e5106

Please sign in to comment.