def scriptMEME(): screen.clear() screen.border(0) screen.addstr(2, 2, "This is MEME") screen.addstr(4, 4, "Please enter an input file for MEME") screen.addstr(8, 4, "Please type in path to MEME's bin folder") screen.addstr(9, 4, "Example: /username/MEME/bin/") screen.addstr(13, 4, "Please fill in all the parameters for MEME") screen.addstr(14, 4, "Example: -dna -nmotifs 3 -minw 20 -maxw 50 -mod zoops -minsites 150 -maxsites 745") screen.refresh() fourthClass = class4() userInput = screen.getstr(6, 10, 60) MEMEpath = screen.getstr(11, 10, 60) Parameters = screen.getstr(16, 10, 120) try: fourthClass.callMEME(userInput, MEMEpath, Parameters) screen.clear() screen.border(0) screen.addstr(2, 4, "MEME succes!") screen.refresh() time.sleep(3) except: curses.flash() show_error("Invalid file name. Try again.")
secondClass.zoekOrthologen(userOutput+".txt", userOutput2) screen.clear() screen.border(0) screen.addstr(2, 2, "50% complete...") screen.refresh() thirdClass = class3() userOutput3 = "MS_output_WCFS1_glc1" userOutput4 = "MS_output_NC8_glc1" userOutput5 = "MS_output_WCFS1_glc2" userOutput6 = "MS_output_NC8_glc2" thirdClass.motifSearch(userOutput2+".txt", userOutput3, userOutput4, userOutput5, userOutput6) screen.clear() screen.border(0) screen.addstr(2, 2, "75% complete...") screen.refresh() fourthClass = class4() Parameters = "-dna -nmotifs 1 -minw 20 -maxw 50 -mod zoops -minsites 150 -maxsites 745" fourthClass.callMEME(userOutput3+".txt", MEMEpath, Parameters) fourthClass.callMEME(userOutput4+".txt", MEMEpath, Parameters) fourthClass.callMEME(userOutput5+".txt", MEMEpath, Parameters) fourthClass.callMEME(userOutput6+".txt", MEMEpath, Parameters) screen.clear() screen.border(0) screen.addstr(2, 2, "100% complete!") screen.addstr(4, 4, "Thank you for using the superscript!") screen.refresh() time.sleep(3) except: curses.flash() show_error("Invalid file name. Try again.")