aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/probeset.html
blob: 327870c8ab59ad5cd7c7f820a1eb68e4b9baafc1 (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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{% extends "base.html" %}

{% block css %}
<style type="text/css">
 .page-header {
     text-underline-offset: 0.5rem;
     padding: 1em;
 }
</style>
{% endblock %}

{% block title %}
mRNA Expression:
{{ metadata.name or name }}
{% endblock %}

{% block content %}


<div class="container">
    <h2>
	mRNA Expression:
	{{ metadata.name or name }}
    </h2>
    {% if metadata.description %}
    <h3>{{ metadata.description }}</h3>
    {% endif %}
    <table class="table">
	{% if metadata.group and metadata.species %}
	<tr>
            <td><b>Group </b></td>
            <td>
		{{ metadata.species|capitalize }}: {{ metadata.group }}
	    </td>
	</tr>
	{% endif %}

	{% if metadata.tissue %}
	<tr>
	    <td><b>Tissue</b></td>
	    <td>
		{{ metadata.tissue }}
	    </td>
	</tr>
	{% endif %}

	{% if metadata.symbol %}
	<tr>
	    <td><b>Gene Symbol</b></td>
	    <td>
		{% if metadata.symbol.__class__.__name__ == 'list' %}
		{% for symbol in metadata.symbol %}
		{{ symbol.symbol }};
		{% endfor %}
		{% else %}
		{{ metadata.symbol }}
		{% endif %}
	    </td>
	</tr>
	{% endif %}

	{% if metadata.alias %}
	<td><b>Aliases</b></td>
	<!-- XXX TODO: How do you fetch the Wikidata Alias for a given genesymbol? -->
	<td>GeneneNetwork: {{ metadata.alias }}</td>
	{% endif %}

	{% if metadata.location %}
	<tr>
            <td><b>Location</b></td>
            <td> {{ metadata.location }}</td>
	</tr>
	{% endif %}

	{% if summary %}
	<tr>
	    <td><b>Summary</b></td>
	    <td>{{ summary }}</td>
	</tr>
	{% endif %}

        {% if metadata.blatSeq %}
        <tr>
	    <td><b>BLAT Sequence</b></td>
	    <td style="inline-size: fit-content; writing-mode: horizontal-tb; overflow-wrap: break-word; max-width: 70vw;">
		{{ metadata.blatSeq }}
	    </td>
        </tr>
        {% endif %}

	{% if metadata.dataset and dataset %}
	<tr>
	    <td><b>Database</b></td>
	    <td><a href={{ url_for('get_dataset', name=dataset) }} target="_blank">{{ metadata.dataset }}</a></td>
	</tr>
	{% endif %}

	{% if metadata.specificity or metadata.blatScore %}
        <tr>
	    <td><b>Target Score</b></td>
	    <td>
		{% if metadata.specificity %}
		<a href="http://gn1.genenetwork.org/blatInfo.html" target="_blank">BLAT Specificity</a>: {{ metadata.specificity }}
		{% endif %}

		{% if metadata.blatScore %}
		&emsp;Score: {{ metadata.blatScore }}
		{% endif %}
	    </td>
        </tr>
        {% endif %}

	{% if metadata.references %}
	<tr>
	    <td><b>Resource Links</b></td>
	    <td>
		{% for reference in metadata.references %}
		<a href="{{ reference.id }}" target="_blank" title="{{ reference.comments }}">{{ reference.name }}</a>&emsp;
		{% endfor %}
	    </td>

	</tr>
	{% endif %}
    </table>
</div>

{% endblock %}