<aside> ⛔ This exercise assumes the following:

</aside>

Authors

These exercises where authored and tested by Povilas Matusevicius and Kasper Thystrup Karstensen

Introduction

The goal of this practical is to help building a pipeline for handling bacterial data from raw reads to sequence type determination. The practical is build to hold you in the hand, while guiding you throughout the process.

<aside> ⚠️ Therefore it is recommended to attempt the Intermediate exercise and only consult this exercise to guide your progress through the intermediate exercises.

</aside>

Prerequisites

For this exercise we will use the BTG_QC, BTG_spades_4.0.0, BTG_alignmentenvironments. In addition, we will use the following files and file paths.

Executing commands from different environments

A drawback of using conda/mamba environments, is that not all software can run in the same environment. When running bash scripts, the shell doesn’t always know how to invoke the conda/mamba commands. With micromamba though, there is a hack that can be utilized: Micromamba allow for cherry picking commands from different environments using micromamba run. This way environments are not required to be loaded. So in order to run e.g. MLST from within any (or no) environment, the following command can be used in the bash script.

micromamba run -n BTG_alignment mlst

Layout

Commands are highlighted with a special font and changing colors. It is generally assumed that brackets [like_this_one], are contents which you must fill out with the correct information.

E.g. in echo [replace_me], if the brackets are to be replaced with Hello_kitty, then the final product becomes echo Hello_kitty.

<aside> 🎓 Important note: During the exercises, color coding of the bracket will be used to help you distinguish input and output. Make sure to memorize the following:

Bacterial pipeline

In the exercise, your task is to write a script called “bacterial_assembly.sh” that will provide a QC report, trim raw reads, generate an assembly for sample, and run mlst on “Ec016” it.