0
|
1 <tool id="escape_excel" name="Escape Excel" version="0.1.0">
|
|
2 <description>Protect files from auto-conversion in Excel</description>
|
|
3 <command interpreter="python">
|
|
4 escape_excel_wrapper.py $paranoid $escape_dates $escape_scinot $escape_leadzero $input $output
|
|
5 </command>
|
|
6 <inputs>
|
|
7 <param name="input" format="txt" type="data" label="Source file"/>
|
|
8 <param name="paranoid" type="boolean" truevalue="TRUE" falsevalue="FALSE" label="Enable Paranoid Mode" />
|
|
9 <param name="escape_dates" type="boolean" truevalue="TRUE" falsevalue="FALSE" label="Disable escaping of dates" />
|
|
10 <param name="escape_scinot" type="boolean" truevalue="TRUE" falsevalue="FALSE" label="Disable escaping of scientific notation" />
|
|
11 <param name="escape_leadzero" type="boolean" truevalue="TRUE" falsevalue="FALSE" label="Disable escaping of leading zeros" />
|
|
12 </inputs>
|
|
13 <outputs>
|
|
14 <data format="tabular" name="output" />
|
|
15 </outputs>
|
|
16 <help>
|
|
17
|
|
18 **Enable Paranoid Mode**: Escape all non-numeric text. This option is not recommended as Excel can take a long time to import text files where most fields are escaped.
|
|
19
|
|
20 **Disable escaping of dates**: Do not escape text that looks like dates.
|
|
21
|
|
22 **Disable escaping of scientific notation**: Do not escape integers represented by scientific notation with >=2 integer digits before the exponent. Do not escape numbers with >11 integer digits.
|
|
23
|
|
24 **Disable escaping of leading zeroes**: Do not escape leading zeroes (ie. 012345).
|
|
25
|
|
26 Please note the input file must be tab-delimited. Fields will be stripped of existing ="" escapes, enclosing "", leading ", and leading/trailing spaces, as they may all cause problems.
|
|
27
|
|
28 Defaults to escaping most Excel mis-imported fields. Escapes a few extra date-like formats that Excel does not consider dates. Please send unhandled mis-imported field examples (other than gene symbols with 1-digit scientific notation, such as 2e4) to Eric.Welsh@moffitt.org.
|
|
29
|
|
30 Copy / Paste Values in Excel, after importing, to de-escape back into text.
|
|
31 </help>
|
|
32
|
|
33 </tool>
|