Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bsantan committed Feb 7, 2024
1 parent 51f3a6c commit 2a13b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kg_microbe/transform_utils/uniprot/uniprot.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def write_to_df(self,uniprot_values, edge_writer, node_writer):
self.__enz_data['id'] = entry['Entry']


#example response with mulitple protein names: {'Organism (ID)': '100', 'Entry Name': 'A0A4R1H4N5_ANCAQ', 'Entry': 'A0A4R1H4N5', 'Protein names': 'Ubiquinone biosynthesis O-methyltransferase (2-polyprenyl-6-hydroxyphenol methylase) (EC 2.1.1.222) (3-demethylubiquinone 3-O-methyltransferase) (EC 2.1.1.64)', 'EC number': '2.1.1.222; 2.1.1.64'}
#example response with multiple protein names: {'Organism (ID)': '100', 'Entry Name': 'A0A4R1H4N5_ANCAQ', 'Entry': 'A0A4R1H4N5', 'Protein names': 'Ubiquinone biosynthesis O-methyltransferase (2-polyprenyl-6-hydroxyphenol methylase) (EC 2.1.1.222) (3-demethylubiquinone 3-O-methyltransferase) (EC 2.1.1.64)', 'EC number': '2.1.1.222; 2.1.1.64'}
if 'Protein names' in entry:
self.__enz_data['name'] = entry['Protein names'].split('(EC')[0]

Expand Down

0 comments on commit 2a13b38

Please sign in to comment.