Skip to content

Commit 90ce478

Browse files
authored
Merge pull request #1344 from pavanvidem/galaxy-4.0.0-update2
initial fix of the remaining Galaxy tools
2 parents 027ec1b + 40b41bf commit 90ce478

27 files changed

+34
-33
lines changed

galaxy/wrapper/alignmentSieve.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
@THREADS@
2020
-b one.bam
2121
--label '$label'
22-
#if str($filterRNAstrand) != 'no':
22+
#if $filterRNAstrand:
2323
--filterRNAstrand '$filterRNAstrand'
2424
#end if
2525
2626
$ignoreDuplicates
2727
2828
#if $minMappingQuality:
29-
--minMappingQuality '$minMappingQuality'
29+
--minMappingQuality $minMappingQuality
3030
#end if
3131
3232
#if $samFlagInclude:
@@ -98,10 +98,9 @@
9898
take strand into consideration for strand-specific
9999
protocols. Note that only properly paired reads are considered."/>
100100
<param argument="--ATACshift" type="boolean" label="Shift fragment ends as appropriate for ATAC-seq"/>
101-
<param argument="filterRNAstrand" type="select" label="Only include reads originating from fragments from the forward or reverse strand."
101+
<param argument="filterRNAstrand" type="select" optional="true" label="Only include reads originating from fragments from the forward or reverse strand."
102102
help="By default (the no option), all reads are processed, regardless of the strand they originated from. For RNAseq, it can be useful to separately create bigWig files for the forward or reverse strands.
103103
Note that this tools assumes that a dUTP-based method was used, so fragments will be assigned to the reverse strand if the second read in a pair is reverse complemented.">
104-
<option value="no" selected="true">no</option>
105104
<option value="forward">forward</option>
106105
<option value="reverse">reverse</option>
107106
</param>

galaxy/wrapper/deepTools_macros.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
$advancedOpt.ignoreDuplicates
5050
$advancedOpt.centerReads
5151
#if $advancedOpt.minMappingQuality:
52-
--minMappingQuality '$advancedOpt.minMappingQuality'
52+
--minMappingQuality $advancedOpt.minMappingQuality
5353
#end if
5454
#if $advancedOpt.samFlagInclude:
5555
--samFlagInclude $advancedOpt.samFlagInclude
@@ -716,7 +716,7 @@ is vital to you, select Yes below.">
716716
</xml>
717717

718718
<xml name="output_dpi">
719-
<param argument="--dpi" name="dpi" type="integer" value="200" size="3" optional="True"
719+
<param argument="--dpi" type="integer" value="200" size="3" optional="True"
720720
label="Image dpi" help=""/>
721721
</xml>
722722

galaxy/wrapper/multiBamSummary.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@
9797
</data>
9898
</outputs>
9999
<tests>
100-
<test>
100+
<test expect_num_outputs="1">
101101
<param name="bamfiles" value="bowtie2 test1.bam,bowtie2 test1.bam" ftype="bam" />
102102
<param name="modeOpt" value="bins" />
103103
<param name="binSize" value="10" />
104104
<output name="outFile" file="multiBamSummary_result1.npz" ftype="deeptools_coverage_matrix" compare="sim_size" />
105105
</test>
106-
<test>
106+
<test expect_num_outputs="1">
107107
<param name="bamfiles" value="bowtie2 test1.bam,bowtie2 test1.bam" ftype="bam" />
108108
<param name="modeOpt" value="BED-file" />
109109
<param name="region_file" value="multiBamSummary_regions.bed" />

galaxy/wrapper/multiBigwigSummary.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
--outFileName $outFile
2020
2121
--bwfiles #echo ' '.join($files)#
22-
22+
2323
#if $custom_sample_labels_conditional.custom_labels_select == 'Yes'
2424
--labels #echo ' '.join($custom_sample_labels_conditional.labels)#
2525
#end if
@@ -86,13 +86,13 @@
8686
</data>
8787
</outputs>
8888
<tests>
89-
<test>
89+
<test expect_num_outputs="1">
9090
<param name="bigwigfiles" value="test.bw,test.bw" ftype="bigwig" />
9191
<param name="modeOpt" value="bins" />
9292
<param name="binSize" value="10" />
9393
<output name="outFile" file="multiBigwigSummary_result1.npz" ftype="deeptools_coverage_matrix" compare="sim_size" />
9494
</test>
95-
<test>
95+
<test expect_num_outputs="2">
9696
<param name="bigwigfiles" value="test.bw,test.bw" ftype="bigwig" />
9797
<param name="modeOpt" value="bins" />
9898
<param name="binSize" value="10" />

