blob: 612bff77041a257bf5abd56a9abfd0d157f201fa (
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
|
{%extends "phenotypes/add-phenotypes-base.html"%}
{%from "flash_messages.html" import flash_all_messages%}
{%from "macro-table-pagination.html" import table_pagination%}
{%from "phenotypes/macro-display-pheno-dataset-card.html" import display_pheno_dataset_card%}
{%block title%}Phenotypes{%endblock%}
{%block pagetitle%}Phenotypes{%endblock%}
{%block lvl4_breadcrumbs%}
<li {%if activelink=="add-phenotypes"%}
class="breadcrumb-item active"
{%else%}
class="breadcrumb-item"
{%endif%}>
<a href="{{url_for('species.populations.phenotypes.add_phenotypes',
species_id=species.SpeciesId,
population_id=population.Id,
dataset_id=dataset.Id)}}">Add Phenotypes</a>
</li>
{%endblock%}
{%block frm_add_phenotypes_documentation%}
<p>Provide all the files requested below. … document this better …</p>
{%endblock%}
{%block frm_add_phenotypes_elements%}
<fieldset id="fldset-file-metadata">
<legend>File(s) Metadata</legend>
<div class="form-group">
<label for="txt-file-separator" class="form-label">File Separator</label>
<div class="input-group">
<input id="txt-file-separator"
name="file-separator"
type="text"
value="	"
class="form-control"
maxlength="1" />
<span class="input-group-btn">
<button id="btn-reset-file-separator" class="btn btn-info">Reset Default</button>
</span>
</div>
<span class="form-text text-muted">
Provide the character that separates the fields in your file(s). It should
be the same character for all files (if more than one is provided).<br />
A tab character will be assumed if you leave this field blank.</span>
</div>
<div class="form-group">
<label for="txt-file-comment-character" class="form-label">File Comment-Character</label>
<div class="input-group">
<input id="txt-file-comment-character"
name="file-comment-character"
type="text"
value="#"
class="form-control"
maxlength="1" />
<span class="input-group-btn">
<button id="btn-reset-file-comment-character" class="btn btn-info">
Reset Default</button>
</span>
</div>
<span class="form-text text-muted">
This specifies that lines that begin with the character provided will be
considered comment lines and ignored in their entirety.</span>
</div>
<div class="form-group">
<label for="txt-file-na" class="form-label">File "No-Value" Indicators</label>
<div class="input-group">
<input id="txt-file-na"
name="file-na"
type="text"
value="- NA N/A"
class="form-control" />
<span class="input-group-btn">
<button id="btn-reset-file-na" class="btn btn-info">Reset Default</button>
</span>
</div>
<span class="form-text text-muted">
This specifies strings in your file indicate that there is no value for a
particular cell (a cell is where a column and row intersect). Provide a
space-separated list of strings if you have more than one way of
indicating no values.</span>
</div>
</fieldset>
<fieldset id="fldset-data-files">
<legend>Data File(s)</legend>
<div class="form-group">
<label for="finput-phenotype-descriptions" class="form-label">
Phenotype Descriptions</label>
<input id="finput-phenotype-descriptions"
name="phenotype-descriptions"
class="form-control"
type="file"
required="required" />
<span class="form-text text-muted">
Provide a file that contains only the phenotype descriptions,
<a href="#docs-file-phenotype-description"
title="Documentation of the phenotype data file format.">
the documentation for the expected format of the file</a>.</span>
</div>
<div class="form-group">
<label for="finput-phenotype-data" class="form-label">Phenotype Data</label>
<input id="finput-phenotype-data"
name="phenotype-data"
class="form-control"
type="file"
required="required" />
<span class="form-text text-muted">
Provide a file that contains only the phenotype data. See
<a href="#docs-file-example"
title="Documentation of the phenotype data file format.">
the documentation for the expected format of the file</a>.</span>
</div>
{%if population.Family in families_with_se_and_n%}
<div class="form-group">
<label for="finput-phenotype-se" class="form-label">Phenotype: Standard Errors</label>
<input id="finput-phenotype-se"
name="phenotype-se"
class="form-control"
type="file"
required="required" />
<span class="form-text text-muted">
Provide a file that contains only the standard errors for the phenotypes,
computed from the data above.</span>
</div>
<div class="form-group">
<label for="finput-phenotype-n" class="form-label">Phenotype: Number of Samples/Individuals</label>
<input id="finput-phenotype-n"
name="phenotype-n"
class="form-control"
type="file"
required="required" />
<span class="form-text text-muted">
Provide a file that contains only the number of samples/individuals used in
the computation of the standard errors above.</span>
</div>
</fieldset>
{%endif%}
{%endblock%}
{%block page_documentation%}
page documentation goes here!!!
{%block more_javascript%}
<script type="text/javascript">
$("#btn-reset-file-separator").on("click", (event) => {
event.preventDefault();
$("#txt-file-separator").val("\t");
});
$("#btn-reset-file-comment-character").on("click", (event) => {
event.preventDefault();
$("#txt-file-comment-character").val("#");
});
$("#btn-reset-file-na").on("click", (event) => {
event.preventDefault();
$("#txt-file-na").val("- NA N/A");
});
</script>
{%endblock%}
|