annotate wiggle_correlation_union.xml @ 0:3d1097835b2f draft default tip

Imported from capsule None
author jjohnson
date Mon, 22 Sep 2014 11:54:41 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
1 <tool name="Two wiggle file correlation in union regions" id="correlation_intervals" version="0.1.0">
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
2 <description>Calculate the correlation coefficient of two wiggle / bigwig files in the union regions from two bed files</description>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
3 <macros>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
4 <import>corr_macros.xml</import>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
5 </macros>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
6 <expand macro="requirements_union" />
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
7 <command>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
8 #if $wfile1.extension == "wig"
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
9 qc_chIP_peak.py -s $step -m $method -f bed
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
10 #elif $wfile1.extension == "bigwig"
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
11 qc_chIP_peakBW.py
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
12 #end if
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
13 -x $wfile1 -y $wfile2 -p $bfile1 -q $bfile2 -r qc_chIP-output.txt &amp;> $log &amp;&amp;
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
14 Rscript qc_chIP-output.txt
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
15 </command>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
16 <inputs>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
17 <!-- need pybedtools for qc_chIP_peakBW.py
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
18 <param format="wig,bigwig" name="wfile1" type="data" label="WIGGLE / bigwig file 1"/>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
19 -->
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
20 <param format="wig" name="wfile1" type="data" label="WIGGLE / bigwig file 1"/>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
21 <param format="bed" name="bfile1" type="data" label="BED file 1(100,000 lines max)"/>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
22 <!-- need pybedtools for qc_chIP_peakBW.py
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
23 <param format="wig,bigwig" name="wfile2" type="data" label="WIGGLE / bigwig file 2"/>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
24 -->
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
25 <param format="wig" name="wfile2" type="data" label="WIGGLE / bigwig file 2"/>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
26 <param format="bed" name="bfile2" type="data" label="BED file 2(100,000 lines max)"/>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
27 <param name="step" type="integer" label="Step" value="5" help="step in points. This option is only used for wig file.">
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
28 <validator type="in_range" max="100" min="1" message="Step is out of range, Step has to be between 1 to 100" />
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
29 </param>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
30 <param name="method" type="select" label="method:" help="method to process the paired two sets of data in the sampling step." >
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
31 <option value="mean" selected="true">mean</option>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
32 <option value="median">median</option>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
33 <option value="sum">sum</option>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
34 <option value="sample">sample</option>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
35 </param>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
36 <param name="method" type="hidden" label="method:" help="method to process the paired two sets of data in the sampling step." >
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
37 <option value="mean">mean</option>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
38 </param>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
39 </inputs>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
40 <outputs>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
41 <data format="pdf" name="output" from_work_dir="qc_chIP-output.txt.pdf"/>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
42 <data format="txt" name="log" label="job log" />
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
43 <data format="txt" name="rscript" label="job rscript" from_work_dir="qc_chIP-output.txt"/>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
44 </outputs>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
45 <expand macro="stdio"/>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
46 <tests>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
47 <test>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
48 <param name="wfile1" value="control.wig" />
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
49 <param name="bfile1" value="peaks.bed" />
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
50 <param name="wfile2" value="treatment.wig" />
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
51 <param name="bfile2" value="peaks.bed" />
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
52 <param name="step" value="5" />
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
53 <output name="log">
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
54 <assert_contents>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
55 <has_text_matching expression="centering pscore2" />
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
56 </assert_contents>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
57 </output>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
58 </test>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
59 </tests>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
60
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
61
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
62 <help>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
63 This tool calculates the correlation coefficient on two sets where the
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
64 two sets intersect The tool is written by Tao Liu. It calls R for
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
65 plotting.
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
66
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
67 .. class:: infomark
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
68
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
69 **TIP:** This can be used to evaluate the correlation between
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
70 two biological replicates.
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
71
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
72 .. class:: warningmark
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
73
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
74 **NEED IMPROVEMENT**
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
75
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
76 -----
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
77
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
78 **Parameters**
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
79
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
80 - **WIGGLE file 1 and 2** are the two wiggle files to be
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
81 included. These two are required.
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
82 - **BED file 1 and 2** are the two BED files to be used to
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
83 extract scores from wiggle files.
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
84 - **wiggle files** click *Add new wiggle file* to add more wiggle
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
85 files and labels.
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
86 - **Genome/Assembly** Genome assembly to be used. The tool will
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
87 download the chromosome information from UCSC database.
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
88 - **Method** When scores are extracted for a region in BED file, a
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
89 method will be applied to calculate a value to represent this
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
90 region. Options are *median* to use the median value or *mean* to
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
91 use the average value.
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
92 - **Step** Step in data points. The step is a window to extract the
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
93 scores from wiggle files along the whole genome. So that every step
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
94 number of points will have a value to represent it by using certain **Method**
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
95 - **Method** When scores are extracted for a step long window, a
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
96 method will be applied to calculate a value to represent this
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
97 window. Options are *median* to use the median value or *mean* to
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
98 use the average value, or *sample* to sample 1 point to represent
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
99 the region, or *sum* to use the sum of values in the region.
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
100
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
101 -----
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
102
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
103 **Outputs**
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
104
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
105 - **PNG file** is the correlation plot
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
106
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
107 </help>
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
108
3d1097835b2f Imported from capsule None
jjohnson
parents:
diff changeset
109 </tool>