【求助】关于XML的一些问题
xml吧
全部回复
仅看楼主
level 1
沐小卡co 楼主
我想要将Cat功能改成Tac的功能,现在这个已经可以将输入的内容倒叙输出了,但是现在被要求实现不同的dataset可以选择是什么都不带,还是-b,-r,和-s的功能。我的想法是应该有那种type="boolean"去选是带哪种参数,也有type="data"去传递要输入的--separator=STRING,但是我个人还是不太清楚这个怎么改比较合适,就希望有人能帮忙修改或者提议下。谢谢。
<tool id="tac1" name="tac datasets">
<description>tail-to-head</description>
<command>
<![CDATA[
tac
-b
-r
$input1
> $out_file1
]]>
</command>
<inputs>
<param name="input1" type="data" label="Tac Dataset"/>
<repeat name="queries" title="Dataset">
<param name="input2" type="data" label="Select" />
</repeat>
</inputs>
<outputs>
<data name="out_file1" format="input" metadata_source="input1"/>
</outputs>
<tests>
<test>
<param name="input1" value="1.bed"/>
<param name="input2" value="2.bed"/>
<output name="out_file1" file="tac_wrapper_out1.bed"/>
</test>
<!--TODO: if possible, enhance the underlying test code to handle this test
the problem is multiple params with the same name "input2"
<test>
<param name="input1" value="1.bed"/>
<param name="input2" value="2.bed"/>
<param name="input2" value="3.bed"/>
<output name="out_file1" file="cat_wrapper_out2.bed"/>
</test>
-->
</tests>
</tool>
2014年11月26日 10点11分 1
1