{% extends "layout.html" %} {% block content %} {{ message | safe }}

Custom Ontology Editor

The custom ontology has four layers. The top layer is one single keyword serves as the name of the ontology. This keyword is used to select the ontology used for each search (i.e. via the dropdown menu). A new ontology will be created if the ontology does not already exist for the use. Keywords in the second layer describe the main concepts and are used to include/exclude groups of keywords for each search (via check boxes). All keywords under the same second layer are shown with the same color in the graphic output. Keywords in the third layer are shown in the results (both graphic and tabular). Keywords in the fourth layer are used in PubMed and GWAS catalog search. These keywords will also be highlighted in the sentences. Results from all keywords in the fourth layer are grouped together and shown under their parent third layer keyword. This is useful to include synonyms and spelling variants in the fourth layer. A special second layer keyword is GWAS. Any keyword under this branch is used to search the GWAS catalog. Similarly, third layer is used for display of the results and fourth layer is used for search.

{%if "name" in session %} {{session['name']}}, your ontologies are available in the archive . {% else %} The ontologies will be saved after login. {% endif %} {%if "email" in session %}
The following ontologies are available:
{%else%} Custom ontologies are available after login. {% endif %} {%if "namecat" in session %}

Add or remove keywords from the {{namecat}} ontology
{% else %}
Fill out the fields below to add or remove keywords from the ontology.
{% endif %}
{%if "namecat" in session %} {% else %} {% endif %}

Ontology: {{namecat}}

{%for ky in dict_onto.keys()%}
  • {{ky}} {%for subky in dict_onto[ky].keys()%}
    • {{subky}}
      • {{(((dict_onto[ky][subky]|string()).split('|'))|string()).replace('\"{','').replace('}\"','').replace('\"','\'').replace('[','').replace(']','').replace('\'','')}}
    {%endfor%}
{%endfor%}
{%if "name" in session %} {% endif %} {% endblock %}