Repository 'datamash_reverse'
hg clone https://toolshed.g2.bx.psu.edu/repos/iuc/datamash_reverse

Changeset 0:24b9a80cac40 (2015-10-28)
Next changeset 1:3234b2813413 (2016-09-21)
Commit message:
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/datamash commit 8a7a779896ce1b9b296557a2c31bd93f5fbb5462
added:
datamash-reverse.xml
macros.xml
test-data/datamash_reverse_input.txt
test-data/datamash_reverse_output.txt
test-data/datamash_transpose_input.txt
test-data/datamash_transpose_output.txt
test-data/group_compute_input.txt
test-data/group_compute_output.txt
tool_dependencies.xml
b
diff -r 000000000000 -r 24b9a80cac40 datamash-reverse.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/datamash-reverse.xml Wed Oct 28 12:46:25 2015 -0400
[
@@ -0,0 +1,48 @@
+<?xml version="1.0"?>
+<tool id="datamash_reverse" name="Reverse" version="1.0.6">
+    <description>columns in a tabular file</description>
+    <macros>
+        <import>macros.xml</import>
+    </macros>
+    <expand macro="requirements" />
+    <expand macro="stdio" />
+    <command><![CDATA[datamash -W reverse < $in_file > $out_file]]></command>
+    <expand macro="inputs_outputs" />
+    <tests>
+        <test>
+            <param name="in_file" value="datamash_reverse_input.txt" />
+            <output file="datamash_reverse_output.txt" name="out_file" />
+        </test>
+    </tests>
+    <help>
+<![CDATA[
+@HELP_HEADER@
+
+-----
+
+**Syntax**
+
+This tools reverses the order of columns in a tabular input file.
+
+-----
+
+**Example**
+
+Input file::
+
+    Genes  Sample  Counts
+    NOX1   A1      514
+    DcP    A2      542
+    HH     B3      490
+
+Output file::
+
+    Counts  Sample  Genes
+    514     A1      NOX1
+    542     A2      DcP
+    490     B3      HH
+
+@HELP_FOOTER@
+]]>
+    </help>
+</tool>
b
diff -r 000000000000 -r 24b9a80cac40 macros.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/macros.xml Wed Oct 28 12:46:25 2015 -0400
b
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<macros>
+    <xml name="inputs_outputs">
+        <inputs>
+            <param format="tabular" help="" label="Input tabular dataset" name="in_file" type="data" />
+            <yield />
+        </inputs>
+        <outputs>
+            <data format="tabular" name="out_file" label="${tool.name} on ${on_string}" />
+        </outputs>
+    </xml>
+    <xml name="requirements">
+        <requirements>
+            <requirement type="package" version="1.0.6">datamash</requirement>
+        </requirements>
+    </xml>
+    <xml name="stdio">
+        <stdio>
+            <exit_code description="Error" level="fatal" range="1:" />
+        </stdio>
+    </xml>
+    <token name="@HELP_FOOTER@">
+-----
+
+**GNU Datamash** is a Free and Open Source Software, see more details on the Datamash_ Website.
+
+**GNU Datamash** is also available as a command-line program, see http://www.gnu.org/software/datamash/download/ .
+
+For more details about supported statistical operations, see Datamash_ website.
+
+.. _Datamash: http://www.gnu.org/software/datamash/
+    </token>
+    <token name="@HELP_HEADER@">
+.. class:: infomark
+
+**TIP:** Input data must be TAB delimited. If the desired dataset does not appear in the input list, use *Text Manipulation->Convert* to convert it to **Tabular** type.
+
+-----
+    </token>
+</macros>
\ No newline at end of file
b
diff -r 000000000000 -r 24b9a80cac40 test-data/datamash_reverse_input.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/datamash_reverse_input.txt Wed Oct 28 12:46:25 2015 -0400
b
@@ -0,0 +1,4 @@
+Genes Sample Counts
+NOX1 A1 514
+DcP A2 542
+HH B3 490
b
diff -r 000000000000 -r 24b9a80cac40 test-data/datamash_reverse_output.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/datamash_reverse_output.txt Wed Oct 28 12:46:25 2015 -0400
b
@@ -0,0 +1,4 @@
+Counts Sample Genes
+514 A1 NOX1
+542 A2 DcP
+490 B3 HH
b
diff -r 000000000000 -r 24b9a80cac40 test-data/datamash_transpose_input.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/datamash_transpose_input.txt Wed Oct 28 12:46:25 2015 -0400
b
@@ -0,0 +1,3 @@
+Genes NOX1 DcP HH
+Sample A1 A2 B3
+Counts 514 542 490
b
diff -r 000000000000 -r 24b9a80cac40 test-data/datamash_transpose_output.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/datamash_transpose_output.txt Wed Oct 28 12:46:25 2015 -0400
b
@@ -0,0 +1,4 @@
+Genes Sample Counts
+NOX1 A1 514
+DcP A2 542
+HH B3 490
b
diff -r 000000000000 -r 24b9a80cac40 test-data/group_compute_input.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/group_compute_input.txt Wed Oct 28 12:46:25 2015 -0400
b
@@ -0,0 +1,84 @@
+Name Major Score
+Ignatius Engineering 83
+Austin Life-Sciences 91
+Zackery Engineering 54
+Marques Arts 58
+Darren Business 94
+Darius Social-Sciences 51
+Thanh Engineering 53
+Joe'Quann Engineering 75
+Bryan Arts 68
+Devin Engineering 92
+Joseph Social-Sciences 61
+Joshua Life-Sciences 14
+Ja'Won Social-Sciences 37
+Tyreque Arts 74
+Sage Arts 55
+Antonio Engineering 88
+Michael Engineering 39
+Randy Social-Sciences 68
+Dilan Health-Medicine 84
+Omar Engineering 99
+Zachary Arts 80
+Faison Engineering 47
+Angel Health-Medicine 100
+Gabriel Health-Medicine 100
+John Life-Sciences 70
+Leonard Business 87
+Juan Business 79
+Jonathan Health-Medicine 100
+Christopher Life-Sciences 59
+Brandon Life-Sciences 72
+D'Angelo Health-Medicine 90
+Justin Social-Sciences 90
+Israel Health-Medicine 81
+William Arts 46
+David Social-Sciences 69
+Drake Social-Sciences 59
+Drake Social-Sciences 76
+Nathan Arts 71
+Trevon Arts 74
+Aaron Business 83
+Daniel Health-Medicine 91
+Kevin Health-Medicine 100
+Antonio Engineering 56
+Donovan Arts 75
+Kerris Business 82
+Andre Health-Medicine 72
+Dakota Business 83
+Aaron Life-Sciences 58
+Walter Arts 75
+Isaiah Arts 80
+Christian Life-Sciences 67
+Dalton Health-Medicine 100
+Jesse Social-Sciences 32
+Diego Health-Medicine 82
+Nathen Life-Sciences 46
+Anthony Life-Sciences 32
+Christian Business 88
+David Business 92
+Avery Engineering 51
+Paul Arts 63
+Derek Arts 60
+Levi Arts 76
+Lance Social-Sciences 65
+Sonny Engineering 50
+Shawn Arts 65
+Leonardo Engineering 78
+Yeng Life-Sciences 39
+Leroy Social-Sciences 74
+Gurnam Life-Sciences 66
+Fernando Arts 78
+Williams Social-Sciences 62
+Roberto Arts 65
+Teriuse Business 94
+Nathaniel Arts 88
+Chase Social-Sciences 27
+Caleb Business 87
+Tysza Business 92
+Nico Arts 59
+Manuel Social-Sciences 61
+Patrick Health-Medicine 92
+Peter Health-Medicine 86
+Allen Life-Sciences 50
+Joel Social-Sciences 72
b
diff -r 000000000000 -r 24b9a80cac40 test-data/group_compute_output.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/group_compute_output.txt Wed Oct 28 12:46:25 2015 -0400
b
@@ -0,0 +1,7 @@
+GroupBy(Major) sum(Score)
+Arts 1310
+Business 961
+Engineering 865
+Health-Medicine 1178
+Life-Sciences 664
+Social-Sciences 904
b
diff -r 000000000000 -r 24b9a80cac40 tool_dependencies.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_dependencies.xml Wed Oct 28 12:46:25 2015 -0400
b
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<tool_dependency>
+    <package name="datamash" version="1.0.6">
+        <repository changeset_revision="414953c0168d" name="package_datamash_1_0_6" owner="iuc" toolshed="https://toolshed.g2.bx.psu.edu" />
+    </package>
+</tool_dependency>