aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/generif.html
blob: ac815b43c17270f7d0446d8bcddd94e37bbc3b40 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{% extends "base.html" %}

{% block title %}
GeneWiki Entry for {{ symbol }}
{% endblock %}

{% block css %}
<style>

 .badge {
     vertical-align: top;
     background-color: #336699;
 }

 .list-group {
     counter-reset: gnentries;
 }

 summary::before {
     counter-increment: gnentries;
     content: counter(gnentries) "." " ";
 }

 summary:hover {
     cursor: zoom-in;
 }
</style>

{% endblock %}
{% block content %}


<div class="container">
    <h1 class="page-header">GeneWiki For {{ symbol }}</h1>
    <p class="well"><strong>GeneWiki</strong> enables you to enrich the annotation of genes and transcripts.</p>

    <h3>
	<strong>GeneNetwork</strong>
	<span class="badge">
	    {{ entries.gn_entries|length if entries.gn_entries[0] else 0 }}
	</span>:
    </h3>
    {% if entries.gn_entries[0] %}
    <ul class="list-group">
	{% for entry in entries.gn_entries %}
	<li class="list-group-item">
	    <details>
		<summary>
		    {{ entry["entry"]["value"] }}
		    {% if entry.get("weburl") %}
		    <sup><small><a href="{{ entry.weburl.value }}" target="_blank"><span class="glyphicon glyphicon-globe" aria-hidden="true"></span> web</a></small></sup>
		    {% endif %}
		</summary>
		<dl class="dl-horizontal">
		    <dt>Author:</dt>
		    <dd>{{ entry["author"]["value"] }}</dd>

		    {% if entry.get("geneCategory") %}
		    <dt>Category:</dt>
		    <dd>{{ entry["geneCategory"]["value"]}}</dd>
		    {% endif %}

		    <dt>Add Time:</dt>
		    <dd>{{ entry["created"]["value"]}}</dd>
		</dl>
	    </details>
	</li>
	{% endfor %}
    </ul>

    {% else %}

    <p class="well"><u>There are no GeneNetwork entries for <b>{{ symbol }}.</b></u></p>

    {% endif %}

    <h3>
	<strong>GeneRIF from NCBI</strong>
	<span class="badge">
	    {{ entries.ncbi_entries|length if entries.ncbi_entries[0] else 0 }}
	</span>:
    </h3>
    {% if entries.ncbi_entries[0] %}
	<ol>
	{% for entry in entries.ncbi_entries %}
	<li>
	    {{ entry.entry.value }}
	    (<a href="{{ entry['generif']['value'] }}" target="_blank">{{ entry["speciesBinomialName"]["value"] }}</a>)
            {% if entry.PubMedId.value != "" %}
	    {% set pmids = entry.PubMedId.value.split(",") %}
	    (PubMed: {% for id in pmids %} <a href="http://rdf.ncbi.nlm.nih.gov/pubmed/{{ id }}" target="_blank">{{ id }}</a>{% endfor %})
	    <sup><small><em>{{ entry.createdOn.value }}</em></small></sup>
	    {% endif %}
	</li>
	{% endfor %}
    </ol>
    {% else %}
    <p class="well"><u>There are no NCBI entries for <b>{{ symbol }}.</b></u></p>
    {% endif %}
</div>
{% endblock %}