Skip to content

Commit

Permalink
Add the Uniprot prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
leungmanhin committed Apr 21, 2020
1 parent 314ef5c commit 7ece32c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tcmid.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,9 @@ def is_available(entry):

if is_available(chebi_id):
chebi_id_full = "ChEBI:" + chebi_id
uniprot_id_full = "Uniprot:" + uniprot_id
if is_available(uniprot_id):
evalink("interacts_with", "MoleculeNode", "MoleculeNode", chebi_id_full, uniprot_id)
evalink("interacts_with", "MoleculeNode", "MoleculeNode", chebi_id_full, uniprot_id_full)
if is_available(gene):
evalink("interacts_with", "MoleculeNode", "GeneNode", chebi_id_full, gene)

Expand Down

0 comments on commit 7ece32c

Please sign in to comment.