comparison saint_wrapper.py @ 34:d525ea266d8a draft

Uploaded
author bornea
date Thu, 28 Jan 2016 16:41:02 -0500
parents bec1c735fe96
children 409b4e31c3d1
comparison
equal deleted inserted replaced
33:bec1c735fe96 34:d525ea266d8a
39 ins_path = sys.argv[10] 39 ins_path = sys.argv[10]
40 40
41 41
42 def first_run_check(): 42 def first_run_check():
43 dirs_list = [] 43 dirs_list = []
44 for (dirpath, dirnames, filename) in os.walk(ins_path): 44 for (dirpath, dirnames, filename) in os.walk(str(ins_path)):
45 dirs_list.extend(dirnames) 45 dirs_list.extend(dirnames)
46 break 46 break
47 if r"SAINTexpress_v3.6.1__2015-05-03" in dirs_list: 47 if r"SAINTexpress_v3.6.1__2015-05-03" in dirs_list:
48 pass 48 pass
49 else: 49 else:
50 cmd = r"unzip SAINTexpress_v3.6.1__2015-05-03.zip" 50 cmd = r"unzip SAINTexpress_v3.6.1__2015-05-03.zip"
51 os.system(cmd) 51 os.system(cmd)
52 os.chdir("./SAINTexpress_v3.6.1__2015-05-03") 52 os.chdir(str(ins_path) + "/SAINTexpress_v3.6.1__2015-05-03")
53 cmd1 = r"make -j" 53 cmd1 = r"make -j"
54 os.system(cmd1) 54 os.system(cmd1)
55 55
56 56
57 def default_run(inter_file1, prey_file1, bait_file1, output_file1, num_of_rep1): 57 def default_run(inter_file1, prey_file1, bait_file1, output_file1, num_of_rep1):