{% load staticfiles %} {% load extras %} django-blastplus {% block stylesheets %} {% endblock %} {% block javascript %} {% endblock %}

django-blastplus results [example]

{% if blast_records and blast_records.0.alignments|length == 0 %}

{% else %}

{{ application }} {{ version }}


Description

{% for br in blast_records %} {% for alignment in br.alignments %} {% endfor %} {% endfor %}
# contig query length e-value score ident %
{{ forloop.counter }} {{ alignment.hit_def }} {{ br.query }} {{ alignment.length }} {{ alignment.best_evalue }} {{ alignment.best_score }} {{ alignment.best_identities }}


Alignments


{% for br in blast_records %} {% for alignment in br.alignments %}

{{ alignment.hit_def }} length = {{ alignment.length }}

{% for hsp in alignment.hsp_list %}
hsp {{ forloop.counter }}
length {{ hsp.align_length }}
e-value {{ hsp.expect }}
score {{ hsp.score }}
identities {{ hsp.identities }}
positives {{ hsp.positives }}
bits {{ hsp.bits }}
query start {{ hsp.query_start }}
query end {{ hsp.query_end }}
subject start {{ hsp.sbjct_start }}
subject end {{ hsp.sbjct_end }}
                    {% for idx in hsp.chop_query %}
    Q: {{ hsp.chop_query|get_at_index:forloop.counter0 }}
    M: {{ hsp.chop_match|get_at_index:forloop.counter0 }}
    S: {{ hsp.chop_sbjct|get_at_index:forloop.counter0 }}
                        {% endfor %}
                
{% endfor %} {% endfor %} {% endfor %}
{% endif %}