This has worked for me:
#!/bin/bash
#MOAB -l nodes=8
#MOAB -j oe
#MOAB -m abe
#MOAB -N MRBAYES-OPENMPI
#MOAB -l walltime=4:00:00
source /usr/local/profile.d/openmpi-gnu.sh
mpirun /opt/Bio/mpimrbayes/mb_p $HOME/MOAB_DEMO/MrBayesDemo/mrbayes.nxs
The mrbayes.nxs file contains:
begin mrbayes;
set autoclose=yes nowarn=yes;
execute /panfs/storage.local/scs/home/jwilgenb/MOAB_DEMO/MrBayesDemo/alignment80_453.nxs;
prset Aamodelpr=fixed(wag);
mcmc ngen=10000000000 nruns=4 nchains=8;
end;

HPC Community