aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates/rqtl2/select-probeset-dataset.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-01-18 14:43:00 +0300
committerFrederick Muriuki Muriithi2024-01-18 14:43:00 +0300
commitaf485aff7d25c1f5128586c550ca36debe24fd66 (patch)
tree16593e9e7a11cbd2ae2f5ab228f6620520a0b1b2 /qc_app/templates/rqtl2/select-probeset-dataset.html
parent0369fc21eaa54466bd64f3b12d1fe6a1dbc81de0 (diff)
downloadgn-uploader-af485aff7d25c1f5128586c550ca36debe24fd66.tar.gz
UI: Create new ProbeSet dataset.
Diffstat (limited to 'qc_app/templates/rqtl2/select-probeset-dataset.html')
-rw-r--r--qc_app/templates/rqtl2/select-probeset-dataset.html82
1 files changed, 81 insertions, 1 deletions
diff --git a/qc_app/templates/rqtl2/select-probeset-dataset.html b/qc_app/templates/rqtl2/select-probeset-dataset.html
index 8b9e5ed..3e160fd 100644
--- a/qc_app/templates/rqtl2/select-probeset-dataset.html
+++ b/qc_app/templates/rqtl2/select-probeset-dataset.html
@@ -14,6 +14,7 @@
{{flash_all_messages()}}
+{%if datasets | length > 0%}
<form method="POST"
action="{{url_for('upload.rqtl2.select_probeset_dataset',
species_id=species.SpeciesId, population_id=population.Id)}}"
@@ -53,6 +54,85 @@
</fieldset>
</form>
-<p style="color: red; font-weight: bold;">Under Construction</p>
+<p style="color:#FE3535; padding-left:20em; font-weight:bolder;">OR</p>
+{%endif%}
+
+<form method="POST"
+ action="{{url_for('upload.rqtl2.create_probeset_dataset',
+ species_id=species.SpeciesId, population_id=population.Id)}}"
+ id="frm:create-probeset-dataset">
+ <legend class="heading">Create a new ProbeSet 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}}" />
+ <input type="hidden" name="geno-dataset-id" value="{{geno_dataset.Id}}" />
+ <input type="hidden" name="probe-study-id" value="{{probe_study.Id}}" />
+
+ <fieldset>
+ <label for="select:average">averaging method</label>
+ <select id="select:average"
+ name="averageid"
+ required="required">
+ <option value="">Select averaging method</option>
+ {%for avgmethod in avgmethods%}
+ <option value="{{avgmethod.Id}}">
+ {{avgmethod.Name}}
+ {%if avgmethod.Normalization%}
+ ({{avgmethod.Normalization}})
+ {%endif%}
+ </option>
+ {%endfor%}
+ </select>
+ </fieldset>
+
+ <fieldset>
+ <label for="txt:datasetname">Name</label>
+ <input type="text" id="txt:datasetname" name="datasetname"
+ required="required"
+ title="Name of the dataset, e.g 'BXDMicroArray_ProbeSet_June03'. (Required)" />
+ </fieldset>
+
+ <fieldset>
+ <label for="txt:datasetfullname">Full Name</label>
+ <input type="text" id="txt:datasetfullname" name="datasetfullname"
+ required="required"
+ title="A longer name for the dataset, e.g. 'UTHSC Brain mRNA U74Av2 (Jun03) MAS5'. (Required)" />
+ </fieldset>
+
+ <fieldset>
+ <label for="txt:datasetshortname">Short Name</label>
+ <input type="text" id="txt:datasetshortname" name="datasetshortname"
+ title="An abbreviated name for the dataset, e.g 'Br_U_0603_M'. (Optional)" />
+ </fieldset>
+
+ <fieldset>
+ <input type="checkbox" id="chk:public" name="datasetpublic"
+ checked="checked"
+ title="Whether or not the dataset is accessible by the general public." />
+ <label for="chk:datasetpublic">Public?</label>
+ </fieldset>
+
+ <fieldset>
+ <label for="select:datasetdatascale">Data Scale</label>
+ <select id="select:datasetdatascale"
+ name="datasetdatascale"
+ required="required">
+ <option value="log2" selected="selected">log2</option>
+ <option value="z_score">z_score</option>
+ <option value="log2_ratio">log2_ratio</option>
+ <option value="linear">linear</option>
+ <option value="linear_positive">linear_positive</option>
+ </select>
+ </fieldset>
+
+ <fieldset>
+ <input type="submit"
+ value="create dataset"
+ class="btn btn-main form-col-2" />
+ </fieldset>
+</form>
{%endblock%}