Skip to content

Commit

Permalink
Generate EvaluationLinks for OMIM and DrugBank IDs in the network
Browse files Browse the repository at this point in the history
  • Loading branch information
leungmanhin committed Apr 27, 2020
1 parent d5cbf25 commit e9aeeb3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tcmid.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,14 @@ def is_available(entry):
full_name = "ChEBI:" + chebi_id if is_available(chebi_id) else "TCM:" + ingredient

if is_available(uniprot_id):
uniprot_id_full = "Uniprot:" + uniprot_id
evalink("interacts_with", "MoleculeNode", "MoleculeNode", full_name, uniprot_id_full)
evalink("interacts_with", "MoleculeNode", "MoleculeNode", full_name, "Uniprot:" + uniprot_id)
if is_available(gene):
evalink("interacts_with", "MoleculeNode", "GeneNode", full_name, gene)
for omim in omim_ids:
if is_available(omim):
evalink("treats", "MoleculeNode", "ConceptNode", full_name, "OMIM:" + omim)
for drug in drug_ids:
if is_available(drug) and is_available(uniprot_id):
evalink("targets", "MoleculeNode", "MoleculeNode", "DrugBank:" + drug, "Uniprot:" + uniprot_id)

out_fp.close()

0 comments on commit e9aeeb3

Please sign in to comment.