#!/bin/bash -ex
#SBATCH -J mkdb
#SBATCH -t 10:00
#SBATCH -c 1
#SBATCH --mem=1G
#SBATCH -o /g/arendt/npapadop/cluster/mkdb.out
#SBATCH -e /g/arendt/npapadop/cluster/mkdb.err

INPUT_PEP="$1"
OUTPUT_DIR="$2"
NAME="$3"

mkdir ${OUTPUT_DIR}
cd ${OUTPUT_DIR}

module load MMseqs2

mmseqs createdb ${INPUT_PEP} ${NAME}

module unload MMseqs2