PageRenderTime 23ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/tools/liftover/standardize_wig.xml

https://bitbucket.org/cistrome/cistrome-harvard/
XML | 70 lines | 59 code | 11 blank | 0 comment | 0 complexity | 11a4b2ba284cbd2ba28cd7e7fbb4da08 MD5 | raw file
  1. <tool name="Standardize wig file" id="filter_std_wig">
  2. <description>Standardize a wig file to a given span</description>
  3. <command interpreter="command">/bin/bash $shscript</command>
  4. <inputs>
  5. <param ftype="wig" format="wig" name="wfile" type="data" label="WIGGLE file"/>
  6. <param name="span" type="select" label="Span">
  7. <option value="8">8</option>
  8. <option value="32">32</option>
  9. <option value="64">64</option>
  10. <option value="128">128</option>
  11. </param>
  12. </inputs>
  13. <outputs>
  14. <data format="wig" name="output" />
  15. </outputs>
  16. <configfiles>
  17. <configfile name="shscript">
  18. #!/bin/bash
  19. #set $dollar = chr(36)
  20. #set $gt = chr(62)
  21. #set $lt = chr(60)
  22. #set $ad = chr(38)
  23. standardize_wig.py $wfile $span $output ${ad}${gt}/dev/null
  24. </configfile>
  25. </configfiles>
  26. <tests>
  27. <test maxseconds="3600" name="StandardizeWig_4">
  28. <param name="wfile" value="wiggle.wig" />
  29. <param name="span" value="128" />
  30. <output name="output" file="standardizewig_4/standardizewig_4.wig" />
  31. </test>
  32. <test maxseconds="3600" name="StandardizeWig_3">
  33. <param name="wfile" value="wiggle.wig" />
  34. <param name="span" value="64" />
  35. <output name="output" file="standardizewig_3/standardizewig_3.wig" />
  36. </test>
  37. <test maxseconds="3600" name="StandardizeWig_2">
  38. <param name="wfile" value="wiggle.wig" />
  39. <param name="span" value="32" />
  40. <output name="output" file="standardizewig_2/standardizewig_2.wig" />
  41. </test>
  42. <test maxseconds="3600" name="StandardizeWig_1">
  43. <param name="wfile" value="wiggle.wig" />
  44. <param name="span" value="8" />
  45. <output name="output" file="standardizewig_1/standardizewig_1.wig" />
  46. </test>
  47. </tests>
  48. <help>
  49. This tool converts a given wig file to conform to a given span. The
  50. code is written by Jacqueline Wentz.
  51. -----
  52. **Parameters**
  53. - **WIGGLE file** is selected from current history.
  54. - **Span** is the final resolution in the converted WIGGLE file.
  55. -----
  56. **Output**
  57. - **WIGGLE file** is the converted file.
  58. </help>
  59. </tool>