Skip to content

Commit 8006980

Browse files
authored
v2.0.0+galaxy1 (#13)
* Add GALAXY_SLOTS variable * Add block_size parameter for 'align samples' tool
1 parent e48ae5b commit 8006980

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

tools/dimspy/align_samples.xml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<tool id="dimspy_align_samples" name="Align Samples" version="@TOOL_VERSION@+galaxy@GALAXY_TOOL_VERSION@">
1+
<tool id="dimspy_align_samples" name="Align Samples" version="@TOOL_VERSION@+galaxy1">
22
<description> - Align peaks across Peaklists</description>
33
<macros>
44
<import>macros.xml</import>
@@ -13,6 +13,8 @@
1313
--filelist '$filelist'
1414
#end if
1515
--ppm $ppm
16+
--ncpu \${GALAXY_SLOTS:-1}
17+
--block-size $adv.block_size
1618
#if $hdf5_to_txt.standard
1719
&&
1820
@HDF5_PM_TO_TXT@
@@ -29,6 +31,9 @@
2931
<param name="ppm" argument="--ppm" type="float" value="2.0" label="Ppm error tolerance" help="Maximum tolerated m/z deviation across samples in parts per million (ppm)." />
3032
<param name="delimiter" argument="--delimiter" type="hidden" value="tab" />
3133
<expand macro="hdf5_pm_to_txt" />
34+
<section name="adv" title="Advanced options" expanded="False">
35+
<param name="block_size" argument="--block-size" type="integer" value="5000" label="Block size" help="The size of each block of peaks to perform clustering on." />
36+
</section>
3237
</inputs>
3338
<outputs>
3439
<expand macro="outputs_peak_intensity_matrix" />
@@ -47,6 +52,22 @@
4752
<output name="hdf5_file_out" file="pm_as.h5" ftype="h5" compare="sim_size"/>
4853
<output name="matrix_file_out" file="peak_matrix_as.txt" ftype="tsv"/>
4954
</test>
55+
<test>
56+
<param name="hdf5_file_in" value="pls_rf.h5" ftype="h5"/>
57+
<param name="ppm" value="2.0"/>
58+
<param name="delimiter" value="tab"/>
59+
<conditional name="hdf5_to_txt" >
60+
<param name="standard" value="True"/>
61+
<param name="comprehensive" value="False"/>
62+
<param name="samples_representations" value="rows"/>
63+
<param name="matrix_attr" value="intensity"/>
64+
</conditional>
65+
<section name="adv">
66+
<param name="block_size" value="10000"/>
67+
</section>
68+
<output name="hdf5_file_out" file="pm_as.h5" ftype="h5" compare="sim_size"/>
69+
<output name="matrix_file_out" file="peak_matrix_as.txt" ftype="tsv"/>
70+
</test>
5071
<test>
5172
<param name="hdf5_file_in" value="pls_rf.h5" ftype="h5"/>
5273
<param name="ppm" value="2.0"/>

tools/dimspy/process_scans.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<tool id="dimspy_process_scans" name="Process Scans (and SIM-Stitch)" version="@TOOL_VERSION@+galaxy@GALAXY_TOOL_VERSION@">
1+
<tool id="dimspy_process_scans" name="Process Scans (and SIM-Stitch)" version="@TOOL_VERSION@+galaxy1">
22
<description> - Read, filter and average MS scans</description>
33
<macros>
44
<import>macros.xml</import>
@@ -56,6 +56,7 @@
5656
#end for
5757
#end if
5858
--report '$report'
59+
--ncpu \${GALAXY_SLOTS:-1}
5960
&&
6061
dimspy hdf5-pls-to-txt
6162
--input '$hdf5_file_out'

tools/dimspy/replicate_filter.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<tool id="dimspy_replicate_filter" name="Replicate Filter" version="@TOOL_VERSION@+galaxy@GALAXY_TOOL_VERSION@">
1+
<tool id="dimspy_replicate_filter" name="Replicate Filter" version="@TOOL_VERSION@+galaxy1">
22
<description> - Remove peaks that fail to appear in at least x-out-of-n (technical) replicates</description>
33
<macros>
44
<import>macros.xml</import>
@@ -19,6 +19,7 @@
1919
--rsd-threshold $rsd_threshold
2020
#end if
2121
--report '$report'
22+
--ncpu \${GALAXY_SLOTS:-1}
2223
&&
2324
dimspy create-sample-list
2425
--input '$hdf5_file_out'

0 commit comments

Comments
 (0)