#!/bin/bash
# Job name:
#SBATCH --job-name=turchin-aa-58-200.tsv.paps
#
# Project:
#SBATCH --account=nn9106k
#
# Wall clock limit:
#SBATCH --time=12:00:00
#
# Max memory usage:
#SBATCH --mem-per-cpu=1G
# Number of tasks (cores):
#SBATCH --ntasks=6
## Set up job environment:
source /cluster/bin/jobsetup
module purge   # clear any inherited modules
set -o errexit # exit on errors
module load intelmpi.intel/5.0.2
cp /usit/abel/u1/tarakark/glottcode_nexus/turchin-aa-58-200.tsv.paps.mb $SCRATCH
cp /usit/abel/u1/tarakark/glottcode_nexus/turchin-aa-58-200.tsv.paps.nex $SCRATCH
cp -r /usit/abel/u1/tarakark/mrbayes-coal/mrbayes-3.2.6/ $SCRATCH
chkfile turchin-aa-58-200.tsv.paps.nex.run1.p turchin-aa-58-200.tsv.paps.nex.run2.p turchin-aa-58-200.tsv.paps.nex.run1.t turchin-aa-58-200.tsv.paps.nex.run2.t turchin-aa-58-200.tsv.paps.nex.con.tre turchin-aa-58-200.tsv.papslog.txt
cd $SCRATCH
mpirun -np 6 mrbayes-3.2.6/src/mb turchin-aa-58-200.tsv.paps.mb > turchin-aa-58-200.tsv.papslog.txt
