aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-01-08 07:25:35 +0300
committerFrederick Muriuki Muriithi2024-01-08 07:25:35 +0300
commit8595c75345fb5849a4d8894f3ee7a926dd8cdf8f (patch)
treeee4a18e3aed146028b5a9463ecc2d5c12252d81c /qc_app/templates
parentea89a07e6d04c2fe58f94839eb9916b365b2f3f2 (diff)
downloadgn-uploader-8595c75345fb5849a4d8894f3ee7a926dd8cdf8f.tar.gz
Upload R/qtl2 zip bundle and check for errors.
Diffstat (limited to 'qc_app/templates')
-rw-r--r--qc_app/templates/rqtl2/upload-rqtl2-bundle.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/qc_app/templates/rqtl2/upload-rqtl2-bundle.html b/qc_app/templates/rqtl2/upload-rqtl2-bundle.html
new file mode 100644
index 0000000..6491e6b
--- /dev/null
+++ b/qc_app/templates/rqtl2/upload-rqtl2-bundle.html
@@ -0,0 +1,44 @@
+{%extends "base.html"%}
+{%from "flash_messages.html" import flash_messages%}
+
+{%block title%}Upload R/qtl2 Bundle{%endblock%}
+
+{%block contents%}
+<h2 class="heading">Upload R/qtl2 Bundle</h2>
+
+<form id="frm-upload-rqtl2-bundle"
+ action="{{url_for('upload.rqtl2.upload_rqtl2_bundle',
+ species_id=species.SpeciesId,
+ population_id=population.InbredSetId)}}"
+ method="POST"
+ enctype="multipart/form-data">
+ <input type="hidden" name="species_id" value="{{species.SpeciesId}}" />
+ <input type="hidden" name="population_id"
+ value="{{population.InbredSetId}}" />
+
+ {{flash_messages("error-rqtl2")}}
+
+ <fieldset>
+ <legend>file upload</legend>
+ <label for="file:rqtl2-bundle">R/qtl2 bundle</label>
+ <input type="file" id="file:rqtl2-bundle" name="rqtl2_bundle"
+ accept="application/zip, .zip"
+ required="required" />
+ <span class="form-input-help"><p>Provide a valid R/qtl2 zip file here. In
+ particular, ensure your zip bundle contains exactly one control file and
+ the corresponding files mentioned in the control file.</p>
+ <p>The control file can be either a YAML or JSON file. <em>ALL</em> other
+ data files in the zip bundle should be CSV files.</p>
+ <p>See the
+ <a href="https://kbroman.org/qtl2/assets/vignettes/input_files.html"
+ target="_blank">
+ R/qtl2 file format specifications</a> for more details.</p></span>
+ </fieldset>
+ <fieldset>
+ <input type="submit"
+ value="upload R/qtl2 bundle"
+ class="btn btn-main form-col-2" />
+ </fieldset>
+</form>
+
+{%endblock%}