<!DOCTYPE html>
<html>
<head>
    {% load static %}
    {% load static %}

{% include "chlamdb/header.html" %}

</head>
<body>
    <div class="container-fluid" id="main_container">
      <div class="row">
        <div id="wrapper">
            <div id="page-content-wrapper">
              <div class="row">
                <div class="col-lg-12">
                   {% include "chlamdb/menu.html" %}

                        <div style="padding:2em 10em 0em 10em;">

  
                                  <div class= 'img'>
                                    <object type="image/svg+xml" data="{% static asset_path %}" id="pyhlogeny" style="width:1200px; padding:2em 4em 0em 4em;"></object>
                                  </div>
                                  <a download="profile.svg" class="btn" href="{% static asset_path %}"><i class="fa fa-download"></i> Download SVG</a>
                                  <a onclick='exportPNG("pyhlogeny", "phylogeny");' class="btn" id="png_button"><i class="fa fa-download"></i> Download PNG</a>
                                  <div class="panel panel-success" style="  width:100%">
                                      <div class="panel-heading" style="width:100%;">
                                          <h3 class="panel-title">Help</h3>
                                      </div>
  
                                      <p style="padding:1em 3em 1em 1em; line-height: 160% ; width:100%" >The phylogeny was build based on concatenated single copy orthologs with FastTree (default parameters). Nodes with black dots have support values lower than 1. 
                                      The percentage of non-coding DNA of fragmented genomes was calculated based on data from contigs larger than 10 kilo bases. The completeness and contamination of each genome were estimated with <a href="https://ecogenomics.github.io/CheckM/">checkM</a> based on the identification of 104 "universal" marker genes.</p>
                                      </p>
                                  </div>
                              
                      
                 </div>
             </div>
      </div>
     </div>
    <script>
      $(document).ready(function() {

      // Javascript to enable link to tab
      var url = document.location.toString();
      if (url.match('#')) {
          $('.nav-tabs a[href="#' + url.split('#')[1] + '"]').tab('show');
      } 

      // Change hash for page-reload
      $('.nav-tabs a').on('shown.bs.tab', function (e) {
          window.location.hash = e.target.hash;
      })

      $('#genomes_table').DataTable( {
      dom: 'Bfrtip',
      "paging":   true,
      "ordering": true,
      "info":     false,
      buttons: [
        {
            extend: 'excel',
            title: 'interaction_table'
        },
        {
            extend: 'csv',
            title: 'interaction_table'
        }
      ],
      } );
      } );
    $('.dropdown-toggle').dropdown()
    </script>
</body>
{% include "chlamdb/style_menu.html" %}
</html>
