{% extends "base.html" %} {% import "bootstrap/wtf.html" as wtf %} {% import "bootstrap/fixes.html" as fixes %} {% import "bootstrap/utils.html" as util %} {% block title %}Pathway Details{% endblock %} {% block styles %} {{ super() }} {% endblock %} {% macro write_label(resource) -%} {% if resource == 'kegg' %} label-success {% elif resource == 'reactome' %} label-danger {% elif resource == 'wikipathways' %} label-info {% elif resource == 'msig' %} label-default {% else %} label-warning {% endif %} {%- endmacro %} {% macro write_pathways(pathways, title) -%} {% if pathways|length > 0 %}
{{ title }}
{% endif %} {%- endmacro %} {% block scripts %} {{ super() }} {% include "dependencies/common.html" %} {% endblock %} {% block content %}
{{ util.flashed_messages(dismissible=True, container=False) }}
{{ pathway.name }} - Pathway Page
Name {{ pathway }}
Resource {{ resource|upper }}
Genes {% for hgnc_symbol in pathway.get_gene_set() %} {% if submitted_gene_set and hgnc_symbol in submitted_gene_set %} {{ hgnc_symbol }} {% else %} {{ hgnc_symbol }} {% endif %} {% endfor %}
Size {{ pathway.get_gene_set()|length }}
{{ write_pathways(equivalent_pathways, "Equivalent Pathways") }} {{ write_pathways(super_pathways, "Super-Pathways") }} {{ write_pathways(sub_pathways, "Sub-Pathways") }}
{% include "footer.html" %} {% endblock %}