diff --git a/src/indra_cogex/apps/templates/source_target/source_target_results.html b/src/indra_cogex/apps/templates/source_target/source_target_results.html index 1015cb132..c46d0bbc0 100644 --- a/src/indra_cogex/apps/templates/source_target/source_target_results.html +++ b/src/indra_cogex/apps/templates/source_target/source_target_results.html @@ -4,10 +4,18 @@ {% block styles %} {{ super() }} - + + {% endblock %} {% block scripts %} @@ -44,24 +52,26 @@ {% endblock %} {% macro render_table(df, table_id) -%} -
{{ column }} | - {% endfor %} -
---|
{{ value }} | + {% for column in df.columns %} +{{ column }} | {% endfor %}
---|
Direct relationships between source and target genes from the INDRA database:
-Direct relationships between source and target genes:
+ {% for gene, statement in results.statements.items() %} +Biological pathways shared between source and target genes:
- {{ render_table(results.pathways, "table-pathways") }} + {% if results.discrete_analysis and results.discrete_analysis.get('go') is not none + and results.discrete_analysis.get('go').shape[0] > 0 %} +Gene Ontology enrichment analysis:
+ {{ render_table(results.discrete_analysis.get('go'), "table-go") }} + + {% if results.discrete_analysis.get('wikipathways') is not none + and results.discrete_analysis.get('wikipathways').shape[0] > 0 %} +Protein family relationships:
+Shared protein family relationships:
{{ render_table(results.protein_families, "table-families") }} {% endif %} - {% if results.go_terms %} -Shared Gene Ontology terms between source and target genes:
- {{ render_table(results.go_terms.shared_terms, "table-go") }} + {% if results.combined_pathways is not none and results.combined_pathways.shape[0] > 0 %} +Combined REACTOME and WikiPathways analysis:
+ {{ render_table(results.combined_pathways, "table-combined-pathways") }} + {% endif %} + + {% if results.go_terms and results.go_terms.get('shared_terms') is not none + and results.go_terms.get('shared_terms').shape[0] > 0 %} +Shared Gene Ontology terms:
+ {{ render_table(results.go_terms.get('shared_terms'), "table-shared-go") }} {% endif %} - {% if results.upstream %} + {% if results.upstream and results.upstream.get('shared_proteins') %}Shared upstream regulatory mechanisms:
- {% if results.upstream.shared_proteins %} -+ {% for protein in results.upstream.get('shared_proteins') %} + {{ protein }} + {% endfor %} +
{% endif %} {% if results.analysis_plot %}Distribution of p-values and q-values for various analyses:
+Distribution of p-values and q-values: