heatmap_arr.sh 670 B

1234567891011121314151617181920212223242526272829303132
  1. #$ -cwd
  2. #$ -A weizhe.li
  3. #$ -l h_rt=048:00:00
  4. #$ -l h_vmem=10G
  5. #$ -S /bin/sh
  6. #$ -j y
  7. #$ -N heatmap_arr
  8. # $listfile $Folder_Prediction_Results $Folder_dimension $index_path
  9. echo "Running task $SGE_TASK_ID of job $JOB_ID on $HOSTNAME"
  10. source /projects/mikem/UserSupport/weizhe.li/split_wsi/set_env.sh
  11. listfile=$1
  12. export dir=$(awk "NR==$SGE_TASK_ID" $listfile)
  13. export Folder_Prediction_Results=$2
  14. export Folder_dimension=$3
  15. export index_path=$4
  16. export Folder_Heatmap="$Folder_Prediction_Results"/"$dir"/heatmap
  17. mkdir -p $Folder_Heatmap
  18. # debug
  19. echo "Folder_dimension = $Folder_dimension"
  20. echo "index_path = $index_path"
  21. PROG=heatmap_assembly.py
  22. time python $PROG