#!/bin/sh

#  recon1job.bash
#  
#
#  Created by Emad on 12/27/13.
#


#!/bin/bash

# enable your environment, which will use .bashrc configuration in your home directory
#BSUB -L /bin/bash

# the name of your job showing on the queue system
#BSUB -J recon1

# the queue that you will use, the example here use the queue called "normal"
# please use bqueus command to check the available queues
#BSUB -q normal


# the system output and error message output, %J will show as your jobID
#BSUB -o %J.out
#BSUB -e %J.err

#the computing core number that you will collect (Attention: each node has multiple computing cores)
#BSUB -n 1

# the following -x means the system will try to allocate the entire computing node for your job.
# It means that even if you only use one computing core, no other people can access this node once your job start running
# You only need to use this when your requires a large amount of memory
# However, it might take longer to get your job dispatched because there are always some
# other people's job in the node already, the system has to wait until the whole node is "empty".
# this example here does not use this feature by adding another "#" in front of #BSUB

##BSUB -x


#when job finish that you will get email notification
#BSUB -u emad@nmr.mgh.harvard.edu
#BSUB -N


#enter your working directory
cd /PHShome/sea31/Outputs


# Finally, Start the program
export SUBJECTS_DIR=/PHShome/sea31/Outputs
export RAW_DATA=/PHShome/sea31/RawData

subj=Allouche_Lionel

recon-all -i $RAW_DATA/$subj/T1/*0001.dcm -s $subj -all