diff --git a/modiscolite/templates/descriptive_report.html b/modiscolite/templates/descriptive_report.html
index d1e71b4..501c69b 100644
--- a/modiscolite/templates/descriptive_report.html
+++ b/modiscolite/templates/descriptive_report.html
@@ -474,15 +474,11 @@
Pattern Summary
CWM Fwd |
CWM Rev |
{% if meme_motif_db %}
- Match 0 |
- Q-value |
- Logo |
- Match 1 |
- Q-value |
- Logo |
- Match 2 |
+ {% for i in range(top_n_matches) %}
+ Match {{ i }} |
Q-value |
Logo |
+ {% endfor %}
{% endif %}
@@ -531,7 +527,7 @@ Pattern Summary
{% endif %}
{% if meme_motif_db %}
- {% for i in range(3) %}
+ {% for i in range(top_n_matches) %}
{% if pattern_tag in tomtom_data and 'match_' + i|string in tomtom_data[pattern_tag] and tomtom_data[pattern_tag]['match_' + i|string] %}
{{ tomtom_data[pattern_tag]['match_' + i|string] }} |
{{ "%.2e"|format(tomtom_data[pattern_tag]['pval_' + i|string]) }} |