{% extends "base.html" %} {% block content %}

Table of contents

  1. Report Summary
  2. Alignment N-content
  3. Flagged sites
  4. Location of flagged sites
  5. Flagged sequences
  6. Diversity

1. Report Summary

Sequences: {{ summary.sequences }}
Alignment length: {{ summary.alignment_length }}

Mean N content: {{ summary.mean_n_content }}
Mean completeness: {{ summary.mean_completeness }}

2. Alignment N-content

{% if n_blocks_plot_html %}

Purple blocks represent N positions (ambiguous nucleotides) along the alignment for each sequence.
{% if n_blocks_plot_note %} {{ n_blocks_plot_note }} {% endif %}

{{ n_blocks_plot_html | safe }} {% else %}

No alignment data available for plotting.

{% endif %}

3. Flagged sites

Categories of mutations checked were {{ flagged_criteria }}.

{% if sites_table %}
{% for header in sites_table.headers %} {% endfor %} {% for row in sites_table.rows %} {% for cell in row %} {% endfor %} {% endfor %}
{{ header }}
{{ cell }}
{% else %}

No sites flagged for review.

{% endif %}

4. Location of flagged sites

Categories of mutations checked were {{ flagged_criteria }}.

{% if flagged_plot_html %} {{ flagged_plot_html | safe }} {% else %}

No sites flagged for review.

{% endif %}

5. Flagged sequences

Sequences are flagged for removal if they meet the following criteria: {{ flagged_removal_criteria }}.

{% if sequence_removals_table %}
{% for header in sequence_removals_table.headers %} {% endfor %} {% for row in sequence_removals_table.rows %} {% for cell in row %} {% endfor %} {% endfor %}
{{ header }}
{{ cell }}
{% else %}

No sequences flagged for removal.

{% endif %}

6. Diversity

This plot shows sequence diversity across the alignment as Shannon diversity, smoothed over a {{ smoothing_window }}-base window.

Shannon diversity summarizes how mixed the bases are at each alignment position: low values mean most sequences share the same base, and higher values mean more diversity at a given position. For a column with possible states A/T/C/G (Ns and gaps are ignored), the theoretical range is 0 to log₂(4) ≈ 2.0.
High diversity can be a sign of true biological variation, but it can also indicate problematic sites with many sequencing errors or misalignments.

{% if diversity_plot_html %} {{ diversity_plot_html | safe }} {% else %}

No diversity plot available.

{% endif %}
{% endblock %}