blob: 3487b6e38f125214c172ef955dec7d4e90b3a03e (
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
|
{%extends "base.html"%}
{%from "flash_messages.html" import flash_messages%}
{%block title%}Upload R/qtl2 Bundle{%endblock%}
{%block contents%}
<h2 class="heading">Select Genotypes Dataset</h2>
<div class="explainer">
<p>Your R/qtl2 files bundle contains a "geno" specification. You will
therefore need to select from one of the existing Genotype datasets or
create a new one.</p>
<p>This is the dataset where your data will be organised under.</p>
</div>
<form id="frm-upload-rqtl2-bundle"
action="{{url_for('upload.rqtl2.select_geno_dataset',
species_id=species.SpeciesId,
population_id=population.InbredSetId)}}"
method="POST"
enctype="multipart/form-data">
<legend class="heading">select from existing genotype datasets</legend>
<input type="hidden" name="species_id" value="{{species.SpeciesId}}" />
<input type="hidden" name="population_id"
value="{{population.InbredSetId}}" />
<input type="hidden" name="rqtl2_bundle_file"
value="{{rqtl2_bundle_file}}" />
{{flash_messages("error-rqtl2")}}
<fieldset>
<legend>Datasets</legend>
<label for="select:geno-datasets">Dataset</label>
<select id="select:geno-datasets"
name="geno-datasets"
required="required"
{%if datasets | length == 0%}
disabled="disabled"
{%endif%}>
<option value="">Select dataset</option>
{%for dset in datasets%}
<option value="{{dset['Id']}}">{{dset["Name"]}} ({{dset["FullName"]}})</option>
{%endfor%}
</select>
</fieldset>
<fieldset>
<input type="submit"
value="select dataset"
class="btn btn-main form-col-2" />
</fieldset>
</form>
<p style="color:#FE3535; padding-left:20em; font-weight:bolder;">OR</p>
<form id="frm-upload-rqtl2-bundle"
action="{{url_for('upload.rqtl2.create_geno_dataset',
species_id=species.SpeciesId,
population_id=population.InbredSetId)}}"
method="POST"
enctype="multipart/form-data">
<legend class="heading">create a new genotype dataset</legend>
<input type="hidden" name="species_id" value="{{species.SpeciesId}}" />
<input type="hidden" name="population_id"
value="{{population.InbredSetId}}" />
<input type="hidden" name="rqtl2_bundle_file"
value="{{rqtl2_bundle_file}}" />
{{flash_messages("error-rqtl2")}}
<fieldset>
<label for="txt:dataset-name">Name</label>
<input type="text"
id="txt:dataset-name"
name="dataset-name"
required="required" />
</fieldset>
<fieldset>
<label for="txt:dataset-fullname">Full Name</label>
<input type="text"
id="txt:dataset-fullname"
name="dataset-fullname"
required="required" />
</fieldset>
<fieldset>
<label for="txt:dataset-shortname">Short Name</label>
<input type="text"
id="txt:dataset-shortname"
name="dataset-shortname"
required="required" />
</fieldset>
<fieldset>
<input type="checkbox"
id="chk:dataset-public"
name="dataset-public" />
<label for="chk:dataset-public">Public?</label>
</fieldset>
<fieldset>
<input type="submit"
value="create new dataset"
class="btn btn-main form-col-2" />
</fieldset>
</form>
{%endblock%}
|