syntax-checker.html 2.28 KB
Newer Older
Vermaat's avatar
Vermaat committed
1
2
3
{% extends "base.html" %}

{% set active_page = "syntax-checker" %}
4
{% set page_title = "Syntax Checker" %}
Vermaat's avatar
Vermaat committed
5
6

{% block content %}
Vermaat's avatar
Vermaat committed
7
8

<p>
9
Please insert the variant description using
Vermaat's avatar
Vermaat committed
10
11
12
13
14
15
16
17
18
the <a href="http://www.hgvs.org/mutnomen" title="Human Genome Variation
Society standard variant nomenclature" alt="Human Genome Variation Society
standard variant nomenclature">HGVS</a> format:
</p>

<pre>&lt;accession number&gt;.&lt;version number&gt;(&lt;gene symbol&gt;):&lt;sequence type&gt;.&lt;variant description&gt;</pre>

<form class="form" action="{{ url_for('.syntax_checker') }}" method="get">
  <div class="form-group">
19
    <label for="description">Variant description</label>
Vermaat's avatar
Vermaat committed
20
    <input class="form-control form-pre" type="text"
Vermaat's avatar
Vermaat committed
21
           name="description" id="description" value="{{ description }}" placeholder="Variant description using HGVS format">
Vermaat's avatar
Vermaat committed
22
    <p>Example: <code class="example-input" data-for="description">AB026906.1:c.274G&gt;T</code></p>
Vermaat's avatar
Vermaat committed
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
  </div>
  <div class="form-group button-group">
    <input type="submit" class="btn btn-primary" value="Check syntax">
    <a href="https://humgenprojects.lumc.nl/trac/mutalyzer/wiki/SyntaxChecker" target="new" class="btn btn-default pull-right">Help</a>
  </div>
</form>

{% if description %}
  <hr>
  {% if parse_error %}
    <div class="alert alert-danger">
      <h4>Parse error</h4>
      <pre>{{ parse_error[0] }}<br>{{ parse_error[1] }}</pre>
      <p>The &quot;^&quot; indicates the position where the error occurred.</p>
    </div>
  {% else %}
39
    <p class="alert alert-success">The syntax of this variant description is OK!</p>
Vermaat's avatar
Vermaat committed
40
41
42
43
44
45
46
47
  {% endif %}

  {% if messages %}
    {% for m in messages %}
      {% if m.class == "error" %}
        <p class="alert alert-danger" title="{{ m.level }} (origin: {{ m.origin }})">{{ m.description }}</p>
      {% elif m.class == "warning" %}
        <p class="alert alert-warning" title="{{ m.level }} (origin: {{ m.origin }})">{{ m.description }}</p>
48
49
50
51
      {% elif m.class == "information" %}
        <p class="alert alert-info" title="{{ m.level }} (origin: {{ m.origin }})">{{ m.description }}</p>
      {% elif m.class == "debug" %}
        <p class="alert alert-info" title="{{ m.level }} (origin: {{ m.origin }})">{{ m.description }}</p>
Vermaat's avatar
Vermaat committed
52
53
54
55
56
      {% endif %}
    {% endfor %}
  {% endif %}
{% endif %}{# description #}

Vermaat's avatar
Vermaat committed
57
{% endblock content %}