blob: c17a25180172d3f15bc450a4a0d9c4660f00260a (
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
|
{% extends "index_page.html" %}
{% block css %}
<style type="text/css">
.page-header {
padding: 1em;
}
</style>
{% endblock %}
{% block title %}Genotype: {{ name }}{% endblock %}
{% block content %}
<h2 class="page-header">
Genotype: {{ metadata.name or name }}
<small>
{% if name and metadata.dataset %}
<sup>
<a href={{ url_for('show_trait_page', dataset=metadata.dataset, trait_id=name) }} target="blank">[compare]</a>
</sup>
{% endif %}
</small>
</h2>
<div class="container">
<table class="table">
{% if metadata.dataset and metadata.dataset.group and metadata.species %}
<tr>
<td><b>Group</b></td>
<td>{{ metadata.dataset.group }}: {{ metadata.species.speciesName }}</td>
</tr>
{% elif metadata.species %}
<tr>
<td><b>Species</b></td>
<td>{{ metadata.species.speciesName }}</td>
</tr>
{% endif %}
{% if metadata.chr and metadata.mb %}
<tr>
<td><b>Location</b></td>
<td>Chr {{ metadata.chr }} @ {{ metadata.mb }} mb </td>
</tr>
{% endif %}
{% if metadata.dataset %}
<tr>
<td><b>Database </b></td>
<td>
<a href={{ url_for("get_dataset", name= metadata.dataset.name) }} target="_blank">
{{ metadata.dataset.prefLabel }}
</a>
</td>
</tr>
{% endif %}
{% if metadata.sequence %}
<tr>
<td><b>Sequence</b></td>
<td style="inline-size: fit-content; writing-mode: horizontal-tb; overflow-wrap: break-word; max-width: 70vw;">{{ metadata.sequence }}</td>
</tr>
{% endif %}
{% if metadata.source %}
<tr>
<td><b>Source</b></td>
<td>{{ metadata.source}}</td>
</tr>
{% endif %}
</table>
</div>
{% endblock %}
|