{% if section_only -%}
# {{ section_header }}
{% else -%}
# {{ name }}

Source: {{ source }}
ID: {{ id }}
{% if species %}Species: {{ species }}{% endif %}

{% if summary -%}
## Summary ({{ pathway_source_label }})

{{ summary }}
{% endif -%}
{% endif -%}
{% if show_genes_section and genes -%}
## Genes ({{ pathway_source_label }})

{{ genes | join(", ") }}
{% endif -%}
{% if show_events_section and events -%}
## Events ({{ pathway_source_label }})
{% for event in events -%}
- {{ event }}
{% endfor -%}
{% endif -%}
{% if show_enrichment_section and enrichment -%}
## Enrichment (g:Profiler)

| Source | ID | Name | P-value |
|---|---|---|---|
{% for row in enrichment -%}
| {{ row.source }} | {{ row.id }} | {{ row.name | truncate(55) }} | {% if row.p_value is not none %}{{ row.p_value | pval }}{% else %}-{% endif %} |
{% endfor -%}
{% endif -%}
{% if sections_block %}{{ sections_block }}
{% endif -%}
{% if related_block %}{{ related_block }}
{% endif -%}
