Open peterjc opened 7 years ago
As of https://github.com/galaxyproject/galaxy/blob/71cea6604d43c5fe6215f5656462ba6c1af69bb6/tools/filters/catWrapper.xml this uses:
<command interpreter="python">
catWrapper.py
$out_file1
$input1
#for $q in $queries
${q.input2}
#end for
</command>
<inputs>
<param name="input1" type="data" label="Concatenate Dataset"/>
<repeat name="queries" title="Dataset">
<param name="input2" type="data" label="Select" />
</repeat>
</inputs>
Does this mean it is related to #697, and should be re-written as:
<command interpreter="python">
catWrapper.py
$out_file1
#for $q in $queries
${q.input2}
#end for
</command>
<inputs>
<repeat name="queries" min="1" title="Dataset(s)">
<param name="input2" type="data" label="Select" />
</repeat>
</inputs>
or, better use a multiple="true"
entry?
<command interpreter="python">
catWrapper.py
$out_file1
#for $f in $input1
'$f'
#end for
</command>
<inputs>
<param name="input1" type="data" multiple="true" label="Concatenate Dataset(s)"/>
</inputs>
I'd recommend using @bgruening's text processing tools - see https://github.com/bgruening/galaxytools/blob/master/tools/text_processing/text_processing/cat.xml. People are unsure how to proceed with this - but I think people I've talked to generally prefer these text processing tools and would prefer to encourage use of them over improving the tools shipped with Galaxy.
I'd agree with that if we deprecate and hide the bundled cat1
tool since it is obsolete and recommend @bgruening tool instead? Otherwise it remains a default installed tool, highly visible but of limited use.
The two cat tools behave differently even with single dataset inputs. Have we decided which to keep?
For many of these updated text mani tools, including these two - they do not bundle into older version vs newer one ("Version" is reported but older versions not listed for either). Probably due to tool provenance details. Not sure if that is an issue or not or if one could be mapped to the other another way - for those that have the older one in a workflow.
We could explicitly link to Bjoern's concat from the help section of the tool.
First to create a simple collection dataset:
OK, we now have a simple collection dataset containing three text files.
Actual result:
New collection containing output of three separate concatenations each on one file only. i.e. A copy of the input collection.
Desired result:
New single text file (not a collection) containing concatenation of the "Alpha", "Beta" and "Gamma" snippets (in that order).