Mercurial > repos > pstew > escape_excel
changeset 2:482c23a5abfe draft default tip
Uploaded Python wrapper
author | pstew |
---|---|
date | Fri, 17 Feb 2017 16:38:30 -0500 |
parents | 7726adcf91c6 |
children | |
files | escape_excel_wrapper.py |
diffstat | 1 files changed, 23 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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)