annotate epic2 0.41/epic2_wrapper.xml @ 9:ea03253198b4 draft default tip

Uploaded
author mpaya
date Mon, 03 Feb 2020 11:46:00 -0500
parents 5f3952470864
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
ea03253198b4 Uploaded
mpaya
parents: 8
diff changeset
1 <tool id="epic2" name="epic2" version="@VERSION@">
8
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
2 <description>peak calling of broad ChIP-Seq marks</description>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
3 <macros>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
4 <import>macros.xml</import>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
5 </macros>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
6 <expand macro="requirements" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
7
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
8 <stdio>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
9 <exit_code range="1:125" level="fatal" description="Unknown error occurred" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
10 <exit_code range="130:" level="fatal" description="Unknown error occurred" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
11 <regex match="epic2: (command ){0,1}not found" source="stderr" level="fatal" description="The epic2 python package is not properly installed, contact Galaxy administrators" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
12 </stdio>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
13
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
14 <command><![CDATA[
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
15
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
16 ##set up treatment files, extension must be bed, bedpe, bam, sam
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
17 #set $t_file_list = list()
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
18 #if str($treatment.t_multi_select) == "No":
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
19 #if $treatment.input_treatment_file.is_of_type('bed')
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
20 #set $t_file = 'ChIP_file.bed'
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
21 ln -s '$treatment.input_treatment_file' $t_file &&
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
22 #elif $treatment.input_treatment_file.is_of_type('bam')
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
23 #set $t_file = 'ChIP_file.bam'
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
24 ln -s '$treatment.input_treatment_file' $t_file &&
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
25 ln -s '$treatment.input_treatment_file.metadata.bam_index' ${t_file}.bai &&
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
26 #elif $treatment.input_treatment_file.is_of_type('sam')
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
27 #set $t_file = 'ChIP_file.sam'
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
28 ln -s '$treatment.input_treatment_file' $t_file &&
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
29 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
30 $t_file_list.append($t_file)
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
31 #else
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
32 #set $inputs = $treatment.input_treatment_file
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
33 #for $i, $f in enumerate($inputs)
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
34 #if $f.is_of_type('bed')
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
35 #set $t_file = ''.join(['ChIP_file_',str($i),'.bed'])
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
36 ln -s '$f' $t_file &&
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
37 #elif $f.is_of_type('bam')
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
38 #set $t_file = ''.join(['ChIP_file_',str($i),'.bam'])
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
39 ln -s '$f' $t_file &&
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
40 ln -s '$f.metadata.bam_index' ${t_file}.bai &&
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
41 #elif $f.is_of_type('sam')
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
42 #set $t_file = ''.join(['ChIP_file_',str($i),'.sam'])
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
43 ln -s '$f' $t_file &&
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
44 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
45 $t_file_list.append($t_file)
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
46 #end for
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
47 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
48
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
49 ##set up control files, extension must be bed, bedpe, bam, sam
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
50 #if str($control.c_select) == "Yes":
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
51 #set $c_file_list = list()
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
52 #if str($control.c_multiple.c_multi_select) == "No":
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
53 #set $f = $control.c_multiple.input_control_file
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
54 #if $f.is_of_type('bed')
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
55 #set $c_file = 'control_file.bed'
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
56 ln -s '$f' $c_file &&
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
57 #elif $f.is_of_type('bam')
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
58 #set $c_file = 'control_file.bam'
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
59 ln -s '$f' $c_file &&
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
60 ln -s '$f.metadata.bam_index' ${c_file}.bai &&
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
61 #elif $f.is_of_type('sam')
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
62 #set $c_file = 'control_file.sam'
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
63 ln -s '$f' $c_file &&
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
64 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
65 $c_file_list.append($c_file)
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
66 #else
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
67 #set $inputs = $control.c_multiple.input_control_file
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
68 #for $i, $f in enumerate($inputs)
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
69 #if $f.is_of_type('bed')
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
70 #set $c_file = ''.join(['control_file',str($i),'.bed'])
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
71 ln -s '$f' $c_file &&
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
72 #elif $f.is_of_type('bam')
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
73 #set $c_file = ''.join(['control_file',str($i),'.bam'])
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
74 ln -s '$f' $c_file &&
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
75 ln -s '$f.metadata.bam_index' ${c_file}.bai &&
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
76 #elif $f.is_of_type('sam')
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
77 #set $c_file = ''.join(['control_file',str($i),'.sam'])
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
78 ln -s '$f' $c_file &&
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
79 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
80 $c_file_list.append($c_file)
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
81 #end for
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
82 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
83 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
84
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
85 epic2
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
86
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
87 ## Treatment File(s)
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
88 -t ${ ' '.join( $t_file_list ) }
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
89
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
90 ## Control File(s)
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
91 #if str($control.c_select) == "Yes":
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
92 -c ${ ' '.join( $c_file_list ) }
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
93 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
94
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
95 ## Predefined or Custom Genome
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
96 #if str($genome.g_select) == "Yes":
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
97 --genome ${genome.builtin_genome}
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
98 #else
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
99 #if str($genome.chromsizes.chr_select) == "No":
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
100 #if $genome.chromsizes.cs_file.is_of_type('fasta'):
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
101 --chromsizes <(awk '/^>/ {if (seqlen) print seqlen;printf substr($1,2) "\t";seqlen=0;next}
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
102 {seqlen+=length($0)}END{print seqlen}' '${genome.chromsizes.cs_file}')
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
103 #else
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
104 --chromsizes ${genome.chromsizes.cs_file}
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
105 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
106 #else
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
107 #if $genome.chromsizes.builtin_fasta.fields.path
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
108 --chromsizes <(awk '/^>/ {if (seqlen) print seqlen;printf substr($1,2) "\t";seqlen=0;next}
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
109 {seqlen+=length($0)}END{print seqlen}' '${genome.chromsizes.builtin_fasta.fields.path}')
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
110 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
111 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
112 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
113 #if $genome.egf:
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
114 --effective-genome-fraction ${genome.egf}
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
115 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
116
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
117 #if $fdr:
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
118 -fdr $fdr
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
119 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
120
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
121 ## BAM OPTIONS
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
122 #if $bam_options.required_flag:
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
123 --required-flag $bam_options.required_flag
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
124 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
125
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
126 #if $bam_options.filter_flag:
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
127 --filter-flag $bam_options.filter_flag
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
128 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
129
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
130 #if $bam_options.mapq:
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
131 --mapq $bam_options.mapq
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
132 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
133
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
134 #if $bam_options.autodetect_chroms:
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
135 --autodetect-chroms
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
136 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
137
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
138 #if $bam_options.discard_chroms:
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
139 --discard-chromosomes-pattern $bam_options.discard_chroms
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
140 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
141
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
142 ## ADVANCED OPTIONS
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
143 #if $advanced_options.keep_dupes:
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
144 --keep-duplicates
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
145 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
146
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
147 #if $advanced_options.bin_size:
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
148 --bin-size $advanced_options.bin_size
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
149 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
150
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
151 #if $advanced_options.gaps_allowed:
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
152 --gaps-allowed $advanced_options.gaps_allowed
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
153 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
154
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
155 #if $advanced_options.fragment_size:
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
156 --fragment-size $advanced_options.fragment_size
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
157 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
158
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
159 #if $advanced_options.original_algorithm:
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
160 --original-algorithm
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
161 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
162
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
163 #if $advanced_options.original_stats:
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
164 --original-statistics
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
165 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
166
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
167 > ${peaks}
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
168 2> >(awk 'NF' >&2)
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
169
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
170 #if $to_bed:
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
171 &&
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
172 awk 'NR>1{if ($4==0) {pv=500;qv=500}else{pv=-log($4)/log(10);qv=-log($9)/log(10)};
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
173 print $1,$2,$3,"island_"NR-1,int($5),$6,$10,pv,qv}' OFS="\t" ${peaks} > ${bed_peaks}
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
174 #end if
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
175
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
176 ]]></command>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
177
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
178 <inputs>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
179 <conditional name="treatment">
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
180 <param name="t_multi_select" type="select" label="Are you pooling Treatment Files?" help="" >
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
181 <option value="No" selected="True">No</option>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
182 <option value="Yes">Yes</option>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
183 </param>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
184 <when value="No" >
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
185 <param name="input_treatment_file" argument="-t" type="data"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
186 format="bam,sam,bed" label="ChIP-Seq Treatment File" help="(-t)" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
187 </when>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
188 <when value="Yes">
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
189 <param name="input_treatment_file" argument="-t" type="data"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
190 format="bam,sam,bed" multiple="true"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
191 label="ChIP-Seq Treatment File" help="(-t)" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
192 </when>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
193 </conditional>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
194
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
195 <conditional name="control">
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
196 <param name="c_select" type="select" label="Do you have a Control File?" >
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
197 <option value="Yes">Yes</option>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
198 <option value="No" selected="True">No</option>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
199 </param>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
200 <when value="Yes">
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
201 <conditional name="c_multiple">
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
202 <param name="c_multi_select" type="select"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
203 label="Are you pooling Control Files?" help="" >
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
204 <option value="No" selected="True">No</option>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
205 <option value="Yes">Yes</option>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
206 </param>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
207 <when value="No" >
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
208 <param name="input_control_file" argument="-c" type="data"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
209 format="bam,sam,bed" label="ChIP-Seq Control File"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
210 help="(-c)" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
211 </when>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
212 <when value="Yes">
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
213 <param name="input_control_file" argument="-c" type="data"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
214 format="bam,sam,bed" multiple="true"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
215 label="ChIP-Seq Control File" help="(-c)" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
216 </when>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
217 </conditional>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
218 </when>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
219 <when value="No">
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
220 <param name="evalue" argument="-e" type="integer" optional="True"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
221 label="e-value" help="The E-value controls the genome-wide error
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
222 rate of identified islands under the random
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
223 background assumption. Should be used when not using
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
224 a control library. Default 1000." />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
225 </when>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
226 </conditional>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
227
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
228 <conditional name="genome">
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
229 <param name="g_select" type="select" label="Is your genome indexed?" >
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
230 <option value="Yes" selected="True">Yes</option>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
231 <option value="No">No</option>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
232 </param>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
233 <when value="Yes">
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
234 <expand macro="effectiveGenomeSize" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
235 <param name="egf" argument="-egf" type="float" min="0" max="1"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
236 optional="True" label="Effective genome fraction"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
237 help="Use a different effective genome fraction than the
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
238 one included in epic2, which depends on genome and
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
239 readlength. (-egf)" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
240 </when>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
241 <when value="No">
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
242 <conditional name="chromsizes">
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
243 <param name="chr_select" type="select" label="Use an indexed fasta file?"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
244 help="Chromosome sizes will be calculated from the provided fasta file." >
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
245 <option value="No">No</option>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
246 <option value="Yes" selected="True">Yes</option>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
247 </param>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
248 <when value="No" >
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
249 <param name="cs_file" argument="--chromsizes" type="data"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
250 format="fasta,txt,tabular,tsv" label="Chromosome sizes"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
251 help="Provide a fasta file for automated calculation,
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
252 or a tab-separated file with two columns:
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
253 chromosome names and sizes. (--chromsizes)" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
254 </when>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
255 <when value="Yes">
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
256 <param name="builtin_fasta" argument="--chromsizes" type="select"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
257 optional="True" label="Genome for fasta file"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
258 help="(--chromsizes)" >
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
259 <options from_data_table="fasta_indexes">
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
260 <filter type="sort_by" column="2" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
261 <validator type="no_options" message="No indexes are available" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
262 </options>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
263 </param>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
264 </when>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
265 </conditional>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
266 <param name="egf" argument="-egf" type="float" min="0" max="1"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
267 optional="True" label="Effective genome fraction"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
268 help="The effective genome fraction is the proportion
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
269 of the genome that is mappable, excluding Ns. (-egf)" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
270 </when>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
271 </conditional>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
272
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
273 <param name="fdr" argument="-fdr" type="float" min="0" max="1"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
274 optional="True" label="False discovery rate cutoff"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
275 help="Remove all islands with an FDR above cutoff. Default 0.05 (-fdr)" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
276
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
277 <param name="to_bed" type="boolean" checked="false" label="Convert output to BED format?"/>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
278
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
279 <section name="bam_options" title="BAM Options">
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
280 <param name="required_flag" argument="--required-flag" type="integer"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
281 optional="True" label="Required flag"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
282 help="Keep reads with these bits set in flag. Same as `samtools
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
283 view -f`. Default 0. (--required-flag)" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
284 <param name="filter_flag" argument="--filter-flag" type="integer"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
285 optional="True" label="Filter flag"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
286 help="Discard reads with these bits set in flag. Same as `samtools
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
287 view -F`. Default 1540 (hex: 0x604). (--filter-flag)" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
288 <param name="mapq" argument="--mapq" type="integer"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
289 optional="True" label="Mapping quality"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
290 help="Discard reads with mapping quality lower than this. Default 5. (--mapq)" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
291 <param name="autodetect_chroms" type="boolean" checked="false"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
292 truevalue="--autodetect-chroms" falsevalue="" label="Autodetect chromosomes?"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
293 help="Autodetect chromosomes from bam file. Use with
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
294 --discard-chromosomes flag to avoid non-canonical
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
295 chromosomes. (--autodetect-chroms)" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
296 <param name="discard_chroms" argument="--discard-chromosomes-pattern"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
297 type="text" optional="True" label="Discard chromosomes pattern"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
298 help="Discard reads from chromosomes matching
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
299 this pattern. Default '_'. Note that if you are not
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
300 interested in the results from non-canonical
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
301 chromosomes, you should ensure they are removed with
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
302 this flag, otherwise they will make the statistical
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
303 analysis too stringent. (--discard-chromosomes-pattern)"/>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
304 </section>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
305
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
306 <section name="advanced_options" title="Advanced Options">
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
307 <param name="keep_dupes" type="boolean" checked="false"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
308 truevalue="--keep-duplicates" falsevalue="" label="Keep duplicates?"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
309 help="Keep reads mapping to the same position on the same
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
310 strand within a library. (--keep-duplicates)" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
311 <param name="bin_size" argument="--bin-size" type="integer"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
312 optional="True" label="Bin size"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
313 help="Size of the windows to scan the genome. BIN-SIZE is the
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
314 smallest possible island. Default 200. (--bin-size)" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
315 <param name="gaps_allowed" argument="--gaps-allowed" type="integer"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
316 optional="True" label="Gaps allowed"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
317 help="This number is multiplied by the window size to determine
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
318 the number of gaps (ineligible windows) allowed
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
319 between two eligible windows. Default 3. (--gaps-allowed)"/>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
320 <param name="fragment_size" argument="--fragment-size" type="integer"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
321 optional="True" label="Fragment size"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
322 help="(Single end reads only) Size of the sequenced fragment.
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
323 Each read is extended half the fragment size from the 5' end.
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
324 Default 150 (i.e. extend by 75). (--fragment-size)" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
325 <param name="original_algorithm" type="boolean" checked="false"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
326 truevalue="--original-algorithm" falsevalue=""
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
327 label="Compute p-values with SICER original algorithm?"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
328 help="Use the original SICER algorithm, without the epic2 fix.
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
329 This will use all reads in your files to compute
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
330 the p-values, including those falling outside the
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
331 genome boundaries. (--original-algorithm)" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
332 <param name="original_stats" type="boolean" checked="false"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
333 truevalue="--original-statistics" falsevalue=""
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
334 label="Compute p-values with SICER original algorithm?"
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
335 help="Use the original SICER way of computing the
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
336 statistics. Like SICER itself, this method raises an
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
337 error on large datasets. Only included for debugging-
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
338 purposes. (--original-statistics)" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
339 </section>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
340 </inputs>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
341
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
342 <outputs>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
343 <data format="tabular" name="peaks" label="${tool.name} on ${on_string}"/>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
344 <data format='bed' name='bed_peaks' label="${tool.name} on ${on_string}: BED">
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
345 <filter>to_bed</filter>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
346 </data>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
347
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
348 </outputs>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
349
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
350 <tests>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
351 <test>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
352 <param name="input_treatment_file" value="test.bam" ftype="bam" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
353 <param name="c_select" value="Yes" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
354 <param name="input_control_file" value="control.bam" ftype="bam"/>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
355 <output name="peaks" file="epic2_results.txt"/>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
356 </test>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
357 <test>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
358 <param name="input_treatment_file" value="test.bed.gz" ftype="bed" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
359 <param name="c_select" value="Yes" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
360 <param name="input_control_file" value="control.bed.gz" ftype="bed"/>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
361 <output name="peaks" file="epic2_results1.txt"/>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
362 </test>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
363 <test>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
364 <param name="input_treatment_file" value="test_ChIP.bam" ftype="bam" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
365 <param name="c_select" value="Yes" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
366 <param name="input_control_file" value="test_Input.bam" ftype="bam"/>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
367 <param name="g_select" value="No" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
368 <param name="chr_select" value="No" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
369 <param name="cs_file" value="test_chromsizes.txt" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
370 <param name="egf" value="0.99" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
371 <param name="original_algorithm" value="Yes" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
372 <output name="peaks" file="epic2_results2.txt"/>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
373 </test>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
374 <test>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
375 <param name="input_treatment_file" value="test_ChIP.bam" ftype="bam" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
376 <param name="c_select" value="Yes" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
377 <param name="input_control_file" value="test_Input.bam" ftype="bam"/>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
378 <param name="g_select" value="No" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
379 <param name="chr_select" value="No" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
380 <param name="cs_file" value="test_fasta.fasta" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
381 <param name="egf" value="0.99" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
382 <param name="to_bed" value="Yes" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
383 <param name="mapq" value="10" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
384 <param name="bin_size" value="100" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
385 <param name="gaps_allowed" value="0" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
386 <output name="peaks" file="epic2_results3.txt"/>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
387 <output name="bed_peaks" file="epic2_results3.bed"/>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
388 </test>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
389 </tests>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
390
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
391 <help>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
392 epic2 is an ultraperformant reimplementation of SICER, a Chip-Seq broad peak/diffuse domain finder.
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
393 epic2 is focused on speed, low memory overhead and ease-of-use.
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
394 Software documentation may be found on https://github.com/biocore-ntnu/epic2.
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
395
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
396 **Accepted input**
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
397
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
398 epic2 is designed to be used with ChIP-Seq data from treatment samples, though control samples are encouraged to increase specificity. Single or multiple files are allowed as input, with same or different file formats (file extension must be bed, bedpe, bam or sam). To use multiple files as input (either as treatment or control samples), group them in a collection and select to pool files, otherwise Galaxy will run them in batch mode.
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
399
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
400 epic2 works with only a treatment file specified as input. In this case, epic2 will run with default parameters, using the pre-indexed human genome hg19 and a FDR cutoff of 0.05. Several genomes are indexed and included on the installation of epic2, although custom genomes may be used. If your genome is not already indexed, two options are provided. One of them is to select a fasta file from which calculate chromosome sizes; the second option is to provide a tab-separated list with one chromosome name and length per row. On custom genomes, the effective genome fraction may be introduced (for more information see [deepTools](https://deeptools.readthedocs.io/en/latest/content/feature/effectiveGenomeSize.html)).
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
401
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
402 **Broad peaks format**
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
403
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
404 The output of epic2 contains called peaks in a table that does not follow any standard format. This table may be converted to BED format, assigning a unique name to each peak (islands). This format follows the standard from ENCODE, BED 6+3, and contains the following columns:
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
405
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
406 * **1.** Chrom
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
407 * **2.** Start
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
408 * **3.** End
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
409 * **4.** Name
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
410 * **5.** Score
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
411 * **6.** Strand
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
412 * **7.** log2FoldChange
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
413 * **8.** -log10PValue
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
414 * **9.** -log10FDR
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
415
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
416 .. class:: warningmark
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
417
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
418 On columns 8 and 9, the max value is set to 500 when Pvalue == 0.0.
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
419
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
420 Tool adapted to Galaxy by Miriam PayĆ”.
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
421
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
422
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
423 </help>
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
424 <expand macro="citations" />
5f3952470864 Uploaded 0.0.41
mpaya
parents:
diff changeset
425 </tool>