Home

GALAXY LAB YAML SCHEMA

This document describes the structure and validation rules for a Galaxy Lab section.yml file.

A minimal example of the full schema is shown below, but a real example would have more tabs and content items. Typically there should be only one section per YAML file (e.g. section_1.yml, section_2.yml).

    id: section_1
    title: Example section
    tabs:
      - id: tools
        title: Tools
        heading_md: Common tools are listed here, or search for more in the full tool panel to the left.
        content:
          - button_link: "{{ galaxy_base_url }}/tool_runner?tool_id=toolshed.g2.bx.psu.edu%2Frepos%2Fdevteam%2Ffastqc%2Ffastqc"
            title_md: `FastQC` - sequence quality reports
            description_md: |
              Before using your sequencing data, it’s important to ensure that
              the data quality is sufficient for your analysis.
            inputs:
              - label: Sequencing data for analysis
                datatypes:
                  - fasta
                  - fastq
                  - bam
                  - sam
      - id: workflows
        title: Workflows
        heading_md: |
          A workflow is a series of Galaxy tools that have been linked together
          to perform a specific analysis. You can use and customize the example workflows
          below.
          <a href="https://galaxyproject.org/learn/advanced-workflow/">
            Learn more
          </a>.
        content:
          - button_link: "{{ galaxy_base_url }}/workflows/trs_import?trs_server=workflowhub.eu&run_form=true&trs_id=222"
            button_tip: Import to Galaxy AU
            title_md: Data QC
            view_link: https://workflowhub.eu/workflows/222
            view_tip: View in WorkflowHub
            description_md: |
              Report statistics from sequencing reads.

              **Tools**

              - `nanoplot`
              - `fastqc`
              - `multiqc`

The above YAML results in the following element being rendered:

Example section

Common tools are listed here, or search for more in the full tool panel to the left.

Before using your sequencing data, it's important to ensure that the data quality is sufficient for your analysis.

Input data:

fasta
fastq
bam
sam
Sequencing data for analysis

A workflow is a series of Galaxy tools that have been linked together to perform a specific analysis. You can use and customize the example workflows below. Learn more .

Report statistics from sequencing reads.

Tools

  • nanoplot
  • fastqc
  • multiqc

You can upload your data to Galaxy using the Upload tool from anywhere in Galaxy. Just look for the "Upload data" button at the top of the tool panel.

We recommend subsampling large data sets to test tools and workflows. A useful tool is seqtk_seq, setting the parameter at "Sample fraction of sequences"

The YAML data above can be broken down into the following components:

  1. Section
  2. Section Tab
  3. Tab Subsection
  4. Content Item
  5. Input Item
  6. Button Icons

The YAML schema expects items 1-5 to be lists, so these elements can be repeated to provide as many Tabs, Content Items etc. as you like.


Section

Description

A Galaxy Lab section - this is the root of the section.yml file.

Properties

Example

    id: section_1
    title: Example section
    tabs:
      - <SectionTab>
      - <SectionTab>

Section Tab

Description

A tab with a list of expandable items to be shown in the section.

Properties

Example

    id: section_1_tools
    title: Tools
    heading_md: |
      These tools will get you started with your analysis.
      More advanced tools are available in the
      [next section](#advancedSection).
    content:
      - <ContentItem>
      - <ContentItem>
    id: section_1_tools
    title: Tools with subsections
    heading_md: |
      These tools are listed in subsections for easier navigation.
    content:
      subsections:
        - <TabSubsection>
        - <TabSubsection>

Tab Subsection

Description

A content subsection, to be used for dividing content into subsections, each with a title. e.g. "Short-read", "Long-read", "Hybrid".

Properties

Example

    id: tools_short_read
    title: These tools are optimized for short-read analysis
    content:
      - <ContentItem>
      - <ContentItem>

An example of this can be found on the Genome Lab, where subsections are used to separate Nanopore, Illumina and PacBio tools:

The tab subsection in the Genome Lab web page

Content Item

Description

A content item, which is typically a Galaxy tool, workflow or tutorial. In the UI, this will be rendered as an "accordion" item. If button/view links are not specified, no buttons will be displayed. For tools and workflows, inputs can be used to describe the essential inputs.

When inserting URLs for the Galaxy server (e.g. link to Galaxy tool), ensure that you make use of the {{ galaxy_base_url }} variable to ensure that the link is correctly generated for different Galaxy servers! See below for an example.

Properties

Example

    - button_link: "{{ galaxy_base_url }}/tool_runner?tool_id=toolshed.g2.bx.psu.edu%2Frepos%2Fdevteam%2Ffastqc%2Ffastqc"
      title_md: `FastQC` - sequence quality reports
      description_md: |
          Before using your sequencing data, it’s important to ensure that
          the data quality is sufficient for your analysis.
      inputs:
        - <ItemInput>
        - <ItemInput>

The above YAML is rendered as:

The content item rendered in Galaxy Lab web page as an expandable accordion item
    - button_link: "{{ galaxy_base_url }}/workflows/trs_import?trs_server=workflowhub.eu&run_form=true&trs_id=222"
      button_tip: Import to Galaxy Australia
      title_md: Data QC on Galaxy AU
      view_link: https://workflowhub.eu/workflows/222
      view_tip: View in WorkflowHub
      description_md: |
          Report statistics from sequencing reads.

          **Tools**

          - `nanoplot`
          - `fastqc`
          - `multiqc`
      exclude_from:
        - usegalaxy.org
        - usegalaxy.eu

The above YAML is rendered as:

The content item rendered in Galaxy Lab web page as an expandable accordion item

You can create a workflow import URL as shown above from either DockStore or Workflowhub by changing the TRS ID and TRS server. The TRS ID can be found at the end of the URL of the workflow page on DockStore or Workflowhub.


InputItem

Description

An input dataset, typically for a Galaxy tool or workflow. The list of inputs will be displayed as a table.

Properties

Example

    label: Raw reads
    datatypes:
      - fasta
      - fastqsanger

ButtonIcon

Description

Accepted icons identifiers for buttons.

run
tutorial
social
help
view