#!/bin/bash # Version: 1 # Editor: sysalex # Changes: Check for and make /tmp/install # exit when any command fails set -e # keep track of the last executed command trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG # echo an error message before exiting trap 'echo "\"${last_command}\" command filed with exit code $?."' EXIT [ ! -d "/tmp/install" ] && mkdir /tmp/install cd /tmp/install wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh chmod 700 Miniconda3-latest-Linux-x86_64.sh ./Miniconda3-latest-Linux-x86_64.sh source $(conda info --base)/etc/profile.d/conda.sh conda create -n signal -c conda-forge -c bioconda -c defaults snakemake pandas conda activate signal