PageRenderTime 28ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/tools/stats/wiggle_to_simple.xml

https://bitbucket.org/cistrome/cistrome-harvard/
XML | 84 lines | 69 code | 15 blank | 0 comment | 0 complexity | 5343ca502ebca770e17c0a5788d7cf69 MD5 | raw file
  1. <tool id="wiggle2simple1" name="Wiggle-to-Interval">
  2. <description>converter</description>
  3. <command interpreter="python">wiggle_to_simple.py $input $out_file1 </command>
  4. <inputs>
  5. <param format="wig" name="input" type="data" label="Convert"/>
  6. </inputs>
  7. <outputs>
  8. <data format="interval" name="out_file1" />
  9. </outputs>
  10. <tests>
  11. <test>
  12. <param name="input" value="2.wig" />
  13. <output name="out_file1" file="2.interval"/>
  14. </test>
  15. </tests>
  16. <help>
  17. **Syntax**
  18. This tool converts wiggle data into interval type.
  19. - **Wiggle format**: The .wig format is line-oriented. Wiggle data is preceded by a UCSC track definition line. Following the track definition line is the track data, which can be entered in three different formats described below.
  20. - **BED format** with no declaration line and four columns of data::
  21. chromA chromStartA chromEndA dataValueA
  22. chromB chromStartB chromEndB dataValueB
  23. - **variableStep** two column data; started by a declaration line and followed with chromosome positions and data values::
  24. variableStep chrom=chrN [span=windowSize]
  25. chromStartA dataValueA
  26. chromStartB dataValueB
  27. - **fixedStep** single column data; started by a declaration line and followed with data values::
  28. fixedStep chrom=chrN start=position step=stepInterval [span=windowSize]
  29. dataValue1
  30. dataValue2
  31. -----
  32. **Example**
  33. - input wiggle format file::
  34. #track type=wiggle_0 name="Bed Format" description="BED format"
  35. chr19 59302000 59302300 -1.0
  36. chr19 59302300 59302600 -0.75
  37. chr19 59302600 59302900 -0.50
  38. chr19 59302900 59303200 -0.25
  39. chr19 59303200 59303500 0.0
  40. #track type=wiggle_0 name="variableStep" description="variableStep format"
  41. variableStep chrom=chr19 span=150
  42. 59304701 10.0
  43. 59304901 12.5
  44. 59305401 15.0
  45. 59305601 17.5
  46. #track type=wiggle_0 name="fixedStep" description="fixed step" visibility=full
  47. fixedStep chrom=chr19 start=59307401 step=300 span=200
  48. 1000
  49. 900
  50. 800
  51. 700
  52. 600
  53. - convert the above file to interval file::
  54. chr19 59302000 59302300 + -1.0
  55. chr19 59302300 59302600 + -0.75
  56. chr19 59302600 59302900 + -0.5
  57. chr19 59302900 59303200 + -0.25
  58. chr19 59303200 59303500 + 0.0
  59. chr19 59304701 59304851 + 10.0
  60. chr19 59304901 59305051 + 12.5
  61. chr19 59305401 59305551 + 15.0
  62. chr19 59305601 59305751 + 17.5
  63. chr19 59307701 59307901 + 1000.0
  64. chr19 59308001 59308201 + 900.0
  65. chr19 59308301 59308501 + 800.0
  66. chr19 59308601 59308801 + 700.0
  67. chr19 59308901 59309101 + 600.0
  68. </help>
  69. </tool>