about summary refs log tree commit diff
path: root/uploader/templates/genotypes/genotype-encoding-elements.html
blob: 2cd4e4a73a59ee924940e13991d52ed9997fee8d (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
{% set _encoding = geno_encoding|default({}) %}
<div class="row">
  <h4 class="subheading">Genotype Encoding</h4>
  <div class="form-text help-block">
    <p>The symbols in your genotype file need to be mapped to known values to
      enable mapping.</p>
  </div>

  <div class="form-group">
    <div class="row mb-3">
      <label for="txt-geno-encoding-mat"
             class="col-form-label col-sm-2">Maternal</label>
      <div class="col-sm-10">
        <div class="input-group">
        <input type="text"
               maxlength="3"
               id="txt-geno-encoding-mat"
               name="geno_encoding_mat"
               value="{{ _encoding.get('mat', '') }}"
               class="form-control" />
        <div class="input-group-append">
          <span class="input-group-text">Value = -1</span>
        </div>
        </div>
      </div>
      <span class="form-text text-muted col-sm-12">
        Enter the symbol in your file that represents the allele inherited from
        the mother. This allele will be mapped to the value -1.</span>
    </div>
  </div>

  <div class="form-group">
    <div class="row mb-3">
      <label for="txt-geno-encoding-pat"
             class="col-form-label col-sm-2">Paternal</label>
      <div class="col-sm-10">
        <div class="input-group">
          <input type="text"
                 maxlength="3"
                 id="txt-geno-encoding-pat"
                 name="geno_encoding_pat"
                 value="{{ _encoding.get('pat', '') }}"
                 class="form-control" />
          <div class="input-group-append">
            <span class="input-group-text">Value = 1</span>
          </div>
        </div>
      </div>
      <span class="form-text text-muted">
        Enter the symbol in your file that represents the allele inherited from
        the father. This allele will be mapped to the value 1.</span>
    </div>
  </div>

  <div class="form-group">
    <div class="row mb-3">
      <label for="txt-geno-encoding-het"
             class="col-form-label col-sm-2">Heterozygous (value = 0)</label>
      <div class="col-sm-10">
        <div class="input-group">
          <input type="text"
                 maxlength="3"
                 id="txt-geno-encoding-het"
                 name="geno_encoding_het"
                 value="{{ _encoding.get('het', '') }}"
                 class="form-control" />
          <div class="input-group-append">
            <span class="input-group-text">Value = 0</span>
          </div>
        </div>
      </div>
      <span class="form-text text-muted">
        Enter the symbol in your file that represents the allele inherited from
        both parents. This allele will be mapped to the value 0.</span>
    </div>
  </div>

  <div class="form-group">
    <div class="row mb-3">
      <label for="txt-geno-missing-symbols"
             class="col-form-label col-sm-2">Missing-value symbol(s)</label>
      <div class="col-sm-10">
        <input type="text"
               id="txt-geno-missing-symbols"
               name="missing_symbols"
               value="{{ missing_symbols|default('') }}"
               class="form-control" />
      </div>
      <span class="form-text text-muted">
        Enter the symbol(s) used in your file to represent missing genotype
        values. Separate multiple symbols with spaces or commas.</span>
    </div>
  </div>
</div>