<jupyter_start><jupyter_text>EGFR inhibitors Main query: qg = {  "nodes": {    "n0": {      "categories": [        "biolink:ChemicalSubstance"      ],      "name": "Chemical Substance"    },    "n1": {      "name": "EGFR",      "ids": ["NCBIGene:1956"]    }  },  "edges": {    "e0": {      "subject": "n0",      "object": "n1",      "predicates": [        "biolink:decreases_abundance_of",        "biolink:decreases_activity_of",        "biolink:decreases_expression_of",        "biolink:decreases_synthesis_of",        "biolink:increases_degradation_of",        "biolink:disrupts",        "biolink:negatively_regulates_entity_to_entity",        "biolink:entity_negatively_regulates_entity"      ]    }  }}EGFR_query = {'message':{'query_graph':qg}}<jupyter_code>EGFR_result_id = submit_to_devars(EGFR_query)<jupyter_output>https://arax.ncats.io/?source=ARS&id=73dde92f-59bd-4e84-bc32-750c1b79b33c<jupyter_text>Probably the best query long term, as it removes a non-biolink predicate:<jupyter_code>qg = {
  "nodes": {
    "n0": {
      "categories": [
        "biolink:ChemicalSubstance"
      ],
      "name": "Chemical Substance"
    },
    "n1": {
      "name": "EGFR",
      "ids": ["NCBIGene:1956"]
    }
  },
  "edges": {
    "e0": {
      "subject": "n0",
      "object": "n1",
      "predicates": [
        "biolink:decreases_abundance_of",
        "biolink:decreases_activity_of",
        "biolink:decreases_expression_of",
        "biolink:decreases_synthesis_of",
        "biolink:increases_degradation_of",
        "biolink:disrupts",
        "biolink:negatively_regulates_entity_to_entity"
      ]
    }
  }
}

EGFR_query2 = {'message':{'query_graph':qg}}
EGFR_result_id2 = submit_to_devars(EGFR_query2)<jupyter_output>https://arax.ncats.io/?source=ARS&id=d3205805-3251-4cc4-a420-646577b48066<jupyter_text>Inverting edge and scaling up predicate to target molepro:<jupyter_code>qg = {
  "nodes": {
    "n0": {
      "categories": [
        "biolink:ChemicalSubstance"
      ],
      "name": "Chemical Substance"
    },
    "n1": {
      "name": "EGFR",
      "ids": ["NCBIGene:1956"]
    }
  },
  "edges": {
    "e0": {
      "subject": "n1",
      "object": "n0",
      "predicates": [
        "biolink:related_to"
      ]
    }
  }
}

EGFR_query3 = {'message':{'query_graph':qg}}
EGFR_result_id3 = submit_to_devars(EGFR_query3)<jupyter_output>https://arax.ncats.io/?source=ARS&id=45105d5f-4b45-4b56-8c8a-d91494bc5f23<jupyter_text>Using a Protein identifier rather than a gene identifier:<jupyter_code>qg = {
  "nodes": {
    "n0": {
      "categories": [
        "biolink:ChemicalSubstance"
      ],
      "name": "Chemical Substance"
    },
    "n1": {
      "name": "EGFR",
      "ids": ["PR:000006933"]
    }
  },
  "edges": {
    "e0": {
      "subject": "n0",
      "object": "n1",
      "predicates": [
        "biolink:negatively_regulates_entity_to_entity",
        "biolink:entity_negatively_regulates_entity"
      ]
    }
  }
}

EGFR_query_4 = {'message':{'query_graph':qg}}
EGFR_result_id4 = submit_to_devars(EGFR_query_4)

qg = {
"nodes": {
"n0": {
"categories": [
"biolink:ChemicalSubstance"
],
"name": "Chemical Substance"
},
"n1": {
"name": "EGFR",
"ids": ["NCBIGene:1956"]
}
},
"edges": {
"e0": {
"subject": "n0",
"object": "n1",
"predicates": [
"biolink:decreases_abundance_of",
"biolink:decreases_activity_of",
"biolink:decreases_expression_of",
"biolink:decreases_synthesis_of",
"biolink:increases_degradation_of",
"biolink:disrupts",
"biolink:negatively_regulates_entity_to_entity"
]
}
}
}
EGFR_query_redo = {'message':{'query_graph':qg}}
EGFR_result_redo = submit_to_devars(EGFR_query_redo)<jupyter_output>https://arax.ncats.io/?source=ARS&id=36d9f32c-0427-463b-884c-c6de61752d92
{'fraction_non_alphanumeric': 0.1689989235737352, 'fraction_numerical': 0.040365984930032295, 'mean_word_length': 3.6578947368421053, 'pattern_counts': {'":': 60, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '389353', 'license': 'MIT', 'n_tokens_mistral': 1641, 'n_tokens_neox': 1490, 'n_words': 172, 'path': 'Notebooks/May20_2021_EGFR_Inhibitors.ipynb', 'repo_name': 'andrewsu/minihackathons', 'size': '3716'}