Example #1
0
def scriptFO():
    screen.clear()
    screen.border(0)
    screen.addstr(2, 2, "This is Find Orthologues")
    screen.addstr(4, 4, "Please enter a input file for Find Orthologues")
    screen.addstr(9, 4, "Please name the output file for Find Orthologues")
    screen.refresh()
    secondClass = class2()
    userInput = screen.getstr(6, 10, 60)
    userOutput = screen.getstr(11, 10, 60)
    try:
	secondClass.zoekOrthologen(userInput, userOutput)
	screen.clear()
	screen.border(0)
	screen.addstr(2, 4, "Find Orthologues succes!")
	screen.refresh()
	time.sleep(3)
    except:
        curses.flash()
	show_error("Invalid file name. Try again.")	
Example #2
0
        firstClass = class1()
        userInput = screen.getstr(6, 10, 60)
        MEMEpath = screen.getstr(11, 10, 60)
        userOutput = "GF_output"
	try:
	    screen.clear()
            screen.border(0)
            screen.addstr(2, 2, "0% complete...")
            screen.refresh()
	    time.sleep(1)
            firstClass.filterLPs(userInput, userOutput)
            screen.clear()
            screen.border(0)
            screen.addstr(2, 2, "25% complete...")
            screen.refresh()
            secondClass = class2()
            userOutput2 = "FO_output"
            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...")