process_array.sh 797 B

1234567891011121314151617181920212223242526272829303132
  1. #$ -cwd
  2. #$ -A weizhe.li
  3. #$ -l h_rt=002:00:00
  4. #$ -S /bin/sh
  5. #$ -j y
  6. #$ -pe thread 7
  7. # $ -N process_array comes from process_main.sh
  8. # $QSUB -pe thread -t $ST-$EN -o $SYSOUT_DIR $ARRAY_SCRIPT $SPLIT_BASE_DIR $HDF5_FILE
  9. echo "Running $SGE_TASK_ID of job $JOB_ID on $HOSTNAME"
  10. BASENAME=$(( $SGE_TASK_ID - $SGE_TASK_FIRST + 1 )) # data set suffix
  11. source /projects/mikem/UserSupport/weizhe.li/split_wsi/set_env.sh
  12. # Get params
  13. # source ./config.txt
  14. source $5
  15. DIR=$1
  16. HDF5_FILE=$2 # one HDF5 file may contain many datasets
  17. HEATMAP_DIR=$3
  18. export LOG_DIR=$4
  19. export PYTHONUNBUFFERED=TRUE
  20. export HDF5_USE_FILE_LOCKING=FALSE
  21. # PROG=process_images_grp.py
  22. PROG=process_images_grp_normalization_wli.py
  23. time python $PROG $DIR $HDF5_FILE $BASENAME $HEATMAP_DIR