name: inverse layout: true class: center, middle, inverse
--- # Installing Tools into Galaxy --- # Galaxy Vocabulary * `tool` - XML file that describes to Galaxy how the underlying software works. * `repository` - Versioned code archive in Tool Shed containing Galaxy tool(s). --- # Ways to add tools You can add tools to Galaxy either * Manually - Trivial for trivial tools and useful for tool development. * Using Tool Shed * Through admin UI in Galaxy * Using scripts --- # How to add tools manually - By default Galaxy loads all tools in `tool_conf.xml.sample` into tool panel. - To add local tools you need: - Make a copy `$ cp tool_conf.xml.sample tool_conf.xml`. - Add your tool entries to the `tool_conf.xml`. - Refresh the site --- # How to install a tool from Tool Shed * Be an admin. * Find the repository you want to install. * (Connect Your Galaxy to the Tool Shed.) * From Galaxy's admin UI find the repo in the connected TS. * Install the repo into Galaxy. .footnote[Step by step tutorial with screenshots [on wiki](https://galaxyproject.org/admin/tools/add-tool-from-toolshed-tutorial/)] --- # Installation options * Select/create section for the tool. * If dependencies are needed you can select whether to install using TS packages or Conda. * More about dependency resolution is covered in a separate deck. --- # What happened? * Repository was downloaded. * If needed Galaxy downloaded and compiled the needed dependencies. * Galaxy created an entry for the tool in the DB. * Galaxy added the tool to one of the tool configs (`shed_tool_conf.xml`). --- # Example config entry one entry in `shed_tool_conf.xml` ```xml <section id="filter" name="Filter and Sort" version=""> <tool file="testtoolshed.g2.bx.psu.edu/repos/devteam/bamtools_filter/23a1c1f66b47/bamtools_filter/bamtools-filter.xml" guid="testtoolshed.g2.bx.psu.edu/repos/devteam/bamtools_filter/bamFilter/0.0.1"> <tool_shed>testtoolshed.g2.bx.psu.edu</tool_shed> <repository_name>bamtools_filter</repository_name> <repository_owner>devteam</repository_owner> <installed_changeset_revision>23a1c1f66b47</installed_changeset_revision> <id>testtoolshed.g2.bx.psu.edu/repos/devteam/bamtools_filter/bamFilter/0.0.1</id> <version>0.0.1</version> </tool> </section> ``` --- # Example config entry one entry in `integrated_tool_panel.xml` ```xml <section id="filter" name="Filter and Sort" version=""> <tool id="testtoolshed.g2.bx.psu.edu/repos/devteam/bamtools_filter/bamFilter/0.0.1" /> ``` --- # Suites - more repos in one * To install multiple repositories some authors offer suites. * Suite is a single repository that 'depends' on many other. * If you install the suite all 'dependency repositories' will be installed too. --- # Toolpanel management * How the toolpanel looks like is decided in a file called `integrated_tool_panel.xml`. * By default it resides in Galaxy's root folder. * If missing it is generated from all other tool config files during startup. * Modify it if you want to reorder tools or move section. --- # Toolpanel search configuration Tool panel search is done on pre-built index. However you can tweak toolpanel searching by configuring the boosts in `galaxy.yml`. ``` tool_name_boost: 9 tool_section_boost: 3 tool_description_boost: 2 tool_label_boost: 1 tool_stub_boost: 5 tool_help_boost: 0.5 ``` You can also manipulate the searchlimit with `tool_search_limit: 20` which will display more/less results of the search. --- # Dependency resolvers * We aim to make Galaxy resolver-independent. * What resolver is going to be used for the tool dependency is determined at runtime and prioritised in `config/dependency_resolvers_conf.xml`. ```xml <dependency_resolvers> <tool_shed_packages /> <galaxy_packages /> <conda /> <galaxy_packages versionless="true" /> <conda versionless="true" /> </dependency_resolvers> ``` --- # Tool management with Ephemeris * usegalaxy.eu example https://github.com/usegalaxy-eu/usegalaxy-eu-tools --- ## Thank you! This material is the result of a collaborative work. Thanks the [Galaxy Training Network](https://wiki.galaxyproject.org/Teach/GTN) and all the contributors (Martin Čech, Marius van den Beek) !
.footnote[Found a typo? Something is wrong in this tutorial?
Edit it on [GitHub](https://github.com/galaxyproject/training-material/tree/master/topics/admin/tutorials/tool-install/slides.html)]