@@ -0,0 +1,685 @@
+import glob%0Aimport os%0Aimport shutil%0Aimport sys%0A%0Aample_root=%22/home/jmht/ample-dev1%22%0Asys.path.insert(0,os.path.join(ample_root,%22python%22))%0A%0Aimport clusterize%0A%0Apdb_codes=%5B%221MIX%22, %221P9G%22, %221UCS%22, %221XKR%22, %222BL2%22, %222EFR%22, %222FM9%22, %222JKU%22, %222QIH%22, %222QSK%22, %222UUI%22, %222XFD%22, %222YKT%22, %223CI9%22, %223CVF%22, %223GD8%22, %223GHF%22, %223HAP%22, %223HFE%22%5D%0A#pdb_codes=%5B%221MIX%22%5D%0Aroot=%22/data2/jmht/testset/thresh%22%0A%0Afor pdb in pdb_codes:%0A    mrbd=os.path.join(root,pdb,%22AMPLE_0%22,%22MRBUMP%22)%0A    os.chdir(mrbd)%0A    jobsFile = os.path.abspath(os.path.join(mrbd,%22array.jobs%22))%0A    #arrayScript = os.path.abspath(os.path.join(mrbd,%22array.script%22))%0A    if os.path.isfile(jobsFile): clusterize.ClusterRun().cleanUpArrayJob(jobsFile) %0A%0A

CLean up crashed array jobs