Mercurial > repos > ufz > omero_filter
view omero_filter.xml @ 5:e6b2a026843d draft default tip
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 3a3a04c0b20310f8d4fbc5be27559353c7e2cc61
| author | ufz |
|---|---|
| date | Tue, 10 Feb 2026 16:47:59 +0000 |
| parents | 25d2036b9b8b |
| children |
line wrap: on
line source
<tool id="omero_filter" name="OMERO IDs" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@" license="MIT"> <description> with ezomero </description> <macros> <import>macros.xml</import> <token name="@VERSION_SUFFIX@">3</token> </macros> <xrefs> <xref type="bio.tools">omero</xref> </xrefs> <expand macro="ezomero_requirements"/> <required_files> <include path="connect_omero.py" /> <include path="omero_filter.py" /> </required_files> <command detect_errors="exit_code"><![CDATA[ #if $test_username != "" export OMERO_USER="$test_username" && export OMERO_PASSWORD="$test_password" && #end if python '$__tool_directory__'/omero_filter.py @HOST_PORT@ --filter $filter_type.filter --value1 '$filter_type.value1' --id '$filter_type.did' --tsv_file '$tsv' #if $filter == "KP" --value2 '$filter_type.value2' #end if @SESSION_ID@ ]]></command> <inputs> <expand macro="host_port"/> <conditional name = "filter_type"> <param name="filter" type="select" optional="false" label="Filter type to apply:"> <option value="filename">Filename</option> <option value="KP">Key-Value</option> <option value="tag">Tag</option> </param> <when value="filename"> <param name="value1" type="text" label="Filename to search among the image IDs"> <validator type="regex" message="Enter a valid filename to search in the OMERO server">^[\w\-. ]+$</validator> </param> <param name="value2" value="" type="hidden" label="Not necessary filter"/> <param name="did" type="text" label="List of images IDs"> <validator type="regex" message="Enter a valid list of IDs (i.e. 2,45,56,67)">^\d+(,\d+)*$</validator> </param> </when> <when value="KP"> <param name="value1" type="text" label="Key to search among the image IDs"> <validator type="regex" message="Enter a valid Key to search in the OMERO server">^[\w\-. ]+$</validator> </param> <param name="value2" type="text" label="Value to search among the image IDs"> <validator type="regex" message="Enter a valid Value to search in the OMERO server">^[\w\-. ]+$</validator> </param> <param name="did" type="text" label="List of images IDs"> <validator type="regex" message="Enter a valid list of IDs (i.e. 2,45,56,67)">^\d+(,\d+)*$</validator> </param> </when> <when value="tag"> <param name="value1" type="text" label="Tag to search among the images IDs"> <validator type="regex" message="Enter a valid Key to search in the OMERO server">^[\w\-. ]+$</validator> </param> <param name="value2" value="" optional="true" type="hidden" label="Not necessary filter"/> <param name="did" type="text" label="List of images IDs"> <validator type="regex" message="Enter a valid list of IDs (i.e. 2,45,56,67)">^(\d+)(,\d+)*$</validator> </param> </when> </conditional> </inputs> <outputs> <data name="tsv" format="tabular"/> </outputs> <tests> <test> <param name="omero_host" value="host.docker.internal"/> <param name="omero_port" value="6064"/> <conditional name="filter_type"> <param name="filter" value="filename"/> <param name="value1" value="sample_image.jpg"/> <param name="did" value="1,2"/> </conditional> <param name="test_username" value="root"/> <param name="test_password" value="omero"/> <output name="tsv" value="output_filter_filename.tsv" ftype="tabular"> <assert_contents> <has_text text="1"/> <has_n_columns n="1"/> </assert_contents> </output> </test> <test> <param name="omero_host" value="host.docker.internal"/> <param name="omero_port" value="6064"/> <conditional name="filter_type"> <param name="filter" value="tag"/> <param name="value1" value="test_tag"/> <param name="did" value="1,2"/> </conditional> <param name="test_username" value="root"/> <param name="test_password" value="omero"/> <output name="tsv" value="output_filter_tag.tsv" ftype="tabular"> <assert_contents> <has_text text="1"/> <has_n_columns n="1"/> </assert_contents> </output> </test> </tests> <help> Description ----------- - Tool to filter images IDs by filename, Key-Value Pairs and Tag value. - For Key-Value Pairs search, two values are required (Value1 = Key, Value2 = Pair). - IDs are a list of image IDs which can be fetched using the omero_get tool. @SECURITY_DISCLAIMER@ </help> <citations> <citation type="doi">10.1038/nmeth.1896</citation> </citations> </tool>
