# Load a properties file if passed in args if len(sys.argv) > 1: propsFile = sys.argv[1] p.LoadFile(propsFile) else: if not p.show_load_dialog(): print 'Plate Viewer requires a properties file. Exiting.' # necessary in case other modal dialogs are up wx.GetApp().Exit() sys.exit() # p.LoadFile('../properties/2009_02_19_MijungKwon_Centrosomes.properties') # p.LoadFile('../properties/Gilliland_LeukemiaScreens_Validation.properties') pmb = PlateViewer(None) pmb.Show() app.MainLoop() # # Kill the Java VM # try: from bioformats import jutil jutil.kill_vm() except: import traceback traceback.print_exc() print "Caught exception while killing VM"
results_table = raw_input('Results table name (return for none): ') logging.info('Loading properties file...') p = Properties.getInstance() p.LoadFile(props_file) logging.info('Loading training set...') ts = TrainingSet(p) ts.Load(ts_file) score(p, ts, nRules, filter_name, group, show_results=True, results_table=results_table, overwrite=False) app.MainLoop() # # Kill the Java VM # try: from bioformats import jutil jutil.kill_vm() except: import traceback traceback.print_exc() print "Caught exception while killing VM"