{% extends "base.html" %} {% import "bootstrap/wtf.html" as wtf %} {% import "bootstrap/fixes.html" as fixes %} {% import "bootstrap/utils.html" as util %} {% import "macros.html" as pbw %} {% block title %}Query {{ query.id }}{% endblock %} {% block content %}
{{ util.flashed_messages(dismissible=True, container=False) }}

Query {{ query.id }} {% if current_user.is_authenticated and current_user.is_admin %} {% endif %}

Created
{{ query.created }}
{% if query.parent %}
Parent
{{ query.parent_id }}
{% endif %} {% if query.children and query.children.count() > 0 %}
Children
{% for child in query.children %} {{ child.id }} {% endfor %}
{% endif %}
Explore Download Transaction {% if current_user.is_authenticated and current_user.is_admin %} Delete {% endif %}

Networks {{ query.assembly.networks|length }}

{% for network in query.assembly.networks %}

{{ network }}

{% if network.description %}
{{ network.description }}
{% endif %}
{% endfor %}
{% set seeding = query.seeding_to_json() %} {% if seeding %}

Seeding {{ seeding|length }}

    {% for seed in seeding %}
  • {{ seed['type']|title }}
      {% if seed['type'] == 'annotation' %} {% if seed['data']['or'] %}
    • Query type: OR
    • {% else %}
    • Query type: AND
    • {% endif %} {% for annotation, value in seed['data']['annotations'].items() %}
    • {{ annotation }}: {{ value }}
    • {% endfor %} {% elif seed['type'] in ['induction'] %} {% for node_tuple in seed['data'] %}
    • {{ manager.get_node_by_tuple(node_tuple) }}
    • {% endfor %} {% else %} {% for seed_data in seed['data'] %}
    • {{ seed_data }}
    • {% endfor %} {% endif %}
  • {% endfor %}
{% endif %} {% set pipeline = query.pipeline_to_json() %} {% if pipeline %}

Pipeline {{ pipeline|length }}

    {% for protocol_entry in pipeline %}
  1. {{ protocol_entry['function']|replace('_', ' ')|title }} {% if protocol_entry['args'] or protocol_entry['kwargs'] %}
      {% if protocol_entry['args'] %} {% for arg in protocol_entry['args'] %}
    • {% if protocol_entry['function'] in ['delete_node_by_id', 'expand_node_neighborhood_by_id', 'propagate_node_by_hash'] %} {{ manager.get_node_by_hash(arg) }} {% else %} {{ arg }} {% endif %}
    • {% endfor %} {% endif %} {% if protocol_entry['kwargs'] %} {% for kwarg_key, kwarg_value in protocol_entry['kwargs'].items() %}
    • {{ kwarg_key }}={{ kwarg_value }}
    • {% endfor %} {% endif %}
    {% endif %}
  2. {% endfor %}
{% endif %} {% if 'analysis' in blueprints %} {% set experiments = query.experiments %}

Experiments {{ query.experiments.count() }}

{% if experiments.count() %} Compare with Parallel Line Plot | {% else %} No experiments exist yet. {% endif %} Upload
{% if experiments.count() %} {{ pbw.render_experiment_table(experiments) }} {% endif %}
{% endif %}
{% endblock %}