-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgenotype_view.html
128 lines (106 loc) · 4.71 KB
/
genotype_view.html
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
128
{% extends "base_wide.html" %}
{% block pagetitle %} {{ title }} {% endblock %}
{% block content %}
{% include 'sequence_popup.html' %}
{{ super() }}
{% endblock %}
{% block c_body %}
<ul class="nav nav-tabs">
<li><a href={{ url_for(submission_link, id=sub_id) }}>Submission Details</a></li>
<li><a href={{ url_for(submission_link, id=sub_id, _anchor="ack") }}>Acknowledgements</a></li>
<li><a href={{ url_for(submission_link, id=sub_id, _anchor="rep") }}>Repertoire</a></li>
<li><a href={{ url_for(submission_link, id=sub_id, _anchor="primer_sets") }}>Primers</a></li>
<li><a href={{ url_for(submission_link, id=sub_id, _anchor="tools") }}>Inference Tools</a></li>
<li><a href={{ url_for(submission_link, id=sub_id, _anchor="genotype_description") }}>Genotypes</a></li>
<li><a href={{ url_for(submission_link, id=sub_id, _anchor="inferred_sequence") }}>Inferred Seqs</a></li>
<li><a href={{ url_for(submission_link, id=sub_id, _anchor="notes") }}>Notes</a></li>
{% if reviewer %}
<li><a href="#review">Review</a></li>
{% endif %}
</ul>
<form action="{{ url_for(this_link, id=id) }}" method="POST" name="form" class="form-horizontal">
<div class="row col-sm-offset-1">
<div class="col-sm-6">
<div class="table">
{{ tables['desc'] }}
</div>
</div>
<div class="col-sm-6">
<table>
<thead>
<tr><th class="col-sm-3 view-table-row"> </th></tr>
</thead>
</table>
<div class="form-group">
{{ form.hidden_tag() }}
{{ render_narrow_field_with_errors(form.occ_threshold, class="form-control") }}
{{ render_narrow_field_with_errors(form.freq_threshold, class="form-control") }}
{{ render_narrow_field_with_errors(form.sub_only, class="checkbox") }}
</div>
</div>
</div>
<div class="row col-sm-offset-1">
<div class="col-sm-6">
<div class="btn-toolbar">
<input type="button" class="tablebutton btn btn-primary" value="Close" onclick="window.history.back()" />
<button type="button" class="tablebutton btn btn-default" id="show_all_fasta" data-sequence="{{ fasta }}">FASTA</button>
<a href="{{ url_for('download_genotype', id=id) }}" class="tablebutton btn btn-default" role="button" id="download_genotype">Download</a>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
{{ form.update(class="btn btn-success col-sm-offset-2") }}
</div>
</div>
</div>
</form>
{% if ncbi %}
<div class="row col-sm-offset-1">
<div class="col-sm-5">
{{ sam_table }}
</div>
<div class="col-sm-5">
{{ srr_table }}
</div>
</div>
{% endif %}
<div class="row col-sm-offset-1">
<p>Allele names in <em>italic</em> are not listed in the reference set. Allele names in <strong>bold</strong> are put forward in the submission for consideration as inferred sequences.</p>
<p>A cross in the Sequence column indicates that the sequence listed in the genotype does not match the sequence of the corresponding allele in the reference set.</p>
<p>An information icon in the Sequence column alerts you to other information on this sequence - hover over for details.</p>
</div>
<div class="row col-sm-offset-1">
<h3> Novel Alleles </h3>
</div>
<div class="table pad">
{{ tables['inferred'] | safe}}
</div>
<div class="row col-sm-offset-1">
<h3> Genotype </h3>
</div>
<div class="table pad">
{{ tables['genotype'] | safe}}
</div>
{% endblock %}
{% block scripts %}
{{ super() }}
{% include 'sequence_popup_script.html' %}
<script src="/static/script/jquery.stickytableheaders.js"></script>
<script>
$('#show_all_fasta').on('click', function () {
var sequence = $('#show_all_fasta').data('sequence'); // Extract info from data-* attributes
BootstrapDialog.show({
size: 'size-wide',
title: 'All Sequences',
message: '<pre>' + sequence + '</pre>',
buttons: [{
label: 'Close',
action: function(dialogItself){
dialogItself.close();
}
}]
});
})
$('#genotype_table').stickyTableHeaders();
</script>
{% endblock %}