{% from "oligonucleotides/macros/plot.html" import plot_profile %} {% macro table(entities) %} {% for oligonucleotide in entities %} {% endfor %}
ID Label Ordered on Ordered by Storage place Length Sequence
{{ oligonucleotide.id }} {{ oligonucleotide.label }} {{ oligonucleotide.date_ordered | format_date }} {{ oligonucleotide.owner.username }} {{ oligonucleotide.storage_place }} {{ oligonucleotide|length }} {{ oligonucleotide.formatted_seq(max_len=45)|safe }}
{% endmacro %} {% macro table_hits(entities, ref, length) %} {% for oligonucleotide, result in entities %} {% endfor %}
ID Label Storage place Length Continous match Best match Profile
{{ oligonucleotide.id }} {{ oligonucleotide.label }} {{ oligonucleotide.storage_place }} {{ oligonucleotide|length }} {{ result.length }} {{ result.lcs }} {{ plot_profile(oligonucleotide.id, result.to_jsarray(), (result.profile | length)) }}
{% endmacro %}