Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
cb0aa6e
cellprofiler: clean element identifiers used as input file names
mvdbeek Nov 25, 2026
633e4e5
cellprofiler: quote the tarball path
mvdbeek Nov 25, 2026
379deab
cellprofiler: keep inputs whose cleaned names coincide
mvdbeek Nov 25, 2026
4cae778
cellprofiler_v4: clean element identifiers used as input file names
mvdbeek Nov 25, 2026
d389d25
cellprofiler_v4: quote the tarball path
mvdbeek Nov 25, 2026
a52d2c3
cellprofiler_v4: keep inputs whose cleaned names coincide
mvdbeek Nov 25, 2026
fdbe628
diff: clean element identifiers used in the HTML report title
mvdbeek Nov 25, 2026
87ace8c
gfastats: quote target sequences and anchor their validator
mvdbeek Nov 25, 2026
deedc59
gfastats: quote the include/exclude BED paths
mvdbeek Nov 25, 2026
9eb0670
imagemagick: clean element identifiers in compare
mvdbeek Nov 25, 2026
85e1f9a
imagemagick: clean element identifiers in montage
mvdbeek Nov 25, 2026
3421091
imagemagick: keep montage inputs whose cleaned names coincide
mvdbeek Nov 25, 2026
731806e
openbabel: validate the SMARTS pattern of obgrep
mvdbeek Nov 25, 2026
f2def2d
openbabel: quote input arguments of the multi-pattern search
mvdbeek Nov 25, 2026
8add7ff
text_processing: pass replace-in-column patterns to awk as data
mvdbeek Nov 25, 2026
0ceadeb
sklearn: clean element identifiers in keras_train_and_eval
mvdbeek Nov 25, 2026
b8166d6
sklearn: clean the target file name in train_test_eval
mvdbeek Nov 25, 2026
a35b5b0
sklearn: clean the target file name in searchcv
mvdbeek Nov 25, 2026
795fda6
sklearn: write the target path of model_validation as a Python literal
mvdbeek Nov 25, 2026
de6be92
flexynesis: clean assay names used as file and layer names
mvdbeek Nov 25, 2026
17e5c1c
flexynesis: clean assay names in flexynesis_infer
mvdbeek Nov 25, 2026
2cf51bb
flexynesis: clean element identifiers in flexynesis_utils
mvdbeek Nov 25, 2026
d8af517
flexynesis: write column indexes of flexynesis_utils as integers
mvdbeek Nov 25, 2026
acea876
flexynesis: keep split_data omics files whose cleaned names coincide
mvdbeek Nov 25, 2026
e636a46
sylph: clean element identifiers used as read and genome file names
mvdbeek Nov 25, 2026
0e49ad9
sylph: keep group inputs whose cleaned names coincide
mvdbeek Nov 25, 2026
6f886dd
split_file_to_collection: keep output file names inside the output di…
mvdbeek Nov 25, 2026
1bb3fca
split_file_to_collection: keep column values whose cleaned names coin…
mvdbeek Nov 25, 2026
f52999f
openbabel: bump the versions of the remaining tools
mvdbeek Nov 25, 2026
3691493
openbabel: drop the output from the subsearch test that expects failure
mvdbeek Nov 25, 2026
ee174a4
imagemagick: bump the convert tool version
mvdbeek Nov 25, 2026
0a9bcde
cellprofiler: bump the versions of the remaining tools
mvdbeek Nov 25, 2026
3114203
cellprofiler: list the PathName measurement category once
mvdbeek Nov 25, 2026
47dcf0b
cellprofiler: drop test parameters that have no matching input
mvdbeek Nov 25, 2026
8f13024
cellprofiler: nest test parameters under their sections and conditionals
mvdbeek Nov 25, 2026
515b61c
cellprofiler: point the shed metadata at each repository directory
mvdbeek Nov 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!--parallelism method="multi" split_inputs="infile" split_mode="to_size" split_size="10000" shared_inputs="" merge_outputs="outfile"></parallelism-->
<macros>
<import>macros.xml</import>
<token name="@GALAXY_VERSION@">1</token>
<token name="@GALAXY_VERSION@">2</token>
</macros>
<expand macro="requirements"/>
<required_files>
Expand Down
2 changes: 1 addition & 1 deletion chemicaltoolbox/openbabel/distance_finder.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<description>- determine the minimum distances between a molecule and a set of 3D points</description>
<macros>
<import>macros.xml</import>
<token name="@GALAXY_VERSION@">1</token>
<token name="@GALAXY_VERSION@">2</token>
</macros>
<expand macro="requirements"/>
<required_files>
Expand Down
2 changes: 1 addition & 1 deletion chemicaltoolbox/openbabel/ob_addh.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!--parallelism method="multi" split_inputs="infile" split_mode="to_size" split_size="10000" shared_inputs="" merge_outputs="outfile"></parallelism-->
<macros>
<import>macros.xml</import>
<token name="@GALAXY_VERSION@">2</token>
<token name="@GALAXY_VERSION@">3</token>
</macros>
<expand macro="requirements"/>
<required_files>
Expand Down
2 changes: 1 addition & 1 deletion chemicaltoolbox/openbabel/ob_convert.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-->
<macros>
<import>macros.xml</import>
<token name="@GALAXY_VERSION@">2</token>
<token name="@GALAXY_VERSION@">3</token>
</macros>
<expand macro="requirements"/>
<command detect_errors="aggressive">
Expand Down
2 changes: 1 addition & 1 deletion chemicaltoolbox/openbabel/ob_depiction_svg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<description>of compounds</description>
<macros>
<import>macros.xml</import>
<token name="@GALAXY_VERSION@">2</token>
<token name="@GALAXY_VERSION@">3</token>
</macros>
<expand macro="requirements"/>
<command detect_errors="aggressive">
Expand Down
2 changes: 1 addition & 1 deletion chemicaltoolbox/openbabel/ob_filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!--parallelism method="multi" split_inputs="infile" split_mode="to_size" split_size="10000" shared_inputs="" merge_outputs="outfile"></parallelism-->
<macros>
<import>macros.xml</import>
<token name="@GALAXY_VERSION@">1</token>
<token name="@GALAXY_VERSION@">2</token>
</macros>
<expand macro="requirements"/>
<required_files>
Expand Down
2 changes: 1 addition & 1 deletion chemicaltoolbox/openbabel/ob_genProp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!--parallelism method="multi" split_inputs="infile" split_mode="to_size" split_size="10000" shared_inputs="" merge_outputs="outfile"></parallelism-->
<macros>
<import>macros.xml</import>
<token name="@GALAXY_VERSION@">2</token>
<token name="@GALAXY_VERSION@">3</token>
</macros>
<expand macro="requirements"/>
<required_files>
Expand Down
10 changes: 6 additions & 4 deletions chemicaltoolbox/openbabel/ob_grep.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!--parallelism method="multi" split_inputs="infile" split_mode="to_size" split_size="10000" shared_inputs="" merge_outputs="outfile"></parallelism-->
<macros>
<import>macros.xml</import>
<token name="@GALAXY_VERSION@">2</token>
<token name="@GALAXY_VERSION@">3</token>
</macros>
<options sanitize="False"/>
<expand macro="requirements"/>
Expand All @@ -25,8 +25,8 @@
> '${outfile}'
#else if $input_type.inp == 'multi':
python '$__tool_directory__/multi_obgrep.py'
-i $infile
--iformat ${infile.ext}
-i '$infile'
--iformat '${infile.ext}'
-q '${input_type.query}'
-o '${outfile}'
$invert_matches
Expand All @@ -47,7 +47,9 @@
<option value="multi">Upload one or more SMARTS patterns in a text file</option>
</param>
<when value="single">
<param name="smarts_pattern" type="text" label="SMARTS Pattern" help="Specify a SMARTS Pattern for your search."/>
<param name="smarts_pattern" type="text" label="SMARTS Pattern" help="Specify a SMARTS Pattern for your search.">
<validator type="regex" message="Enter a single SMARTS pattern without spaces or quotes">^[A-Za-z0-9\[\]()=#$@+*~:;,!&amp;%./\\^?{}&lt;&gt;][A-Za-z0-9\[\]()=#$@+*~:;,!&amp;%./\\^?{}&lt;&gt;-]*$</validator>
</param>
</when>
<when value="multi">
<param name="query" type='data' format="tabular,txt" label="Query file" help="One SMARTS pattern in each line."/>
Expand Down
2 changes: 1 addition & 1 deletion chemicaltoolbox/openbabel/ob_prepare_ligands.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<description>Tool to prepare ligands for docking with tools like Autodock Vina</description>
<macros>
<import>macros.xml</import>
<token name="@GALAXY_VERSION@">1</token>
<token name="@GALAXY_VERSION@">2</token>
</macros>
<expand macro="requirements"/>
<command detect_errors="aggressive"><![CDATA[
Expand Down
2 changes: 1 addition & 1 deletion chemicaltoolbox/openbabel/ob_remDuplicates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!--parallelism method="multi" split_inputs="infile" split_mode="to_size" split_size="10000" shared_inputs="" merge_outputs="outfile"></parallelism-->
<macros>
<import>macros.xml</import>
<token name="@GALAXY_VERSION@">1</token>
<token name="@GALAXY_VERSION@">2</token>
</macros>
<expand macro="requirements"/>
<command detect_errors="aggressive">
Expand Down
2 changes: 1 addition & 1 deletion chemicaltoolbox/openbabel/ob_remIons.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!--parallelism method="multi" split_inputs="infile" split_mode="to_size" split_size="50000" shared_inputs="" merge_outputs="outfile"></parallelism-->
<macros>
<import>macros.xml</import>
<token name="@GALAXY_VERSION@">3</token>
<token name="@GALAXY_VERSION@">4</token>
</macros>
<expand macro="requirements"/>
<required_files>
Expand Down
2 changes: 1 addition & 1 deletion chemicaltoolbox/openbabel/ob_remSmall.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!--parallelism method="multi" split_inputs="infile" split_mode="to_size" split_size="10000" shared_inputs="" merge_outputs="outfile"></parallelism-->
<macros>
<import>macros.xml</import>
<token name="@GALAXY_VERSION@">1</token>
<token name="@GALAXY_VERSION@">2</token>
</macros>
<expand macro="requirements"/>
<command detect_errors="aggressive">
Expand Down
2 changes: 1 addition & 1 deletion chemicaltoolbox/openbabel/ob_spectrophore_search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<description>- similarity search based on 1D chemical features</description>
<macros>
<import>macros.xml</import>
<token name="@GALAXY_VERSION@">2</token>
<token name="@GALAXY_VERSION@">3</token>
</macros>
<expand macro="requirements">
<requirement type="package" version="1.19.1">numpy</requirement>
Expand Down
2 changes: 1 addition & 1 deletion chemicaltoolbox/openbabel/remove_protonation_state.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!--parallelism method="multi" split_inputs="infile" split_mode="to_size" split_size="10000" shared_inputs="" merge_outputs="outfile"></parallelism-->
<macros>
<import>macros.xml</import>
<token name="@GALAXY_VERSION@">2</token>
<token name="@GALAXY_VERSION@">3</token>
</macros>
<expand macro="requirements"/>
<required_files>
Expand Down
3 changes: 1 addition & 2 deletions chemicaltoolbox/openbabel/subsearch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<description>of fingerprint data sets</description>
<macros>
<import>macros.xml</import>
<token name="@GALAXY_VERSION@">2</token>
<token name="@GALAXY_VERSION@">3</token>
</macros>
<expand macro="requirements"/>
<required_files>
Expand Down Expand Up @@ -52,7 +52,6 @@
<composite_data value='molecule.fs'/>
</param>
<param name="oformat" value="names" />
<output name="outfile" ftype="tabular" file="ob_subsearch_with_CID2244.tabular" />
</test>
</tests>
<help>
Expand Down
5 changes: 4 additions & 1 deletion tools/cellprofiler/.shed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ owner: bgruening
categories:
- Imaging
description: cellProfiler wrapper
remote_repository_url: https://github.com/bgruening/galaxytools/tree/master/tools
homepage_url: https://github.com/CellProfiler/CellProfiler
long_description: |
cellProfiler is free, open-source software for quantitative analysis of biological images
remote_repository_url: https://github.com/bgruening/galaxytools/tree/master/tools/cellprofiler
type: unrestricted
auto_tool_repositories:
name_template: "{{ tool_id }}"
Expand Down
12 changes: 8 additions & 4 deletions tools/cellprofiler/cellprofiler.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<description>with CellProfiler 3</description>
<macros>
<import>macros.xml</import>
<token name="@VERSION_SUFFIX@">1</token>
<import>element_identifier_macros.xml</import>
<token name="@VERSION_SUFFIX@">2</token>
<xml name="test_assert_content" token_n="291">
<assert_contents>
<has_n_lines n="@N@" />
Expand All @@ -26,14 +27,17 @@
]]></command>
<configfiles>
<configfile name="script_file">
@SAFE_ELEMENT_IDENTIFIER@
@SAFE_ELEMENT_IDENTIFIERS@
mkdir ./input
mkdir ./output

#if $con_input_type.input_type =="yes"
tar -C ./input -xvf $con_input_type.input_images
tar -C ./input -xvf '$con_input_type.input_images'
#else
#for $i, $filename in enumerate($con_input_type.input_images):
ln -s '$filename' './input/${filename.element_identifier}.${filename.ext}'
## unique cleaned names, so no image is lost when two identifiers clean to the same name
#for $filename, $name in zip($con_input_type.input_images, $safe_element_identifiers($con_input_type.input_images)):
ln -s '$filename' './input/${name}.${filename.ext}'
#end for
#end if

Expand Down
5 changes: 1 addition & 4 deletions tools/cellprofiler/color_to_gray.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<description>with CellProfiler</description>
<macros>
<import>macros.xml</import>
<token name="@VERSION_SUFFIX@">1</token>
<token name="@VERSION_SUFFIX@">2</token>
<xml name="combine_weight">
<param name="weight_red_channel" value="1.0" min = "0.0" max = "1.0" type="float" label="Relative weight of the red channel" />
<param name="weight_green_channel" value="1.0" min = "0.0" max = "1.0" type="float" label="Relative weight of the green channel" />
Expand Down Expand Up @@ -215,7 +215,6 @@
<param name="name_input_image" value="DNA" />
<conditional name="con_conversion_method">
<param name="conversion_method" value="Split"/>
<param name="name_output_image" value="OrigGray" />
<conditional name="con_image_type">
<param name = "image_type" value="HSV"/>
<conditional name="con_convert_hue">
Expand All @@ -239,7 +238,6 @@
<param name="name_input_image" value="DNA" />
<conditional name="con_conversion_method">
<param name="conversion_method" value="Split"/>
<param name="name_output_image" value="DNA" />
<conditional name="con_image_type">
<param name = "image_type" value="RGB"/>
<conditional name="con_convert_red">
Expand All @@ -264,7 +262,6 @@
<param name="name_input_image" value="DNA" />
<conditional name="con_conversion_method">
<param name="conversion_method" value="Split"/>
<param name="name_output_image" value="DNA" />
<conditional name="con_image_type">
<param name = "image_type" value="Channels"/>
<repeat name="rpt_channel">
Expand Down
2 changes: 1 addition & 1 deletion tools/cellprofiler/convert_objects_to_image.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<description>with CellProfiler</description>
<macros>
<import>macros.xml</import>
<token name="@VERSION_SUFFIX@">1</token>
<token name="@VERSION_SUFFIX@">2</token>
</macros>
<edam_operations>
<edam_operation>operation_3443</edam_operation>
Expand Down
6 changes: 1 addition & 5 deletions tools/cellprofiler/display_data_on_image.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<description>with CellProfiler</description>
<macros>
<import>macros.xml</import>
<token name="@VERSION_SUFFIX@">1</token>
<token name="@VERSION_SUFFIX@">2</token>
<xml name="display_object">
<param name="select_input_obj" label="Enter the name of the input objects" type="text" help="Enter the name of the objects identified by some other tool used upstream in the workflow (such as IdentifyPrimaryObjects or IdentifySecondaryObjects)." />

Expand Down Expand Up @@ -38,7 +38,6 @@
<option value="PathName">PathName</option>
<option value="Scaling">Scaling</option>
<option value="Series">Series</option>
<option value="PathName">PathName</option>
<option value="Threshold">Threshold</option>
<option value="URL">URL</option>
<option value="Width">Width</option>
Expand Down Expand Up @@ -76,9 +75,6 @@
<when value="Series">
<param name="measurement" label="Measurement" type="text" />
</when>
<when value="PathName">
<param name="measurement" label="Measurement" type="text" />
</when>
<when value="Threshold">
<param name="measurement" label="Measurement" type="text" />
<param name="image_thresh_objects" label="Objects" type="text"/>
Expand Down
56 changes: 56 additions & 0 deletions tools/cellprofiler/element_identifier_macros.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<macros>
<!-- Element identifiers and dataset names are free text chosen by the user and
Galaxy does not sanitize them. @SAFE_ELEMENT_IDENTIFIER@ defines a Cheetah
function that turns one into a safe file name: every character other than
word characters, '-' and '.' becomes '_', a leading '-' or '.' becomes '_'
as well, and an empty name becomes '_'. The result must still be quoted.

Usage: symlink this file into the tool directory, import it, expand the
token once at the top of each <command> or <configfile> that needs it:

@SAFE_ELEMENT_IDENTIFIER@
#set $name = $safe_element_identifier($input.element_identifier)
ln -s '$input' '$name' &&

Galaxy 26.2 provides $input.safe_element_identifier, which is stricter
(ASCII only, bounded length). Use that instead once the tool profile
allows it. -->
<token name="@SAFE_ELEMENT_IDENTIFIER@"><![CDATA[
#import re
#def safe_element_identifier($identifier)
#set $name = re.sub('[^\\w\\-.]', '_', str($identifier))
#if not $name
#set $name = '_'
#end if
#return re.sub('^[-.]', '_', $name)
#end def
]]></token>
<!-- @SAFE_ELEMENT_IDENTIFIERS@ defines $safe_element_identifiers(items) for several
inputs that end up in one directory. It returns one name per item, in order:
each element identifier (or string) cleaned like $safe_element_identifier, with
_2, _3, ... added to a name that is already taken, so different identifiers that
clean to the same name ("a b", "a_b") stay distinct. It calls
$safe_element_identifier, so expand both tokens:

@SAFE_ELEMENT_IDENTIFIER@
@SAFE_ELEMENT_IDENTIFIERS@
#for $input, $name in zip($inputs, $safe_element_identifiers($inputs))
ln -s '$input' '${name}.${input.ext}' &&
#end for -->
<token name="@SAFE_ELEMENT_IDENTIFIERS@"><![CDATA[
#def safe_element_identifiers($items)
#set $names = []
#for $item in $items
#set $base = $safe_element_identifier(getattr($item, 'element_identifier', $item))
#set $name = $base
#set $n = 1
#while $name in $names
#set $n += 1
#set $name = '%s_%d' % ($base, $n)
#end while
#silent $names.append($name)
#end for
#return $names
#end def
]]></token>
</macros>
2 changes: 1 addition & 1 deletion tools/cellprofiler/enhance_or_suppress_features.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<macros>
<import>macros.xml</import>
<token name="@VERSION_SUFFIX@">1</token>
<token name="@VERSION_SUFFIX@">2</token>
<xml name="feature_speckles">
<param name="speckles_feature_size" label="Feature size" type="integer" value="10" help="Enter the diameter of the largest speckle, the width of the circle, or the width of the neurites to be enhanced or suppressed, which will be used to calculate an appropriate filter size." />
<param name="speed_accuracy" label="Speed and accuracy" type="select">
Expand Down
6 changes: 1 addition & 5 deletions tools/cellprofiler/export_to_spreadsheet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<description>with CellProfiler</description>
<macros>
<import>macros.xml</import>
<token name="@VERSION_SUFFIX@">2</token>
<token name="@VERSION_SUFFIX@">3</token>
<xml name="metadata_sample_row" >
<param name="metadata_category" type="select" label="Select the metadata to use as the identifier">
<option value="FileName">File name</option>
Expand Down Expand Up @@ -210,7 +210,6 @@ with open(input_pipeline) as fin:
<!-- create gene pattern =no-->
<expand macro="test_input_pipeline_param" />
<param name="delimiter" value="Tab" />
<param name="output_file_location" value="Default Output Folder" />
<conditional name="con_prefix">
<param name="add_prefix" value="No"/>
</conditional>
Expand All @@ -230,7 +229,6 @@ with open(input_pipeline) as fin:
<!-- create gene=yes , source of sampe row name= metadata-->
<expand macro="test_input_pipeline_param" />
<param name="delimiter" value="Tab" />
<param name="output_file_location" value="Default Output Folder" />
<conditional name="con_prefix">
<param name="add_prefix" value="No"/>
</conditional>
Expand All @@ -254,7 +252,6 @@ with open(input_pipeline) as fin:
<!-- create gene=yes , source of sampe row name= image filename-->
<expand macro="test_input_pipeline_param" />
<param name="delimiter" value="Tab" />
<param name="output_file_location" value="Default Output Folder" />
<conditional name="con_prefix">
<param name="add_prefix" value="Yes"/>
<param name="filename_prefix" value="MyExpt_" />
Expand All @@ -279,7 +276,6 @@ with open(input_pipeline) as fin:
<!--repeat test for multiple data export. create gene=yes , source of sampe row name= image filename-->
<expand macro="test_input_pipeline_param" />
<param name="delimiter" value="Tab" />
<param name="output_file_location" value="Default Output Folder" />
<conditional name="con_prefix">
<param name="add_prefix" value="Yes"/>
<param name="filename_prefix" value="MyExpt_" />
Expand Down
2 changes: 1 addition & 1 deletion tools/cellprofiler/gray_to_color.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<description>with CellProfiler</description>
<macros>
<import>macros.xml</import>
<token name="@VERSION_SUFFIX@">1</token>
<token name="@VERSION_SUFFIX@">2</token>
<xml name="rgb">
<param name="rgb_red" label="Enter the name of the image to be colored red" value="Leave this black" type="text"/>
<param name="rgb_red_weight" label="Relative weight for the red image" optional="true" type="float" min="0.0" max="1.0" value="1.0" />
Expand Down
Loading
Loading