aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates/rqtl2/upload-rqtl2-bundle-step-01.html
blob: 6491e6b7e36aac107d9a9217dab2d464b4506b6a (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
{%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%}