From 47320c547f1a96bd262f38b07f9de0bc05e8779c Mon Sep 17 00:00:00 2001 From: gunturkunhakan Date: Sun, 6 Jun 2021 03:19:21 -0500 Subject: changes in custom ontology and search --- templates/index.html | 27 +++++++++++-------- templates/layout.html | 2 +- templates/ontology.html | 37 +++++++++++++------------- templates/tableview.html | 69 +++++++++++++++++++++++++++++++++++++++++++++--- 4 files changed, 101 insertions(+), 34 deletions(-) (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index 5849be9..501cdef 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,7 +2,7 @@ {% block content %} {{ message | safe }} -

Mining Gene Relationships from PubMed using Custom Ontologies

+

Mining PubMed for Gene Relationships using Custom Ontologies

@@ -14,11 +14,12 @@ - As an example, we present a curated ontology for drug addiction with over 300 keywords organized into seven categories. - A user account (free) is needed to create custom ontologies and save the search results. + As an example, we present a curated ontology for drug addiction with over 300 keywords organized into seven categories. + Furthermore, deep learning is used to distinguish automatically the sentences describing systemic stress from those describing cellular stress. + A user account (free) is needed to create custom ontologies and save the search results.

-

Example: Rgma Nrxn3.

+

Example: Rgma Penk.

{%if ("name" not in session) %} By default, the addiction ontology is used. Custom ontologies can be created in user accounts. @@ -34,14 +35,18 @@ {% else %} Welcome back, {{session['name']}}. Your previous searches and custom ontologies are available from the links. - +
+ Please select an ontology to use for the new search
-
Please select an ontology to use for the new search
- +
+
+
+ +
- - The {{ontol}} ontology is selected. Please choose categories to be included in the search. - Expect a longer wait time when you include Human GWAS category. +
+ The {{ontol}} ontology is selected. Please choose categories to be included in the search. + Expect a longer wait time when you include GWAS category.
@@ -69,7 +74,7 @@ {%for ky in dict_onto.keys()%} checkbox += ' {{ky}}    '; {% endfor %} - checkbox += ' Human GWAS    (Un)select all' + checkbox += ' (Un)select all' newdiv.innerHTML = " "+checkbox + " "; document.getElementById('check_selection').appendChild(newdiv); diff --git a/templates/layout.html b/templates/layout.html index 00674af..20dbcbe 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -18,7 +18,7 @@
- +
- +
@@ -63,25 +68,22 @@ -

Ontology: {{namecat}}

-
+

Ontology: {{namecat}}

{%for ky in dict_onto.keys()%} -

- {{ky}}:

+


+
  • {{ky}} {%for subky in dict_onto[ky].keys()%} -
    • {{subky}} -
      -

      {{(((dict_onto[ky][subky]|string()).split('|'))|string()).replace('\"{','').replace('}\"','').replace('\"','\'').replace('[','').replace(']','').replace('\'','')}}

      -

    +
    • {{subky}} +
      • {{(((dict_onto[ky][subky]|string()).split('|'))|string()).replace('\"{','').replace('}\"','').replace('\"','\'').replace('[','').replace(']','').replace('\'','')}} +
      +
    {%endfor%} +
{%endfor%} - - - {%if "name" in session %} {% endif %} - - - {% endblock %} diff --git a/templates/tableview.html b/templates/tableview.html index 996113b..d2936ce 100644 --- a/templates/tableview.html +++ b/templates/tableview.html @@ -38,7 +38,6 @@ width: 40%; } - /* Clear floats after the columns */ .row:after { content: ""; display: table; @@ -49,6 +48,7 @@
+ You can click on the column header to sort by that column.

{{ message |safe}}

@@ -63,15 +63,19 @@ {} var table = document.getElementById("myTable"); var header = table.createTHead(); - var row = header.insertRow(0); + var row = header.insertRow(0); var cell = row.insertCell(0); cell.innerHTML = "Gene"; + cell.onclick = function() {sortTable(0)}; var cell = row.insertCell(1); cell.innerHTML = "Abstract Count"; + cell.onclick = function() {sortTable(1)}; var cell = row.insertCell(2); cell.innerHTML = "Keyword"; + cell.onclick = function() {sortTable(2)}; var cell = row.insertCell(3); cell.innerHTML = "Category"; + cell.onclick = function() {sortTable(3)}; {%for p in jedges['data']%} var x=document.getElementById('myTable').insertRow(1); @@ -94,7 +98,6 @@ this_url1 = '\\sentences?edgeID='+'{{genes_session_tmp}}'+'_snt|'+source+'|'+target; this_url2 = '\\shownode?nodetype='+type+'&node='+target; {%endif%} - //genegene_url = '/startGeneGene?forTopGene='+source; genegene_url = '\\synonyms?node='+source; y.innerHTML="{{p['source']}}"; y= x.insertCell(1); @@ -106,6 +109,66 @@ {% endfor %} } + + + + {%endif%}
Review searches that have zero abstract counts. -- cgit v1.2.3