/tools/filters/catWrapper.xml

https://bitbucket.org/cistrome/cistrome-harvard/ · XML · 79 lines · 54 code · 16 blank · 9 comment · 0 complexity · 3ec983798ed49b3fc9a00a9f27a11430 MD5 · raw file

  1. <tool id="cat1" name="Concatenate datasets">
  2. <description>tail-to-head</description>
  3. <command interpreter="python">
  4. catWrapper.py
  5. $out_file1
  6. $input1
  7. #for $q in $queries
  8. ${q.input2}
  9. #end for
  10. </command>
  11. <inputs>
  12. <param name="input1" type="data" label="Concatenate Dataset"/>
  13. <repeat name="queries" title="Dataset">
  14. <param name="input2" type="data" label="Select" />
  15. </repeat>
  16. </inputs>
  17. <outputs>
  18. <data name="out_file1" format="input" metadata_source="input1"/>
  19. </outputs>
  20. <tests>
  21. <test>
  22. <param name="input1" value="1.bed"/>
  23. <param name="input2" value="2.bed"/>
  24. <output name="out_file1" file="cat_wrapper_out1.bed"/>
  25. </test>
  26. <!--TODO: if possible, enhance the underlying test code to handle this test
  27. the problem is multiple params with the same name "input2"
  28. <test>
  29. <param name="input1" value="1.bed"/>
  30. <param name="input2" value="2.bed"/>
  31. <param name="input2" value="3.bed"/>
  32. <output name="out_file1" file="cat_wrapper_out2.bed"/>
  33. </test>
  34. -->
  35. </tests>
  36. <help>
  37. .. class:: warningmark
  38. **WARNING:** Be careful not to concatenate datasets of different kinds (e.g., sequences with intervals). This tool does not check if the datasets being concatenated are in the same format.
  39. -----
  40. **What it does**
  41. Concatenates datasets
  42. -----
  43. **Example**
  44. Concatenating Dataset::
  45. chrX 151087187 151087355 A 0 -
  46. chrX 151572400 151572481 B 0 +
  47. with Dataset1::
  48. chr1 151242630 151242955 X 0 +
  49. chr1 151271715 151271999 Y 0 +
  50. chr1 151278832 151279227 Z 0 -
  51. and with Dataset2::
  52. chr2 100000030 200000955 P 0 +
  53. chr2 100000015 200000999 Q 0 +
  54. will result in the following::
  55. chrX 151087187 151087355 A 0 -
  56. chrX 151572400 151572481 B 0 +
  57. chr1 151242630 151242955 X 0 +
  58. chr1 151271715 151271999 Y 0 +
  59. chr1 151278832 151279227 Z 0 -
  60. chr2 100000030 200000955 P 0 +
  61. chr2 100000015 200000999 Q 0 +
  62. </help>
  63. </tool>