Repository 'escape_excel'
hg clone https://toolshed.g2.bx.psu.edu/repos/pstew/escape_excel

Changeset 2:482c23a5abfe (2017-02-17)
Previous changeset 1:7726adcf91c6 (2017-02-17)
Commit message:
Uploaded Python wrapper
added:
escape_excel_wrapper.py
b
diff -r 7726adcf91c6 -r 482c23a5abfe escape_excel_wrapper.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/escape_excel_wrapper.py Fri Feb 17 16:38:30 2017 -0500
[
@@ -0,0 +1,23 @@
+import os 
+import sys
+
+paranoid = sys.argv[1]
+escape_dates = sys.argv[2]
+escape_scinot = sys.argv[3]
+escape_leadzero = sys.argv[4]
+input_file = sys.argv[5]
+output_file = sys.argv[6]
+
+cmd = 'perl /home/bornea/galaxy-apostl-docker/tools/escapeExcel/escape_excel.pl'
+if paranoid == 'TRUE':
+ cmd = cmd + ' --paranoid'
+if escape_dates == 'TRUE':
+ cmd = cmd + ' --no-dates'
+if escape_scinot == 'TRUE':
+ cmd = cmd + ' --no-sci'
+if escape_leadzero== 'TRUE':
+ cmd = cmd + ' --no-zeroes'
+
+cmd = cmd + ' ' + input_file + ' ' + output_file
+
+os.system(cmd)