{% extends 'admin/my_base.html' %} {% block body %} {% if form %}

Add Clades

Here definitions for clades need to be provided, along with newick trees to show on the website. This needs to be done as a JSON object. For each clade (containing at least one species), the included species need to be provided as an array of their codes.

Example

{
    "Arabidopsis": {
        "species": ["ath"],
        "tree": null
    },
    "Poplar": {
        "species": ["ptr"],
        "tree": null
    },
    "Rice": {
        "species": ["osa"],
        "tree": null
    },
    "Rosids": {
        "species": ["ptr", "ath"],
        "tree": "(ptr:0.01, ath:0.01);"
    },
    "Angiosperms": {
        "species": ["ptr", "ath", "osa"],
        "tree": "((ptr:0.03, ath:0.03):0.01, osa:0.04);"
    }
}
{{ form.csrf_token }}
{{ form.clades_json.label }} {{ form.clades_json(class_="form-control") }}
{% endif %} {% endblock %} {% block tail %} {{ super() }} {% endblock%}