galaxy/wrapper/plotCorrelation.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@
109109
</data>
110110
</outputs>
111111
<tests>
112-
<test>
112+
<test expect_num_outputs="1">
113113
<param name="corData" value="multiBamSummary_result1.npz" ftype="deeptools_coverage_matrix" />
114114
<param name="outFileFormat" value="png" />
115115
<param name="outFileCorMatrix" value="True" />
116116
<output name="matrix" file="plotCorrelation_result1.tabular" ftype="tabular" />
117117
<output name="outFileName" file="plotCorrelation_result1.png" ftype="png" compare="sim_size" delta="400" />
118118
</test>
119-
<test>
119+
<test expect_num_outputs="1">
120120
<param name="corData" value="multiBamSummary_result1.npz" ftype="deeptools_coverage_matrix" />
121121
<param name="outFileFormat" value="png" />
122122
<param name="whatToPlot" value="scatterplot" />

galaxy/wrapper/plotCoverage.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
</data>
115115
</outputs>
116116
<tests>
117-
<test>
117+
<test expect_num_outputs="2">
118118
<param name="bamfiles" value="bowtie2 test1.bam,bowtie2 test1.bam" ftype="bam" />
119119
<!--param name="outFileFormat" value="png" /-->
120120
<param name="showAdvancedOpt" value="yes" />
@@ -123,7 +123,7 @@
123123
<output name="outFileRawCounts" file="plotCoverage_result1.tabular" ftype="tabular" />
124124
<output name="outFileName" file="plotCoverage_result1.png" ftype="png" compare="sim_size" delta="2400" />
125125
</test>
126-
<test>
126+
<test expect_num_outputs="2">
127127
<param name="bamfiles" value="bowtie2 test1.bam,bowtie2 test1.bam" ftype="bam" />
128128
<param name="showAdvancedOpt" value="yes" />
129129
<param name="plotTitle" value="Test Title from Galaxy" />

galaxy/wrapper/plotEnrichment.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
$advancedOpt.perSample
4949
5050
$advancedOpt.variableScales
51-
51+
5252
$advancedOpt.perSample
5353
5454
$advancedOpt.variableScales
@@ -175,7 +175,7 @@
175175
</data>
176176
</outputs>
177177
<tests>
178-
<test>
178+
<test expect_num_outputs="2">
179179
<param name="bamfiles" value="bowtie2 test1.bam,bowtie2 test1.bam" ftype="bam" />
180180
<param name="BED" value="multiBamSummary_regions.bed,multiBamSummary_regions.bed" ftype="bed" />
181181
<param name="outRawCounts" value="true" />

galaxy/wrapper/plotFingerprint.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@
114114
</data>
115115
</outputs>
116116
<tests>
117-
<test>
117+
<test expect_num_outputs="1">
118118
<param name="bamfiles" value="bowtie2 test1.bam,bowtie2 test1.bam" ftype="bam" />
119119
<param name="showAdvancedOpt" value="no" />
120120
<param name="showOutputSettings" value="no" />
121121
<output name="outFileName" file="plotFingerprint_result1.png" ftype="png" compare="sim_size" />
122122
</test>
123-
<test>
123+
<test expect_num_outputs="3">
124124
<param name="bamfiles" value="bowtie2 test1.bam,bowtie2 test1.bam" ftype="bam" />
125125
<param name="showAdvancedOpt" value="yes" />
126126
<param name="showOutputSettings" value="yes" />

galaxy/wrapper/plotHeatmap.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,13 @@
143143
<param argument="--sortUsingSamples" type="text"
144144
label="List of samples to be used for sorting"
145145
help="List of sample numbers (order as in matrix), which are used by --sortUsing for sorting.
146-
If no value is set, it uses all samples. Example: 1 3 (space separated!)" />
146+
If no value is set, it uses all samples. Example: 1 3 (space separated!)">
147147
<sanitizer>
148148
<valid initial="string.printable">
149149
<add value=" "/>
150150
</valid>
151151
</sanitizer>
152+
</param>
152153
<param argument="--linesAtTickMarks" type="boolean" truevalue="--linesAtTickMarks" falsevalue=""
153154
label="Draw dashed lines in heatmap above all tick marks?" />
154155
<param argument="--averageTypeSummaryPlot" type="select"
@@ -246,12 +247,13 @@
246247
<param argument="--clusterUsingSamples" type="text"
247248
label="List of samples to be used for clustering"
248249
help="List of sample numbers (order as in matrix), which are used by --kmeans or --hclust for clustering.
249-
If no value is set, it uses all samples. Example: 1 3 (space separated!)"/>
250+
If no value is set, it uses all samples. Example: 1 3 (space separated!)">
250251
<sanitizer>
251252
<valid initial="string.printable">
252253
<add value=" "/>
253254
</valid>
254255
</sanitizer>
256+
</param>
255257
</when>
256258
</conditional>
257259
</inputs>
@@ -261,11 +263,11 @@
261263
<expand macro="output_save_matrix_values" />
262264
</outputs>
263265
<tests>
264-
<test>
266+
<test expect_num_outputs="1">
265267
<param name="matrixFile" value="computeMatrix_result1.gz" ftype="deeptools_compute_matrix_archive" />
266268
<output name="outFileName" file="heatmapper_result1.png" ftype="png" compare="sim_size" delta="4000" />
267269
</test>
268-
<test>
270+
<test expect_num_outputs="1">
269271
<param name="matrixFile" value="computeMatrix_result1.gz" ftype="deeptools_compute_matrix_archive" />
270272
<param name="showAdvancedOpt" value="yes" />
271273
<param name="whatToShow" value="heatmap and colorbar" />

