{% extends "ui3/base.html" %} {% block title %}New Protocol Template – BioQueue{% endblock %} {% block content %}

New Protocol Template

Write commands that repeat for every sample once. BioQueue expands them into a full command list when a job runs.

Back to protocols
{% if error %}
{{ error }}
{% endif %}
{% csrf_token %}

A normal protocol lists every command. A protocol template is the short form when the same commands run on each sample, such as each replicate. You can also list commands that combine those samples. BioQueue expands the template into a full command list when a job runs.

This page opens an example: a block named process_sample, called once per sample. Replace the echo command with your own software and arguments.

{% verbatim %}Inside a sample map, {{sample.r1}} is that sample's first file and {{sample.prefix}} is {{JobName}}_ plus the sample name. After the map, {{samples.prefix}} lists every sample. An output name is stored on the sample when the command runs inside the map ({{sample.clean}}), and as a shared value when the command runs after the map ({{shared.clean}}). A block follows the place it is called.{% endverbatim %}

{{ token_list|json_script:"ui3-tokens" }} {% include "ui3/protocols/_template_editor.html" %}
{% endblock %}