cambiotraining / awd-pathogen-bioinformatics

Materials for "Introduction to Cholera Genomics" course
https://cambiotraining.github.io/awd-pathogen-bioinformatics
Other
1 stars 1 forks source link

Tests on Windows #4

Closed tavareshugo closed 9 months ago

tavareshugo commented 11 months ago

WSL2

Multipass

VirtualBox

tavareshugo commented 11 months ago

Setup instructions draft:

  1. Update and install system packages
sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y
sudo apt install -y git
sudo apt install -y default-jre
  1. Install Mamba
wget "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh"
bash Mambaforge-$(uname)-$(uname -m).sh -b
rm Mambaforge-$(uname)-$(uname -m).sh
export PATH="$HOME/mambaforge/bin/:$PATH"
mamba init
conda config --add channels defaults; conda config --add channels bioconda; conda config --add channels conda-forge

Restart the terminal: you should see (base) at the start of your terminal.

  1. Install the software environment for the workshop
# avoid timeout errors
conda config --set remote_read_timeout_secs 500
# create environment and install software
mamba create --name awd
mamba install --name awd multiqc checkm-genome busco mlst nextflow panaroo

# install mash separately due to version conflict with conda recipe
# this is unconventional and not best practice... but it works for now
wget https://github.com/marbl/Mash/releases/download/v2.3/mash-Linux64-v2.3.tar
tar -xf mash-Linux64-v2.3.tar
mv mash-Linux64-v2.3/mash $(conda info --base)/envs/awd/bin/
rm -r mash-Linux64-v2.3*
  1. Install singularity
# singularity system dependencies
sudo apt install -y runc uidmap
# download deb installer
codename=$(lsb_release -cs)
wget -O singularity.deb https://github.com/sylabs/singularity/releases/download/v3.11.4/singularity-ce_3.11.4-${codename}_amd64.deb
# install and clean
sudo dpkg -i singularity.deb
rm singularity.deb
  1. Nextflow setup

TODO: add some code to generate config file.


Other things:

tavareshugo commented 11 months ago

At the moment there's a conflict between versions for the conda environment:

~Might need to install these things in separate environments?~
(one way is to download the dependency-free binary from their repo)