blob: 03935f53242990e46d9180e456e86fc86542e516 (
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
|
{%extends "phenotypes/base.html"%}
{%from "flash_messages.html" import flash_all_messages%}
{%from "populations/macro-display-population-card.html" import display_population_card%}
{%block title%}Phenotypes{%endblock%}
{%block pagetitle%}Phenotypes{%endblock%}
{%block lvl4_breadcrumbs%}
<li {%if activelink=="view-phenotype"%}
class="breadcrumb-item active"
{%else%}
class="breadcrumb-item"
{%endif%}>
<a href="{{url_for('species.populations.phenotypes.view_phenotype',
species_id=species.SpeciesId,
population_id=population.Id,
dataset_id=dataset.Id,
xref_id=xref_id)}}">View Datasets</a>
</li>
{%endblock%}
{%block contents%}
{{flash_all_messages()}}
<div class="row">
<div class="panel panel-default">
<div class="panel-heading"><strong>Basic Phenotype Details</strong></div>
<table class="table">
<tbody>
<tr>
<td><strong>Phenotype</strong></td>
<td>{{phenotype.Post_publication_description or phenotype.Pre_publication_abbreviation or phenotype.Original_description}}
</tr>
<tr>
<td><strong>Cross-Reference ID</strong></td>
<td>{{phenotype.xref_id}}</td>
</tr>
<tr>
<td><strong>Collation</strong></td>
<td>{{dataset.FullName}}</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="panel panel-default">
<div class="panel-heading"><strong>Phenotype Data</strong></div>
{%if "group:resource:view-resource" in privileges%}
<table class="table">
<thead>
<tr>
<th>#</th>
<th>Sample</th>
<th>Value</th>
<th>Symbol</th>
<th>SE</th>
<th>N</th>
</tr>
</thead>
<tbody>
{%for item in phenotype.data%}
<tr>
<td>{{loop.index}}</td>
<td>{{item.StrainName}}</td>
<td>{{item.value}}</td>
<td>{{item.Symbol or "-"}}</td>
<td>{{item.error or "-"}}</td>
<td>{{item.count or "-"}}</td>
</tr>
{%endfor%}
</tbody>
</table>
{%else%}
<p class="text-danger">
<span class="glyphicon glyphicon-exclamation-sign"></span>
You do not currently have privileges to view this phenotype in greater
detail.
</p>
{%endif%}
</div>
</div>
{%endblock%}
{%block sidebarcontents%}
{{display_population_card(species, population)}}
{%endblock%}
|