<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

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.

Setting up parameters

  1. Navigate to the Day8_pipelines folder in BTG directory
  2. Make a script file called bacterial_assembly.sh and open it.

<aside> 💡 If you use nano to make the file, you don’t have to open it afterwards!

</aside>