Skip to content

Commit

Permalink
Update manager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ddomingof committed Feb 11, 2022
1 parent 1bfbc82 commit c93f91e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bio2bel_kegg/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ def _populate_pathway_protein(
if pathway is None:
logger.warning('could not find pathway for kegg.pathway:%s', kegg_pathway_id)
continue
protein = kegg_protein_id_to_protein[kegg_protein_id]
protein = kegg_protein_id_to_protein.get(kegg_protein_id)

if not protein:
continue

protein.pathways.append(pathway)
self.session.commit()

Expand Down

2 comments on commit c93f91e

@cthoyt
Copy link
Member

@cthoyt cthoyt commented on c93f91e Feb 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be useful to know I rewrote the entire kegg pipeline in PyOBO

https://github.com/pyobo/pyobo/tree/master/src/pyobo/sources/kegg

@ddomingof
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No dependencies thanks xD but you are free to do so haha

Please sign in to comment.