galaxy/wrapper/plotPCA.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@
4444
<when value="no" />
4545
<when value="yes">
4646
<expand macro="plotWidthHeight" PLOTWIDTH="10.0" PLOTHEIGHT="10.0" />
47-
<param name="PCs" argument="--PCs" label="Principal components to plot" value="1 2" type="text"
47+
<param argument="--PCs" label="Principal components to plot" value="1 2" type="text"
4848
help="The principal components to plot. If specified, you must provide two different integers, greater than zero, separated by a space. An example (and the default) is '1 2'." />
49-
<param name="ntop" argument="--ntop" label="Number of rows to use" value="1000" type="integer"
49+
<param argument="--ntop" label="Number of rows to use" value="1000" type="integer"
5050
help="Use only the top N most variable rows in the original matrix. Specifying 0 will result in all rows being used. If the matrix is to be transposed, rows with 0 variance are always excluded, even if a values of 0 is specified. The default is 1000." />
51-
<param name="log2" argument="--log2" type="boolean" truevalue="--log2" falsevalue="" label="log2 transform data" help="log2 transform the datapoints prior to computing the PCA. Note that 0.01 is added to all values to prevent 0 values from becoming -infinity. Using this option with input that contains negative values will result in an error." />
51+
<param argument="--log2" type="boolean" truevalue="--log2" falsevalue="" label="log2 transform data" help="log2 transform the datapoints prior to computing the PCA. Note that 0.01 is added to all values to prevent 0 values from becoming -infinity. Using this option with input that contains negative values will result in an error." />
5252
<param argument="--transpose" type="boolean" label="Transpose Matrix?" help="Perform the PCA on the transpose of the matrix, (i.e., with samples as rows and features/genes as columns). This then matches what is typically done in R for RNAseq data." truevalue="--transpose" falsevalue="" />
5353
<param argument="--rowCenter" type="boolean" label="Center Rows?" help="When specified, each row (bin, gene, etc.) in the matrix is centered at 0 before the PCA is computed. This is useful only if you have a strong bin/gene/etc. correlation and the resulting principal component has samples stacked vertically. This option is not applicable if the PCA is performed on the transposed matrix." truevalue="--rowCenter" falsevalue="" />
54-
<param argument="--colors" type="text" name="colors" label="Symbol colors" value="" optional="True"
54+
<param argument="--colors" type="text" label="Symbol colors" value="" optional="True"
5555
help="A list of colors for the symbols. Color names and html hex string (e.g., #eeff22) are accepted. The color names should be space separated. For example, --colors 'red blue green'. If not specified, the symbols will be given automatic colors." />
56-
<param argument="--markers" type="text" name="markers" label="Custom markers" value="" optional="True"
56+
<param argument="--markers" type="text" label="Custom markers" value="" optional="True"
5757
help="A list of markers for the symbols. (e.g., '&lt;','&gt;','o') are accepted. The marker values should be space separated. For example, 's' 'o' 's' 'o'. If not specified, the symbols will be given automatic shapes." />
5858
</when>
5959
</conditional>
@@ -65,14 +65,14 @@
6565
</data>
6666
</outputs>
6767
<tests>
68-
<test>
68+
<test expect_num_outputs="1">
6969
<param name="corData" value="multiBamSummary_result2b.npz" ftype="deeptools_coverage_matrix" />
7070
<param name="plotTitle" value="Test Plot" />
7171
<param name="outFileFormat" value="png" />
7272
<param name="showAdvancedOpt" value="yes" />
7373
<output name="outFileName" file="plotPCA_result1.png" ftype="png" compare="sim_size" delta="12000" />
7474
</test>
75-
<test>
75+
<test expect_num_outputs="2">
7676
<param name="corData" value="multiBamSummary_result2b.npz" ftype="deeptools_coverage_matrix" />
7777
<param name="plotTitle" value="Test Plot" />
7878
<param name="outFileFormat" value="png" />

0 commit comments

Comments
 (0)