annotate tools/stats/wiggle_to_simple.xml @ 1:cdcb0ce84a1b

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:45:15 -0500
parents 9071e359b9a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="wiggle2simple1" name="Wiggle-to-Interval">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>converter</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="python">wiggle_to_simple.py $input $out_file1 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 <param format="wig" name="input" type="data" label="Convert"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <data format="interval" name="out_file1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <param name="input" value="2.wig" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <output name="out_file1" file="2.interval"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 **Syntax**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 This tool converts wiggle data into interval type.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 - **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.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 - **BED format** with no declaration line and four columns of data::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 chromA chromStartA chromEndA dataValueA
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 chromB chromStartB chromEndB dataValueB
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 - **variableStep** two column data; started by a declaration line and followed with chromosome positions and data values::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 variableStep chrom=chrN [span=windowSize]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 chromStartA dataValueA
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 chromStartB dataValueB
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 - **fixedStep** single column data; started by a declaration line and followed with data values::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 fixedStep chrom=chrN start=position step=stepInterval [span=windowSize]
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 dataValue1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 dataValue2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 **Example**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 - input wiggle format file::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 #track type=wiggle_0 name="Bed Format" description="BED format"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 chr19 59302000 59302300 -1.0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 chr19 59302300 59302600 -0.75
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 chr19 59302600 59302900 -0.50
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 chr19 59302900 59303200 -0.25
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 chr19 59303200 59303500 0.0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 #track type=wiggle_0 name="variableStep" description="variableStep format"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 variableStep chrom=chr19 span=150
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 59304701 10.0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 59304901 12.5
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 59305401 15.0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 59305601 17.5
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 #track type=wiggle_0 name="fixedStep" description="fixed step" visibility=full
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 fixedStep chrom=chr19 start=59307401 step=300 span=200
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 1000
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 900
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 800
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 700
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 600
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 - convert the above file to interval file::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 chr19 59302000 59302300 + -1.0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69 chr19 59302300 59302600 + -0.75
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70 chr19 59302600 59302900 + -0.5
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 chr19 59302900 59303200 + -0.25
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72 chr19 59303200 59303500 + 0.0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73 chr19 59304701 59304851 + 10.0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74 chr19 59304901 59305051 + 12.5
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75 chr19 59305401 59305551 + 15.0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76 chr19 59305601 59305751 + 17.5
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77 chr19 59307701 59307901 + 1000.0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78 chr19 59308001 59308201 + 900.0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
79 chr19 59308301 59308501 + 800.0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
80 chr19 59308601 59308801 + 700.0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
81 chr19 59308901 59309101 + 600.0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
82
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
83 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
84 </tool>