/tools/filters/commWrapper.xml

https://bitbucket.org/cistrome/cistrome-harvard/ · XML · 38 lines · 30 code · 8 blank · 0 comment · 0 complexity · 32d7ec418882e4ad4cc594e7cf32147c MD5 · raw file

  1. <tool id="Comm1" name="Find Similarities and Differences">
  2. <description>between two datasets</description>
  3. <command interpreter="perl">commWrapper.pl $input1 $input2 $mode $out_file1</command>
  4. <inputs>
  5. <param format="tabular" name="input1" type="data" label="Compare Dataset1"/>
  6. <param format="tabular" name="input2" type="data" label="with Dataset2"/>
  7. <param name="mode" type="select" label="And find">
  8. <option value="-23">Lines unique to Dataset1</option>
  9. <option value="-12">Lines shared between Dataset1 and Dataset2</option>
  10. </param>
  11. </inputs>
  12. <outputs>
  13. <data format="input" name="out_file1" metadata_source="input1" />
  14. </outputs>
  15. <help>
  16. This tool is based on UNIX shell command comm. It compares two datasets and returns similarities or differences. For example, if you have two datasets::
  17. a 1
  18. b 2
  19. c 3
  20. and::
  21. a 1
  22. f 6
  23. h 8
  24. Using this tool with **Lines unique to Dataset1** option will return::
  25. b 2
  26. c 3
  27. If you use **Lines shared between Dataset1 and Dataset2** option output will look like this::
  28. a 1
  29. </help>
  30. </tool>