# Categorizing tools in the tool panel with sections and labels

**URL:** <https://help.galaxyproject.org/t/categorizing-tools-in-the-tool-panel-with-sections-and-labels/7860>\
**Category:** Uncategorized\
**Tags:** devops-administration, galaxy-local, metagenomics, tool-panel, mothur\
**Created:** [April 13, 2022, 1:43pm UTC](https://help.galaxyproject.org/t/categorizing-tools-in-the-tool-panel-with-sections-and-labels/7860 "2022-04-13T13:43:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mheuser](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@mheuser](https://help.galaxyproject.org/u/mheuser)\
**Post date:** [April 13, 2022, 1:43pm UTC](https://help.galaxyproject.org/t/categorizing-tools-in-the-tool-panel-with-sections-and-labels/7860/1 "2022-04-13T13:43:05Z")

</div>

Hey everyone,

I’m in the last steps of fine tuning our local galaxy installation. I want to rearrange and categorize our tools in the tool panel in a way similar to [usegalaxy.eu](http://usegalaxy.eu) with multiple sections and subsections.  
Here’s a snippet of my `shed_tool_conf.xml`:

```auto
<?xml version="1.0" ?>
<toolbox tool_path="/home/galaxy/app/database/shed_tools">
    <label id="basictools" text="Basic Tools" version="" />
    <section id="qc" name="Quality Check" version="">
        <tool file="toolshed.g2.bx.psu.edu/repos/devteam/fastqc/3d0c7bdf12f5/fastqc/rgFastQC.xml" guid="toolshed.g2.bx.psu.edu/repos/devteam/fastqc/fastqc/0.73+galaxy0">
            <tool_shed>toolshed.g2.bx.psu.edu</tool_shed>
            <repository_name>fastqc</repository_name>
            <repository_owner>devteam</repository_owner>
            <installed_changeset_revision>3d0c7bdf12f5</installed_changeset_revision>
            <id>toolshed.g2.bx.psu.edu/repos/devteam/fastqc/fastqc/0.73+galaxy0</id>
            <version>0.73+galaxy0</version>
        </tool>
    </section>

    <label id="metagenomics" text="Metagenomics" version="" />
    <section id="mothur" name="Mothur" version="">
        <tool file="toolshed.g2.bx.psu.edu/repos/iuc/mothur_get_oturep/305ce07a4b16/mothur_get_oturep/get.oturep.xml" guid="toolshed.g2.bx.psu.edu/repos/iuc/mothur_get_oturep/mothur_get_oturep/1.39.5.0">
            <tool_shed>toolshed.g2.bx.psu.edu</tool_shed>
            <repository_name>mothur_get_oturep</repository_name>
            <repository_owner>iuc</repository_owner>
            <installed_changeset_revision>305ce07a4b16</installed_changeset_revision>
            <id>toolshed.g2.bx.psu.edu/repos/iuc/mothur_get_oturep/mothur_get_oturep/1.39.5.0</id>
            <version>1.39.5.0</version>
        </tool>

[...]

```

I do get both labels (“Basic Tools” and “Metagenomics”). However, both sections are put under the “Metagenomics” label. How do I get the “Quality Check” up under the “Basic Tools” label?

Thanks!

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [April 13, 2022, 5:22pm UTC](https://help.galaxyproject.org/t/categorizing-tools-in-the-tool-panel-with-sections-and-labels/7860/2 "2022-04-13T17:22:06Z")

</div>

> [@mheuser](#):
>
> ```auto
> </section>
> 
> <label id="metagenomics" text="Metagenomics" version="" />
> 
> ```

Hi @mheuser  
Try closing the first label section with a `</label>` where that empty line above is.

---

<div class="post-metadata">

**Author:** ![mheuser](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@mheuser](https://help.galaxyproject.org/u/mheuser)\
**Post date:** [April 14, 2022, 1:59pm UTC](https://help.galaxyproject.org/t/categorizing-tools-in-the-tool-panel-with-sections-and-labels/7860/3 "2022-04-14T13:59:07Z")

</div>

Thanks for the answer, @jennaj!

I’ve tried your suggestion but unfortunately that makes the whole encapsulated section disappear. The label is still there, but the section is just gone.

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [April 15, 2022, 9:23pm UTC](https://help.galaxyproject.org/t/categorizing-tools-in-the-tool-panel-with-sections-and-labels/7860/4 "2022-04-15T21:23:35Z")

</div>

Hi @mheuser

Ok, sorry, I got that wrong. Things have changed a bit but even with the prior version my advice was wrong! The tag is already closed.

The placement of labels used to matter, and were add in _after_ the section(s) to list under that label. That would mean rearranging the xml to be this for your case:

```auto
<?xml version="1.0" ?>
<toolbox tool_path="/home/galaxy/app/database/shed_tools">
    <section id="qc" name="Quality Check" version="">
        <tool file="toolshed.g2.bx.psu.edu/repos/devteam/fastqc/3d0c7bdf12f5/fastqc/rgFastQC.xml" guid="toolshed.g2.bx.psu.edu/repos/devteam/fastqc/fastqc/0.73+galaxy0">
            <tool_shed>toolshed.g2.bx.psu.edu</tool_shed>
            <repository_name>fastqc</repository_name>
            <repository_owner>devteam</repository_owner>
            <installed_changeset_revision>3d0c7bdf12f5</installed_changeset_revision>
            <id>toolshed.g2.bx.psu.edu/repos/devteam/fastqc/fastqc/0.73+galaxy0</id>
            <version>0.73+galaxy0</version>
        </tool>
    </section>
    <label id="basictools" text="Basic Tools" version="" />
    <section id="mothur" name="Mothur" version="">
        <tool file="toolshed.g2.bx.psu.edu/repos/iuc/mothur_get_oturep/305ce07a4b16/mothur_get_oturep/get.oturep.xml" guid="toolshed.g2.bx.psu.edu/repos/iuc/mothur_get_oturep/mothur_get_oturep/1.39.5.0">
            <tool_shed>toolshed.g2.bx.psu.edu</tool_shed>
            <repository_name>mothur_get_oturep</repository_name>
            <repository_owner>iuc</repository_owner>
            <installed_changeset_revision>305ce07a4b16</installed_changeset_revision>
            <id>toolshed.g2.bx.psu.edu/repos/iuc/mothur_get_oturep/mothur_get_oturep/1.39.5.0</id>
            <version>1.39.5.0</version>
        </tool>
    </section>
    <label id="metagenomics" text="Metagenomics" version="" />
</toolbox>

```

Please give that a try.

If it doesn’t produce what you want, please write back and I’ll recruit more help. Our docs only include how to add a `labels` to [individual tools](https://docs.galaxyproject.org/en/master/admin/tool_panel.html) or a sub `label` [within sections](https://github.com/veg/galaxy-config/blob/b670ff9a4f4126f82659fc25e1cf20fcf1fa997c/misc/integrated_tool_panel.xml#L210).

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [April 18, 2022, 7:11pm UTC](https://help.galaxyproject.org/t/categorizing-tools-in-the-tool-panel-with-sections-and-labels/7860/5 "2022-04-18T19:11:07Z")

</div>

Hi again @mheuser

I asked for help from @nate to confirm, and he was able to provide more examples. The [usegalaxy.eu](http://usegalaxy.eu) server is set up similar to [usegalaxy.org](http://usegalaxy.org).

> Here’s an example of a label, they can go inside or outside of sections: [https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy/config/sample/tool\_conf.xml.sample#L85](https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy/config/sample/tool_conf.xml.sample#L85)
> 
> The specific one you mention for main ([usegalaxy.org](http://usegalaxy.org)) is here: [https://github.com/galaxyproject/usegalaxy-playbook/blob/main/env/main/files/galaxy/config/tool\_conf.xml#L80](https://github.com/galaxyproject/usegalaxy-playbook/blob/main/env/main/files/galaxy/config/tool_conf.xml#L80)

**Note that these edits** are in the `tool_conf.xml` file, not the `integrated_tool_conf.xml` (see the URLs of each in this post). The integrated file is recreated/updated when a server is restarted, based on the first plus a few other inputs (if any exist). I wondering now if that was the original mixup (where to put the manual edits).

---

<div class="post-metadata">

**Author:** ![mheuser](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@mheuser](https://help.galaxyproject.org/u/mheuser)\
**Post date:** [April 20, 2022, 2:33pm UTC](https://help.galaxyproject.org/t/categorizing-tools-in-the-tool-panel-with-sections-and-labels/7860/6 "2022-04-20T14:33:33Z")

</div>

Hey @jennaj 🙂

Thank you so much for looking into the issue! It is much appreciated.  
Indeed, I was trying to edit `shed_tool_conf.xml` directly. Tbh, the whole process is very confusing to me 🤔  
In the documentation it states that the files necessary for making the sidebar are kind of chained together (if I understood correctly), so I assumed that the file which holds the definitions for the tools I have installed from the toolshed is the one to use for rearranging and labelling. I’m referring to [this](https://galaxyproject.org/admin/tool-panel/#managing-the-layout-of-the-tool-panel) paragraph.

I’ve had a look at both my local `tool_conf.xml` and the examples you’ve linked above. I can see the way they work, but I am unsure how to add the tools I’ve installed from the tool shed to my file. In my `tool_conf.xml` all I see is the basic tools that came bundled with Galaxy:

```auto
<?xml version='1.0' encoding='utf-8'?>
<toolbox monitor="true">
  <section id="getext" name="Get Data">
    <tool file="data_source/upload.xml" />
    <tool file="data_source/ucsc_tablebrowser.xml" />
    <!-- <tool file="data_source/ucsc_tablebrowser_test.xml" /> -->
    <tool file="data_source/ucsc_tablebrowser_archaea.xml" />
    <tool file="data_source/ncbi_datasets.xml" />
    <tool file="data_source/sra.xml" />
    <tool file="data_source/ebi_sra.xml" />
    <tool file="data_source/fly_modencode.xml" />
    <tool file="data_source/intermine.xml" />
    <tool file="data_source/flymine.xml" />
    <!-- <tool file="data_source/flymine_test.xml" /> -->
    <tool file="data_source/modmine.xml" />
    <tool file="data_source/mousemine.xml" />
    <tool file="data_source/ratmine.xml" />
    <tool file="data_source/yeastmine.xml" />
    <tool file="data_source/worm_modencode.xml" />
    <tool file="data_source/wormbase.xml" />
    <!-- <tool file="data_source/wormbase_test.xml" /> -->
    <tool file="data_source/zebrafishmine.xml" />
    <tool file="data_source/eupathdb.xml" />
    <tool file="data_source/hbvar.xml" />
  </section>

[...]

```

To keep this post readable, I’ve shortened my `shed_tool_conf.xml` to look like this:

```auto
<?xml version="1.0" ?>
<toolbox tool_path="/home/galaxy/app/database/shed_tools">
    <section id="qc" name="Quality Check" version="">
        <tool file="toolshed.g2.bx.psu.edu/repos/devteam/fastqc/3d0c7bdf12f5/fastqc/rgFastQC.xml" guid="toolshed.g2.bx.psu.edu/repos/devteam/fastqc/fastqc/0.73+galaxy0">
            <tool_shed>toolshed.g2.bx.psu.edu</tool_shed>
            <repository_name>fastqc</repository_name>
            <repository_owner>devteam</repository_owner>
            <installed_changeset_revision>3d0c7bdf12f5</installed_changeset_revision>
            <id>toolshed.g2.bx.psu.edu/repos/devteam/fastqc/fastqc/0.73+galaxy0</id>
            <version>0.73+galaxy0</version>
        </tool>
    </section>
</toolbox>

```

How would I add the Section Quality Check and the tool FastQC to the `tool_conf.xml` and put it under it’s own label? Is there a way to automate the process? I have almost 200 tools already installed and keeping two files in sync is waaay to much work and prone to errors 🤔
