# HG changeset patch # User jjohnson # Date 1608140698 0 # Node ID 6f05390deffa0adba4e5c9fd8bbdf87f7874b11a # Parent c02f59711eb62f5177eb99ed880c8ff43d8e3737 "planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/pandas_pivot_table/ commit 1ca7433aaa606c636f796c75b6cfd8a080e2d5bc-dirty" diff -r c02f59711eb6 -r 6f05390deffa pandas_pivot_table.py --- a/pandas_pivot_table.py Wed Dec 16 16:13:51 2020 +0000 +++ b/pandas_pivot_table.py Wed Dec 16 17:44:58 2020 +0000 @@ -58,6 +58,11 @@ default=None, help='fill value for missing values' ) + p.add_argument( + '-f', '--float_format', + default='%0.6f', + help='' + ) args = p.parse_args() def getValueType(val): @@ -128,7 +133,10 @@ fill_value=fill_value) pdf_cols = ['_'.join(reversed(p)) if isinstance(p, tuple) else p for p in pdf.columns.tolist()] - pdf.to_csv(args.output, sep='\t', float_format='%0.6f', header=pdf_cols) + pdf.to_csv(args.output, + sep='\t', + float_format=args.float_format, + header=pdf_cols) if __name__ == "__main__": diff -r c02f59711eb6 -r 6f05390deffa pandas_pivot_table.xml --- a/pandas_pivot_table.xml Wed Dec 16 16:13:51 2020 +0000 +++ b/pandas_pivot_table.xml Wed Dec 16 17:44:58 2020 +0000 @@ -20,6 +20,12 @@ --columns '$pvt_columns' --values '$pvt_values' --aggfunc='$aggfunc' + #if $fill_value + --fill_value '$fill_value' + #end if + #if $float_format + --float_format '$float_format' + #end if --input '$input' --output '$output' ]]> @@ -58,9 +64,10 @@