aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/templates/demo.html
blob: dc6281d57eb541f97de633a00d3e11651ae81072 (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
<!DOCTYPE html>
<html>
  {% include 'header.html' %}
  <body>
    {% include 'banner.html' %}
    {% include 'menu.html' %}

    <p>The Virtuoso database contains <span id="CounterDB"></span> public sequences! The examples here should provide a starting point to explore our data in our public <a href="http://sparql.genenetwork.org/sparql">SPARQL endpoint</a> or via <a href="https://covid-19-sparql.expasy.org/">SIB COVID-19 Integrated Knowledgebase</a>. See also our documentation <a href="http://covid-19.genenetwork.org/blog?id=using-covid-19-pubseq-part1">here</a> for more information!</p>
    <!--
    <div class="search">
      <input id="search-input" type="search" placeholder="FASTA uri" required>
      <button class="button search-button" type="submit" onclick="search()">
        <span class="icon ion-search">
          <span class="sr-only">Search</span>
        </span>
      </button>
      <span class="dropt" title="http://collections.lugli.arvadosapi.com/c=00fede2c6f52b053a14edca01cfa02b7+126/sequence.fasta">(example)<span style="width:500px;"></span></span>
    </div>
    -->

    <section class="search-section">
      <div id="playgroundButtonBox" class="filter-options" action="#">
        <div>
          <button class="button" onclick="demoFetchSEQCountByLocation()">Count by location</button>
          <button class="button" onclick="demoGetSEQCountbytech()">Count by sequencer</button>
          <button class="button" onclick="demoGetSeqIllumina()">Sequences done with Illumina iSeq 100</button>
          <button class="button" onclick="demoFetchInstitutesPublications()">Get list of publications</button>
          <button class="button" onclick="demoGetSeqWithStrain()">Sequences and their virus_strain</button>
          <button class="button" onclick="demoFetchSEQCountBySpecimen()">Count by Specimen source</button>
          <button class="button" onclick="demoGetSEQCountbytechContinent()">Sequence Technologies used by continent</button>
          <button class="button" onclick="demoGetAuthors()">Get authors</button>
          <button class="button" onclick="demoGetLocationGps()">Locations and their GPS</button>
          <button class="button" onclick="demoGetSequencePerDate()">Show sequences by collection date</button>
          <button class="button" onclick="demoGetSouthAmericaSeq()">List sequences from South America</button>
          <button class="button" onclick="demoGetSeqByAgeGender()">Get Sequence by age and gender</button>
          <button class="button" onclick="demoGetNYsamples()">Get all NY samples</button>
          <button class="button" onclick="demoGetContinentSpecimentSeqCount()">Sequence count by continent/specimen_source</button>




          <!-- <button class="button" onclick="fetchAllaccessions()">Show All accessions</button>
          <button class="button" onclick="fetchSEQCountbyContinent()">Count by Continent</button>-->
        </div>

      </div>

    </section>
    <div id="loader" class="loader invisible">
    </div>


    <section>
      <div id="playground"></div>
    </section>

 {% include 'footer.html' %}

    <script type="text/javascript">
      let scriptRoot = {{ request.script_root|tojson|safe }}; // examples

      document.addEventListener("DOMContentLoaded", function(){
          var count = fetch("/api/getCountDB")
              .then((resp) => resp.json())
              .then(function (data) {
                  count = data["sequences"];
                  console.log(count);
                  span = document.getElementById("CounterDB");
                  txt = document.createTextNode(count);
                  span.appendChild(txt);
              });
      });
    </script>

  </body>

</html>