#! /bin/sh #SLURM -N 1 #SLURM -o meme.out set -x ulimit -c unlimited ORIGDIR=`pwd` PID=$$ export PID TMPDIR=/scratch/$USER/$PID export TMPDIR mkdir -p $TMPDIR cd $TMPDIR # # Copy: $ORIGDIR/seq.pir # to: seq.pir # cp $ORIGDIR/seq.pir seq.pir # srun /biomed/bin/meme seq.pir -protein -mod tcm -nmotifs 7 > carp_r_5_meme.out # # Copy: carp_r_5_meme.out # to: $ORIGDIR/carp_r_5_meme.out # cp carp_r_5_meme.out \ $ORIGDIR/carp_r_5_meme.out # # Check copy of carp_r_5_meme.out # If not, then write the present directory into # the cpr file to help find the output files. # if [ $? -eq 0 ] then echo " " echo "Successfully copied carp_r_5_meme.out" echo " " else test -f carp_r_5_meme.out if [ $? -eq 0 ] then echo "PROBLEM IN COPY OF carp_r_5_meme.out" pwd far mkdir $PID far store carp_r_5_meme.out $PID/carp_r_5_meme.out else echo "The file carp_r_5_meme.out does not exist." fi echo " " fi # cd $ORIGDIR /bin/rm -rf $TMPDIR