# HG changeset patch # User devteam # Date 1540503065 14400 # Node ID 35937a6b04fbe88b092dd458e67a849cedeb14ef # Parent 292c605c2dc78244c05b5931ac1a55d0f90e309f planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d diff -r 292c605c2dc7 -r 35937a6b04fb column_maker.xml --- a/column_maker.xml Fri Dec 18 18:52:53 2015 -0500 +++ b/column_maker.xml Thu Oct 25 17:31:05 2018 -0400 @@ -1,40 +1,79 @@ - - an expression on every row - - column_maker.py $input $out_file1 "$cond" $round ${input.metadata.columns} "${input.metadata.column_types}" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + an expression on every row + + python + sed + + header && + sed '1,1d' '$input' > data && + #else: + touch header && + ln -s '$input' data && + #end if + + python '$__tool_directory__/column_maker.py' + data column_maker_output + "$cond" + $round + ${input.metadata.columns} + "${input.metadata.column_types}" && + cat header column_maker_output > '$out_file1' + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + .. class:: infomark @@ -63,7 +102,7 @@ chr1 151077881 151077918 2 200 - 400.0 chr1 151081985 151082078 3 500 + 1500.0 - + if, at the same time, "Round result?" is set to **YES** results will look like this:: chr1 151077881 151077918 2 200 - 400 @@ -90,5 +129,6 @@ round | sorted | sqrt | str | sum | type | unichr | unicode | - + + diff -r 292c605c2dc7 -r 35937a6b04fb test-data/1.header.tsv --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/1.header.tsv Thu Oct 25 17:31:05 2018 -0400 @@ -0,0 +1,6 @@ +chromosome start end value1 value2 value3 value4 value5 +chr1 4348187 4348589 3.70 4.90 2.55 0.24 0.46 +chr1 4488177 4488442 4.03 5.77 1.92 -0.67 0.81 +chr1 4774091 4774440 8.07 8.33 7.82 0.85 -0.40 +chr1 4800122 4800409 6.40 7.35 5.44 1.19 -0.42 +chr1 4878925 4879277 2.18 0.28 4.93 -0.96 1.24 diff -r 292c605c2dc7 -r 35937a6b04fb test-data/column_maker_out2.header.tsv --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/column_maker_out2.header.tsv Thu Oct 25 17:31:05 2018 -0400 @@ -0,0 +1,6 @@ +chromosome start end value1 value2 value3 value4 value5 value1_again +chr1 4348187 4348589 3.70 4.90 2.55 0.24 0.46 3.7 +chr1 4488177 4488442 4.03 5.77 1.92 -0.67 0.81 4.03 +chr1 4774091 4774440 8.07 8.33 7.82 0.85 -0.40 8.07 +chr1 4800122 4800409 6.40 7.35 5.44 1.19 -0.42 6.4 +chr1 4878925 4879277 2.18 0.28 4.93 -0.96 1.24 2.18