Supporting Tutorial Mode (GTN-in-Galaxy) in a tutorial
GTN tutorials can be viewed directly within Galaxy, we call this Tutorial mode (read news post)
In this mode, tool names in hands-on boxes become clickable, directly opening the tool in Galaxy, at the right version.
To enable this feature, a bit of metadata needs to be added to the tool names in hands-on boxes as follows:
{% tool [Name](Toolshed ID) %}
For example:
{% tool [bedtools intersect intervals](toolshed.g2.bx.psu.edu/repos/iuc/bedtools/bedtools_intersectbed/2.30.0+galaxy1) %}
To find the toolshed ID of a tool:
- Open the tool in Galaxy
- Click on the dropdown options menu (dropdown icon)
- Select Copy Tool ID
Example of a hands-on box using this feature:
> <hands-on-title> Counting SNPs </hands-on-title>
>
> 1. {% tool [Datamash](toolshed.g2.bx.psu.edu/repos/iuc/datamash_ops/datamash_ops/1.8+galaxy0) %} (operations on tabular data):
>
> - *"Input tabular dataset"*: select the output dataset from **bedtools intersect intervals** {% icon tool %}
> - *"Group by fields"*: `Column: 4` (the column with the exon IDs)
>
{: .hands_on}