#!/bin/bash #$ -cwd # #$ -V # #$ -pe mpi 160 # Request 160 cores in a parallel environment (PE) named "mpi". # Ask sys admin if an appropriate PE is available for MPI programs. # Configure MPI as necessary. #. /foo/bar/mpivars.sh # Configuration for the pairwise alignment stage: export MAFFT_N_THREADS_PER_PROCESS=1 export MAFFT_MPIRUN="mpirun -n 160" # 1 thread per process x 160 processes = 160 threads # Add environment-specific options, such as -perhost 16 # Configuration for progressive alignment stage: /somewhere/bin/mafft --mpi --large --globalpair --threadtb 1 input > output # 1 thread run on one of the machines assigned by scheduler. # --globalpair can be replaced by --genafpair, --localpair, --oldgenafpair