Mercurial > repos > jjohnson > cistrome_ceas
comparison sitepro.xml @ 2:45e094f8858f
Add SitePro tool
author | Jim Johnson <jj@umn.edu> |
---|---|
date | Mon, 15 Dec 2014 15:31:58 -0600 |
parents | |
children | f404ec7f679c |
comparison
equal
deleted
inserted
replaced
1:0476ee45d253 | 2:45e094f8858f |
---|---|
1 <tool id="ceas_sitepro" name="SitePro: Score profile near Intervals" version="0.1.0"> | |
2 <description>Draw the score profile near a given interval</description> | |
3 <macros> | |
4 <import>ceas_macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements" /> | |
7 <command> | |
8 sitepro | |
9 #if $mode.mode_select == "single" | |
10 -w $mode.wfile -b $mode.bfile | |
11 #elif $mode.mode_select == "multiwig" | |
12 -w $mode.wfile -l $mode.label | |
13 #for $m in $mode.more | |
14 -w "$m.wig" -l "$m.label" | |
15 #end for | |
16 -b $mode.bfile | |
17 #elif $mode.mode_select == "multibed" | |
18 -w $mode.wfile -b $mode.bfile -l $mode.label | |
19 #for $m in $mode.more | |
20 -b "$m.bfile" -l "$m.label" | |
21 #end for | |
22 #end if | |
23 --span=$span --pf-res=$pfres --name=$name --dump &> $log | |
24 cat *_dump.txt > $dump | |
25 </command> | |
26 <inputs> | |
27 <param name="name" type="hidden" value="sitepro_out"/> | |
28 <conditional name="mode"> | |
29 <param name="mode_select" type="select" label="Sitepro behaviour mode" force_select="true"> | |
30 <option value="single"> 1 wiggle vs 1 BED file</option> | |
31 <option value="multiwig"> multiple wiggle vs 1 BED</option> | |
32 <option value="multibed"> multiple BED vs 1 wiggle</option> | |
33 </param> | |
34 | |
35 <when value="single"> | |
36 <param ftype="wig" name="wfile" type="data" label="Wiggle file"/> | |
37 <param ftype="bed" name="bfile" type="data" label="BED file(100,000 lines max)"/> | |
38 </when> | |
39 | |
40 <when value="multiwig"> | |
41 <param format="wig" name="wfile" type="data" label="Wiggle file"/> | |
42 <param name="label" type="text" label="Wiggle label" optional="false" /> | |
43 <repeat name="more" title="wiggle file"> | |
44 <param format="wig" name="wig" type="data" label="Select another wiggle file"/> | |
45 <param name="label" type="text" label="Wiggle label" optional="false" /> | |
46 </repeat> | |
47 <param format="bed" name="bfile" type="data" | |
48 label="BED file"/> | |
49 </when> | |
50 | |
51 <when value="multibed"> | |
52 <param format="bed" name="bfile" type="data" label="BED file(100,000 lines max)"/> | |
53 <param name="label" type="text" label="BED label" optional="false" /> | |
54 <repeat name="more" title="BED file"> | |
55 <param format="bed" name="bfile" type="data" label="Select another BED file(100,000 lines max)"/> | |
56 <param name="label" type="text" label="BED label" optional="false" /> | |
57 </repeat> | |
58 <param format="wig" name="wfile" type="data" label="Wiggle file"/> | |
59 </when> | |
60 | |
61 </conditional> | |
62 | |
63 <param name="span" type="integer" label="Span" value="1000"> | |
64 <validator type="in_range" max="1000000" min="100" message="Span is out of range, Span has to be between 100 to 1000000" /> | |
65 </param> | |
66 <param name="pfres" type="integer" label="Profiling Resolution" value="50"> | |
67 <validator type="in_range" max="1000" min="10" message="Profiling Resolution is out of range, Profiling Resolution has to be between 10 to 1000" /> | |
68 </param> | |
69 </inputs> | |
70 <outputs> | |
71 <data name="output" format="pdf" from_work_dir="sitepro_out.pdf"/> | |
72 <data name="log" format="txt" label="sitepro job log" /> | |
73 <data name="dump" format="txt" label="txt file with profiles" /> | |
74 </outputs> | |
75 <tests> | |
76 <test maxseconds="3600" name="Sitepro_1"> | |
77 <param name="mode_select" value="single" /> | |
78 <param name="wfile" value="treatment.wig" /> | |
79 <param name="bfile" value="peaks.bed" /> | |
80 <param name="span" value="1000" /> | |
81 <param name="pfres" value="50" /> | |
82 <output name="output" file="sitepro_1/sitepro_1.pdf" /> | |
83 <output name="output" file="sitepro_1/sitepro_1.log" lines_diff = "200" /> | |
84 <output name="output" file="sitepro_1/sitepro_1_dump.txt" /> | |
85 <output name="log"> | |
86 <assert_contents> | |
87 <has_text_matching expression="See sitepro_out.pdf for the graphical result of sitepro" /> | |
88 </assert_contents> | |
89 </output> | |
90 </test> | |
91 </tests> | |
92 <help> | |
93 This tool draws the average score profile around given genomic | |
94 sites. It's a module in CEAS package which is written by Hyunjin Gene | |
95 Shin, published in Bioinformatics (pubmed id:19689956). | |
96 | |
97 .. class:: infomark | |
98 | |
99 **TIP #1:** If your query does not apper in the pulldown menu for BED Files, please convert your interval files to BED format. | |
100 | |
101 .. class:: infomark | |
102 | |
103 **TIP #2:** You can't use multiple BED files *AND* multiple Wiggle files as input. | |
104 | |
105 .. class:: infomark | |
106 | |
107 **TIP #3:** The tool can be used to check the signals of your ChIP | |
108 sample around certain regions such as Transcription Start Sites, or | |
109 Transcription Factor Binding Sites. | |
110 | |
111 .. class:: warningmark | |
112 | |
113 **NEED IMPROVEMENT** | |
114 | |
115 ----- | |
116 | |
117 **Parameters** | |
118 | |
119 - **Sitepro behaviour mode** can only be '1 wiggle file against 1 BED | |
120 file', or 'multiple wiggle files against 1 BED file', or '1 wiggle | |
121 file against multiple BED files'. | |
122 - **Wiggle label** When 'multi wiggle' mode is selected, you need to assign the labels for every wiggle files which will be shown in the final figure. | |
123 - **BED label** When 'multi BED' mode is selected, you need to assign the labels for every BED files which will be shown in the final image. | |
124 - **Span** is the distance from the center of each BED region in both directions(+/-) (eg, [c - span, c + span], where c is the center of a region). | |
125 - **Profiling resolution** is the resolution to bin the scores in the final image. | |
126 | |
127 ----- | |
128 | |
129 **script parameter list of Sitepro** | |
130 | |
131 Options: | |
132 --version show program's version number and exit | |
133 -h, --help Show this help message and exit. | |
134 -w WIG, --wig=WIG input WIG file. WARNING: both fixedStep and | |
135 variableStep WIG formats are accepted. Multiple WIG | |
136 files can be given via -w (--wig) individually (eg -w | |
137 WIG1.wig, -w WIG2.wig). WARNING! multiple wig and bed | |
138 files are not allowed. | |
139 -b BED, --bed=BED BED file of regions of interest. (eg, binding sites or | |
140 motif locations) Multiple BED files can be given via | |
141 -b (--bed) individually (eg -b BED1.bed -b BED2.bed). | |
142 WARNING! multiple wig and bed files are not allowed. | |
143 --span=SPAN Span from the center of each BED region in both | |
144 directions(+/-) (eg, [c - span, c + span], where c is | |
145 the center of a region), default:1000 bp | |
146 --pf-res=PF_RES Profiling resolution, default: 50 bp | |
147 --dir If set, the direction (+/-) is considered in | |
148 profiling. If no strand info given in the BED, this | |
149 option is ignored. | |
150 --dump If set, profiles are dumped as a TXT file | |
151 --name=NAME Name of this run. If not given, the body of the bed | |
152 file name will be used, | |
153 -l LABEL, --label=LABEL | |
154 Labels of the wig files. If given, they are used as | |
155 the legends of the plot and in naming the TXT files of | |
156 profile dumps; otherwise, the WIG file names will be | |
157 used as the labels. Multiple labels can be given via | |
158 -l (--label) individually (eg, -l LABEL1 -l LABEL2). | |
159 WARNING! The number and order of the labels must be | |
160 the same as the WIG files. | |
161 | |
162 ----- | |
163 | |
164 **Output** | |
165 | |
166 - **PDF** format file. | |
167 - Dumped signals within given intervals in **plain text**. | |
168 | |
169 </help> | |
170 | |
171 </tool> |