changeset 3:17e3b698dd52 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/datamash commit 206ac70388ea11b168366f1e30bb44157e371c6e"
author iuc
date Sun, 10 Apr 2022 11:40:57 +0000
parents 0f1724dd59d2
children f198773344e4
files datamash-reverse.xml macros.xml test-data/group_compute_input.csv
diffstat 3 files changed, 101 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/datamash-reverse.xml	Fri Sep 07 10:58:05 2018 -0400
+++ b/datamash-reverse.xml	Sun Apr 10 11:40:57 2022 +0000
@@ -1,12 +1,15 @@
-<?xml version="1.0"?>
-<tool id="datamash_reverse" name="Reverse" version="@WRAPPER_VERSION@">
+<tool id="datamash_reverse" name="Reverse" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
     <description>columns in a tabular file</description>
     <macros>
         <import>macros.xml</import>
     </macros>
     <expand macro="requirements" />
     <expand macro="stdio" />
-    <command><![CDATA[datamash reverse < $in_file > $out_file]]></command>
+    <command><![CDATA[
+        datamash reverse 
+        @FIELD_SEPARATOR@ 
+        < $in_file > $out_file
+    ]]></command>
     <expand macro="inputs_outputs" />
     <tests>
         <test>
@@ -18,8 +21,6 @@
 <![CDATA[
 @HELP_HEADER@
 
------
-
 **Syntax**
 
 This tools reverses the order of columns in a tabular input file.
--- a/macros.xml	Fri Sep 07 10:58:05 2018 -0400
+++ b/macros.xml	Sun Apr 10 11:40:57 2022 +0000
@@ -1,19 +1,24 @@
-<?xml version="1.0"?>
 <macros>
-    <token name="@WRAPPER_VERSION@">1.1.0</token>
+    <token name="@TOOL_VERSION@">1.1.0</token>
+    <token name="@VERSION_SUFFIX@">1</token>
+    <token name="@PROFILE@">21.01</token>
     <xml name="inputs_outputs">
         <inputs>
-            <param format="tabular" help="" label="Input tabular dataset" name="in_file" type="data" />
+            <param name="in_file" type="data" format="tabular,csv,tsv" label="Input tabular dataset" help="" />
             <yield />
         </inputs>
         <outputs>
-            <data format="tabular" name="out_file" label="${tool.name} on ${on_string}" />
+            <data name="out_file" format_source="in_file" label="${tool.name} on ${on_string}" />
         </outputs>
     </xml>
-
+    <token name="@FIELD_SEPARATOR@"><![CDATA[
+        #if $in_file.ext == 'csv'
+            -t ,
+        #end if
+    ]]></token>
     <xml name="requirements">
         <requirements>
-            <requirement type="package" version="@WRAPPER_VERSION@">datamash</requirement>
+            <requirement type="package" version="@TOOL_VERSION@">datamash</requirement>
         </requirements>
     </xml>
     <xml name="stdio">
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/group_compute_input.csv	Sun Apr 10 11:40:57 2022 +0000
@@ -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