|
4 | 4 | <token name="@BINARY@">bamCompare</token> |
5 | 5 | <import>deepTools_macros.xml</import> |
6 | 6 | </macros> |
7 | | - <expand macro="requirements" /> |
| 7 | + <expand macro="requirements"/> |
8 | 8 | <command> |
9 | 9 | <![CDATA[ |
10 | 10 | ln -s '$bamFile1' one.bam && |
|
74 | 74 | ]]> |
75 | 75 | </command> |
76 | 76 | <inputs> |
77 | | - <param argument="--bamFile1" format="bam,cram" type="data" label="First BAM/CRAM file (e.g. treated sample)" |
78 | | - help=""/> |
79 | | - <param argument="--bamFile2" format="bam,cram" type="data" label="Second BAM/CRAM file (e.g. control sample)" |
80 | | - help=""/> |
81 | | - |
| 77 | + <param argument="--bamFile1" format="bam,cram" type="data" label="First BAM/CRAM file (e.g. treated sample)"/> |
| 78 | + <param argument="--bamFile2" format="bam,cram" type="data" label="Second BAM/CRAM file (e.g. control sample)"/> |
82 | 79 | <param argument="--binSize" type="integer" value="50" min="1" |
83 | 80 | label="Bin size in bases" |
84 | 81 | help="The genome will be divided into bins of the specified size. For each bin, the overlapping number of fragments (or reads) will be reported. |
85 | 82 | If only half a fragment overlaps then this fraction will be reported."/> |
86 | | - |
87 | 83 | <conditional name="scaling"> |
88 | 84 | <param name="method" type="select" |
89 | 85 | label="Method to use for scaling the largest sample to the smallest"> |
|
95 | 91 | <when value="SES"> |
96 | 92 | <param argument="--sampleLength" type="integer" value="1000" min="10" |
97 | 93 | label="Length in bases used to sample the genome and compute the size or scaling factors." |
98 | | - help="The default is fine. Only change it if you know what you are doing." /> |
| 94 | + help="The default is fine. Only change it if you know what you are doing."/> |
99 | 95 | <param argument="--numberOfSamples" type="integer" value="100000" min="0" |
100 | | - label="Number of samplings taken from the genome to compute the scaling factors" |
101 | | - help="" /> |
| 96 | + label="Number of samplings taken from the genome to compute the scaling factors"/> |
102 | 97 | </when> |
103 | | - <when value="readCount" /> |
| 98 | + <when value="readCount"/> |
104 | 99 | <when value="own"> |
105 | | - <expand macro="scaleFactors" /> |
| 100 | + <expand macro="scaleFactors"/> |
106 | 101 | </when> |
107 | 102 | <when value="None"> |
108 | 103 | <param name="type" type="select" label="Normalization method" > |
|
132 | 127 | <option value="second">Returns the scaled value of the second BAM file</option> |
133 | 128 | </param> |
134 | 129 | <when value="log2"> |
135 | | - <expand macro="pseudocount" /> |
| 130 | + <expand macro="pseudocount"/> |
136 | 131 | </when> |
137 | 132 | <when value="ratio"> |
138 | | - <expand macro="pseudocount" /> |
| 133 | + <expand macro="pseudocount"/> |
139 | 134 | </when> |
140 | | - <when value="add" /> |
141 | | - <when value="subtract" /> |
142 | | - <when value="mean" /> |
143 | | - <when value="first" /> |
144 | | - <when value="second" /> |
| 135 | + <when value="add"/> |
| 136 | + <when value="subtract"/> |
| 137 | + <when value="mean"/> |
| 138 | + <when value="first"/> |
| 139 | + <when value="second"/> |
145 | 140 | <when value="reciprocal_ratio"> |
146 | | - <expand macro="pseudocount" /> |
| 141 | + <expand macro="pseudocount"/> |
147 | 142 | </when> |
148 | 143 | </conditional> |
149 | 144 |
|
150 | | - <expand macro="exactScaling" /> |
| 145 | + <expand macro="exactScaling"/> |
151 | 146 | <param name="outFileFormat" type="select" label="Coverage file format"> |
152 | 147 | <option value="bigwig" selected="true">bigwig</option> |
153 | 148 | <option value="bedgraph">bedgraph</option> |
154 | 149 | </param> |
155 | | - <expand macro="region_limit_operation" /> |
| 150 | + <expand macro="region_limit_operation"/> |
156 | 151 | <conditional name="advancedOpt"> |
157 | 152 | <param name="showAdvancedOpt" type="select" label="Show advanced options" > |
158 | 153 | <option value="no" selected="true">no</option> |
159 | 154 | <option value="yes">yes</option> |
160 | 155 | </param> |
161 | | - <when value="no" /> |
| 156 | + <when value="no"/> |
162 | 157 | <when value="yes"> |
163 | | - <expand macro="smoothLength" /> |
164 | | - <expand macro="read_processing_options" /> |
| 158 | + <expand macro="smoothLength"/> |
| 159 | + <expand macro="read_processing_options"/> |
165 | 160 |
|
166 | | - <expand macro="skipNAs" /> |
167 | | - <expand macro="skipZeroOverZero" /> |
| 161 | + <expand macro="skipNAs"/> |
| 162 | + <expand macro="skipZeroOverZero"/> |
168 | 163 |
|
169 | 164 | <param argument="--ignoreForNormalization" type="text" value="" size="50" |
170 | 165 | label="regions that should be excluded for calculating the scaling factor" |
171 | 166 | help="Sometimes it makes sense to exclude certain regions when calculating the scaling factor. |
172 | 167 | For example, if you know of copy number variations between samples then you may want to exclude these. |
173 | 168 | Another typical example is the difference in chromosome X copies between males and females in many species. |
174 | | - Example inputs are chrX,chrY,chr3 or chr10:12220-128932" /> |
175 | | - <expand macro="blacklist" /> |
| 169 | + Example inputs are chrX,chrY,chr3 or chr10:12220-128932"/> |
| 170 | + <expand macro="blacklist"/> |
176 | 171 | </when> |
177 | 172 | </conditional> |
178 | 173 | </inputs> |
179 | 174 | <outputs> |
180 | 175 | <data format="bigwig" name="outFileName"> |
181 | 176 | <change_format> |
182 | | - <when input="outFileFormat" value="bigwig" format="bigwig" /> |
183 | | - <when input="outFileFormat" value="bedgraph" format="bedgraph" /> |
| 177 | + <when input="outFileFormat" value="bigwig" format="bigwig"/> |
| 178 | + <when input="outFileFormat" value="bedgraph" format="bedgraph"/> |
184 | 179 | </change_format> |
185 | 180 | </data> |
186 | 181 | </outputs> |
187 | 182 | <tests> |
188 | | - <test> |
189 | | - <param name="bamFile1" value="bowtie2 test1.bam" ftype="bam" /> |
190 | | - <param name="bamFile2" value="bowtie2 test1.bam" ftype="bam" /> |
191 | | - <param name="showAdvancedOpt" value="no" /> |
192 | | - <param name="outFileFormat" value="bigwig" /> |
193 | | - <param name="outFileFormat" value="bedgraph" /> |
194 | | - <param name="binSize" value="5" /> |
195 | | - <param name="type" value="ratio" /> |
196 | | - <output name="outFileName" file="bamCompare_result1.bg" ftype="bedgraph" /> |
| 183 | + <test expect_num_outputs="1"> |
| 184 | + <param name="bamFile1" value="bowtie2 test1.bam" ftype="bam"/> |
| 185 | + <param name="bamFile2" value="bowtie2 test1.bam" ftype="bam"/> |
| 186 | + <param name="showAdvancedOpt" value="no"/> |
| 187 | + <param name="outFileFormat" value="bigwig"/> |
| 188 | + <param name="outFileFormat" value="bedgraph"/> |
| 189 | + <param name="binSize" value="5"/> |
| 190 | + <param name="type" value="ratio"/> |
| 191 | + <output name="outFileName" file="bamCompare_result1.bg" ftype="bedgraph"/> |
197 | 192 | </test> |
198 | | - <test> |
199 | | - <param name="bamFile1" value="bowtie2 test1.bam" ftype="bam" /> |
200 | | - <param name="bamFile2" value="bowtie2 test1.bam" ftype="bam" /> |
201 | | - <param name="showAdvancedOpt" value="yes" /> |
202 | | - <param name="outFileFormat" value="bigwig" /> |
203 | | - <param name="outFileFormat" value="bigwig" /> |
204 | | - <param name="binSize" value="10" /> |
205 | | - <param name="type" value="ratio" /> |
206 | | - <output name="outFileName" file="bamCompare_result2.bw" ftype="bigwig" /> |
| 193 | + <test expect_num_outputs="1"> |
| 194 | + <param name="bamFile1" value="bowtie2 test1.bam" ftype="bam"/> |
| 195 | + <param name="bamFile2" value="bowtie2 test1.bam" ftype="bam"/> |
| 196 | + <param name="showAdvancedOpt" value="yes"/> |
| 197 | + <param name="outFileFormat" value="bigwig"/> |
| 198 | + <param name="outFileFormat" value="bigwig"/> |
| 199 | + <param name="binSize" value="10"/> |
| 200 | + <param name="type" value="ratio"/> |
| 201 | + <output name="outFileName" file="bamCompare_result2.bw" ftype="bigwig"/> |
207 | 202 | </test> |
208 | 203 | </tests> |
209 | 204 | <help> |
@@ -248,5 +243,5 @@ Like BAM files, bigWig files are compressed, binary files. If you would like to |
248 | 243 | @REFERENCES@ |
249 | 244 | ]]> |
250 | 245 | </help> |
251 | | - <expand macro="citations" /> |
| 246 | + <expand macro="citations"/> |
252 | 247 | </tool> |
0 commit comments