# HG changeset patch # User bornea # Date 1447785098 18000 # Node ID 12d4f03d1231597622798b0e0159996ba1e40fc0 # Parent 2a7cd342976752760f6ee0fa2e0dc4c2126199b5 Deleted selected files diff -r 2a7cd3429767 -r 12d4f03d1231 saint_wrapper.py --- a/saint_wrapper.py Tue Nov 17 13:09:02 2015 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +0,0 @@ -import os -import sys - -inter_file = sys.argv[1] -prey_file = sys.argv[2] -bait_file = sys.argv[3] -num_of_rep = sys.argv[4] -vc_bool = sys.argv[5] -vc_num = sys.argv[6] -go_bool = sys.argv[7] -go_file = sys.argv[8] -output_file = sys.argv[9] - -def default_run(inter_file1,prey_file1,bait_file1,output_file1,num_of_rep1): - cmd = r"SAINTexpress-spc " + r"-R" + str(num_of_rep1) + " " + str(inter_file1) + " " + str(prey_file1) + " " + str(bait_file1) - os.system(cmd) - open('list.txt') - os.rename('list.txt', str(output_file1)) - -def with_L(inter_file1,prey_file1,bait_file1,output_file1,vc_num1,num_of_rep1): - cmd = r"SAINTexpress-spc "+ r"-R" + str(num_of_rep1) + " " + r"-L" + str(vc_num1) + " " + str(inter_file1) + " " + str(prey_file1) + " " + str(bait_file1) - os.system(cmd) - open('list.txt') - os.rename('list.txt', str(output_file1)) - -def external_data_no_L(inter_file1,prey_file1,bait_file1,output_file1,go_file1,num_of_rep1): - cmd = r"SAINTexpress-spc "+ r"-R" + str(num_of_rep1) + " " + str(inter_file1) + " " + str(prey_file1) + " " + str(bait_file1) + " " + str(go_file1) - os.system(cmd) - open('list.txt') - os.rename('list.txt', str(output_file1)) - -def external_data_with_L(inter_file1,prey_file1,bait_file1,output_file1,go_file1,num_of_rep1,vc_num1): - cmd = r"SAINTexpress-spc "+ r"-R" + str(num_of_rep1) + " " + r"-L" + str(vc_num1) + " " + str(inter_file1) + " " + str(prey_file1) + " " + str(bait_file1) + " " + str(go_file1) - os.system(cmd) - open('list.txt') - os.rename('list.txt', str(output_file1)) - -if (vc_bool == "true"): - if (go_bool == "false"): - with_L(inter_file, prey_file, bait_file, output_file, vc_num, num_of_rep) - elif (go_bool == "true"): - external_data_with_L(inter_file, prey_file, bait_file, output_file, go_file, num_of_rep, vc_num) -elif (vc_bool == "false"): - if (go_bool == "false"): - default_run(inter_file, prey_file, bait_file, output_file, num_of_rep) - elif (go_bool == "true"): - external_data_no_L(inter_file, prey_file, bait_file, output_file, go_file, num_of_rep) diff -r 2a7cd3429767 -r 12d4f03d1231 saint_wrapper.xml --- a/saint_wrapper.xml Tue Nov 17 13:09:02 2015 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ - - - saint_wrapper.py $inter_input $prey_input $bait_input $rep_num $vc_bool $vc_num $go_bool $go_file $output - - - - - - - - - - - - - - - saintexpress - - - - - - - - - - - - - - diff -r 2a7cd3429767 -r 12d4f03d1231 tool_dependencies.xml --- a/tool_dependencies.xml Tue Nov 17 13:09:02 2015 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ - - - - - - - git clone http://github.com/bornea/Saint_On_Galaxy.git sog - unzip SAINTexpress_v3.6.1__2015-05-03.zip - ./make -j - - $INSTALL_DIR/Saint_On_Galaxy/SAINTexpress_v3.6.1__2015-05-03/bin - - - - - - \ No newline at end of file