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

Table of contents

  1. Summary
  2. Input tree
  3. Root-to-tip regression
  4. Convergent mutations
  5. Reversions
  6. Signatures of human immune editing

1. Summary

Tips: {{ summary.tips }}

Tree height: {{ summary.tree_height }}

2. Input tree

{% if tree_plot_html %}

Tree rooting: {{ tree_rooting_method }}. Use the dropdown to colour tips by trait and the slider to expand the tree vertically.

Further explore this tree in PearTree.

{{ tree_plot_html | safe }}
{% else %}

No interactive tree available, tree failed to render.

{% endif %}
{% if tree_plot_html %} {% endif %}

3. Root-to-tip regression

Root-to-tip regression can be used to visually assess the temporal signal in the phylogenetic tree. It plots the genetic distance from the root against the sampling dates of the sequences.

Primer: the slope is the estimated evolutionary rate (substitutions/site/year, using decimal-year dates), the x-intercept estimates tMRCA, R² is the fraction of variation explained by the regression, and r is the Pearson correlation coefficient. These values are sensitive to tree rooting, so an incorrect root placement can shift the inferred rate, tMRCA, and fit statistics.

{% if root_to_tip_stats %}

Slope (rate, subs/site/year): {{ "%.2e"|format(root_to_tip_stats.slope) }} | tMRCA (x-intercept, decimal year): {{ root_to_tip_stats.tmrca }} | R²: {{ "%.3f"|format(root_to_tip_stats.r_squared) }} | r: {{ "%.3f"|format(root_to_tip_stats.correlation) }}

{% endif %} {% if root_to_tip_plot_html %} {{ root_to_tip_plot_html | safe }} {% else %}

No root-to-tip regression plot available.

{% endif %}

4. Convergent mutations

Convergent mutations are mutations that have independently arisen multiple times across the tree.
Large numbers of convergent SNPs can indicate convergent evolution (real) OR alignment/reconstruction errors (artifacts).

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

Ancestral state reconstruction files must be supplied to check for convergent mutations.

No convergent mutations flagged.

{% endif %}

5. Reversions

Reversions are mutations that revert to a previous state observed in the tree.

If assembly references are supplied, reversions can flag potential assembly errors.

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

Ancestral state reconstruction files must be supplied to check for reversions.

No reversions flagged.

{% endif %}

6. Signatures of human immune editing

Signatures of human immune editing are mutations that may be influenced by the host immune system. Raccoon can check for signatures of ADAR editing (clusters of T->C mutations) and APOBEC editing (TC->TT and GA->AA mutations).

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

Ancestral state reconstruction files must be supplied to check for signatures of immune editing.

No immune editing signatures flagged.

{% endif %}
{% endblock %}