From 6235fb58955e2bc193d6ce40a4d74b33ab47dfce Mon Sep 17 00:00:00 2001 From: gunturkunhakan Date: Tue, 18 May 2021 22:39:49 -0500 Subject: Welcome to GeneCup --- templates/ontology.html | 102 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 templates/ontology.html (limited to 'templates/ontology.html') diff --git a/templates/ontology.html b/templates/ontology.html new file mode 100644 index 0000000..45c7c56 --- /dev/null +++ b/templates/ontology.html @@ -0,0 +1,102 @@ +{% 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 synonyms of those in the third layer. Results from all synonyms are grouped together and shown under the parent third layer keyword.

+ +{%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 %} -- cgit v1.2.3