Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # Generated with Raccoon | AutoDockVS
  4. #
  5.  
  6. #### PBS jobs parametersCPUT="24:00:00"
  7. WALLT="24:00:00"
  8. #
  9. # There should be no reason
  10. # for changing the following values
  11. NODES=1
  12. PPN=1
  13. MEM=512mb
  14.  
  15.  
  16. ### CUSTOM VARIABLES
  17. #
  18. # use the following line to set special options (e.g. specific queues)
  19. #OPT="-q MyPriorQueue"
  20. OPT=""
  21.  
  22.  
  23. # Paths for executables on the cluster
  24. # Modify them to specify custom executables to be used
  25. QSUB="qsub"
  26. AUTODOCK="autodock4"
  27.  
  28. AUTOGRID="autogrid4"
  29.  
  30. # Special path to move into before running
  31. # the screening. This is very system-specific,
  32. # so unless you're know what are you doing,
  33. # leave it as it is
  34. WORKING_PATH=`pwd`
  35.  
  36.  
  37.  
  38. ##################################################################################################
  39. ##################################################################################################
  40. ####### There should be no need to modify anything below this line ###############################
  41. ##################################################################################################
  42. ##################################################################################################
  43.  
  44.  
  45. #
  46. #
  47.  
  48. type $AUTODOCK &> /dev/null || {
  49. echo -e "nError: the file [$AUTODOCK] doesn't exist or is not executablen";
  50. echo -e "Try to specify the full path to the executable of the AutoDock binary in the script";
  51. echo -e "( i.e. AUTODOCK=/usr/bin/autodock4 )nn";
  52. echo -e " [ virtuals screening submission aborted]n"
  53. exit 1; }
  54.  
  55. type $AUTOGRID &> /dev/null || {
  56. echo -e "nError: the file [$AUTOGRID] doesn't exist or is not executablen";
  57. echo -e "Try to specify the full path to the executable of the AutoGrid binary in the script";
  58. echo -e "( i.e. AUTOGRID=/usr/bin/autogrid4 )nn";
  59. echo -e " [ virtuals screening submission aborted]n"
  60. exit 1; }
  61.  
  62. type $QSUB &> /dev/null || {
  63. echo -e "nError: the file [$QSUB] doesn't exist or is not executablen";
  64. echo -e "Try to specify the full path to the executable of the Qsub command binary in the script";
  65. echo -e "( i.e. QSUB=/usr/bin/qsub )nn";
  66. echo -e " [ virtuals screening submission aborted]n"
  67. exit 1; }
  68.  
  69. echo Starting submission...
  70. for NAME in `cat jobs_list`
  71. do
  72. cd $NAME
  73. echo "#!/bin/bash" > $NAME.job
  74. echo "cd $WORKING_PATH/$NAME" >> $NAME.job
  75. echo "$AUTOGRID -p *.gpf -l grid_out.glg" >> $NAME.job
  76. echo "$AUTODOCK -p $NAME.dpf -l $NAME.dlg" >> $NAME.job
  77. chmod +x $NAME.job
  78. echo -n "Submitting $NAME : "
  79. $QSUB $OPT -l cput=$CPUT -l nodes=1:ppn=1 -l walltime=$WALLT -l mem=$MEM $NAME.job
  80. cd ..
  81. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement