Mercurial > repos > galaxyp > openms_featurelinkerunlabeled
diff FeatureLinkerUnlabeled.xml @ 15:b46263c3ee99 draft
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
author | galaxyp |
---|---|
date | Thu, 01 Dec 2022 19:06:59 +0000 |
parents | a6e006df7659 |
children | fbe41f0cc71e |
line wrap: on
line diff
--- a/FeatureLinkerUnlabeled.xml Fri Nov 06 20:09:42 2020 +0000 +++ b/FeatureLinkerUnlabeled.xml Thu Dec 01 19:06:59 2022 +0000 @@ -1,13 +1,11 @@ <?xml version='1.0' encoding='UTF-8'?> <!--This is a configuration file for the integration of a tools into Galaxy (https://galaxyproject.org/). This file was automatically generated using CTDConverter.--> <!--Proposed Tool Section: [Map Alignment]--> -<tool id="FeatureLinkerUnlabeled" name="FeatureLinkerUnlabeled" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05"> +<tool id="FeatureLinkerUnlabeled" name="FeatureLinkerUnlabeled" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> <description>Groups corresponding features from multiple maps.</description> <macros> <token name="@EXECUTABLE@">FeatureLinkerUnlabeled</token> <import>macros.xml</import> - <import>macros_autotest.xml</import> - <import>macros_test.xml</import> </macros> <expand macro="requirements"/> <expand macro="stdio"/> @@ -16,8 +14,13 @@ #import re ## Preprocessing -mkdir in && -${ ' '.join(["ln -s '%s' 'in/%s.%s' &&" % (_, re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext(_.ext)) for _ in $in if _]) } +mkdir in_cond.in && +#if $in_cond.in_select == "no" +mkdir ${' '.join(["'in_cond.in/%s'" % (i) for i, f in enumerate($in_cond.in) if f])} && +${' '.join(["ln -s '%s' 'in_cond.in/%s/%s.%s' && " % (f, i, re.sub('[^\w\-_]', '_', f.element_identifier), $gxy2omsext(f.ext)) for i, f in enumerate($in_cond.in) if f])} +#else +ln -s '$in_cond.in' 'in_cond.in/${re.sub("[^\w\-_]", "_", $in_cond.in.element_identifier)}.$gxy2omsext($in_cond.in.ext)' && +#end if mkdir out && #if $design: mkdir design && @@ -31,7 +34,11 @@ python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' && @EXECUTABLE@ -ini @EXECUTABLE@.ctd -in -${' '.join(["'in/%s.%s'"%(re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext(_.ext)) for _ in $in if _])} +#if $in_cond.in_select == "no" +${' '.join(["'in_cond.in/%s/%s.%s'"%(i, re.sub('[^\w\-_]', '_', f.element_identifier), $gxy2omsext(f.ext)) for i, f in enumerate($in_cond.in) if f])} +#else +'in_cond.in/${re.sub("[^\w\-_]", "_", $in_cond.in.element_identifier)}.$gxy2omsext($in_cond.in.ext)' +#end if -out 'out/output.${gxy2omsext("consensusxml")}' #if $design: @@ -49,9 +56,20 @@ <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile> </configfiles> <inputs> - <param name="in" argument="-in" type="data" format="consensusxml,featurexml" multiple="true" optional="false" label="input files separated by blanks" help=" select consensusxml,featurexml data sets(s)"/> - <param name="design" argument="-design" type="data" format="tabular" optional="true" label="input file containing the experimental design" help=" select tabular data sets(s)"/> - <param name="keep_subelements" argument="-keep_subelements" type="boolean" truevalue="true" falsevalue="false" checked="false" label="For consensusXML input only: If set, the sub-features of the inputs are transferred to the output" help=""/> + <conditional name="in_cond"> + <param name="in_select" type="select" label="Run tool in batch mode for -in"> + <option value="no">No: process all datasets jointly</option> + <option value="yes">Yes: process each dataset in an independent job</option> + </param> + <when value="no"> + <param argument="-in" type="data" format="consensusxml,featurexml" multiple="true" optional="false" label="input files separated by blanks" help=" select consensusxml,featurexml data sets(s)"/> + </when> + <when value="yes"> + <param argument="-in" type="data" format="consensusxml,featurexml" multiple="false" optional="false" label="input files separated by blanks" help=" select consensusxml,featurexml data sets(s)"/> + </when> + </conditional> + <param argument="-design" type="data" format="tabular" optional="true" label="input file containing the experimental design" help=" select tabular data sets(s)"/> + <param argument="-keep_subelements" type="boolean" truevalue="true" falsevalue="false" checked="false" label="For consensusXML input only: If set, the sub-features of the inputs are transferred to the output" help=""/> <section name="algorithm" title="Algorithm parameters section" help="" expanded="false"> <param name="second_nearest_gap" argument="-algorithm:second_nearest_gap" type="float" optional="true" min="1.0" value="2.0" label="Only link features whose distance to the second nearest neighbors (for both sides) is larger by 'second_nearest_gap' than the distance between the matched pair itself" help=""/> <param name="use_identifications" argument="-algorithm:use_identifications" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Never link features that are annotated with different peptides (features without ID's always match; only the best hit per peptide identification is considered)" help=""/> @@ -64,10 +82,10 @@ </section> <section name="distance_MZ" title="Distance component based on m/z differences" help="" expanded="false"> <param name="max_difference" argument="-algorithm:distance_MZ:max_difference" type="float" optional="true" min="0.0" value="0.3" label="Never pair features with larger m/z distance (unit defined by 'unit')" help=""/> - <param name="unit" argument="-algorithm:distance_MZ:unit" display="radio" type="select" optional="false" label="Unit of the 'max_difference' paramete" help=""> + <param name="unit" argument="-algorithm:distance_MZ:unit" type="select" optional="true" label="Unit of the 'max_difference' paramete" help=""> <option value="Da" selected="true">Da</option> <option value="ppm">ppm</option> - <expand macro="list_string_san"/> + <expand macro="list_string_san" name="unit"/> </param> <param name="exponent" argument="-algorithm:distance_MZ:exponent" type="float" optional="true" min="0.0" value="2.0" label="Normalized ([0-1], relative to 'max_difference') m/z differences are raised to this power (using 1 or 2 will be fast, everything else is REALLY slow)" help=""/> <param name="weight" argument="-algorithm:distance_MZ:weight" type="float" optional="true" min="0.0" value="1.0" label="Final m/z distances are weighted by this facto" help=""/> @@ -75,17 +93,17 @@ <section name="distance_intensity" title="Distance component based on differences in relative intensity (usually relative to highest peak in the whole data set)" help="" expanded="false"> <param name="exponent" argument="-algorithm:distance_intensity:exponent" type="float" optional="true" min="0.0" value="1.0" label="Differences in relative intensity ([0-1]) are raised to this power (using 1 or 2 will be fast, everything else is REALLY slow)" help=""/> <param name="weight" argument="-algorithm:distance_intensity:weight" type="float" optional="true" min="0.0" value="0.0" label="Final intensity distances are weighted by this facto" help=""/> - <param name="log_transform" argument="-algorithm:distance_intensity:log_transform" display="radio" type="select" optional="false" label="Log-transform intensities" help="If disabled, d = |int_f2 - int_f1| / int_max. If enabled, d = |log(int_f2 + 1) - log(int_f1 + 1)| / log(int_max + 1))"> + <param name="log_transform" argument="-algorithm:distance_intensity:log_transform" type="select" optional="true" label="Log-transform intensities" help="If disabled, d = |int_f2 - int_f1| / int_max. If enabled, d = |log(int_f2 + 1) - log(int_f1 + 1)| / log(int_max + 1))"> <option value="enabled">enabled</option> <option value="disabled" selected="true">disabled</option> - <expand macro="list_string_san"/> + <expand macro="list_string_san" name="log_transform"/> </param> </section> </section> <expand macro="adv_opts_macro"> - <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/> - <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help=""> - <expand macro="list_string_san"/> + <param argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/> + <param argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help=""> + <expand macro="list_string_san" name="test"/> </param> </expand> <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs"> @@ -98,13 +116,170 @@ <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter> </data> </outputs> - <tests> - <expand macro="autotest_FeatureLinkerUnlabeled"/> - <expand macro="manutest_FeatureLinkerUnlabeled"/> + <tests><!-- TOPP_FeatureLinkerUnlabeled_1 --> + <test expect_num_outputs="2"> + <section name="adv_opts"> + <param name="force" value="false"/> + <param name="test" value="true"/> + </section> + <conditional name="in_cond"> + <param name="in" value="FeatureLinkerUnlabeled_1_input1.featureXML,FeatureLinkerUnlabeled_1_input2.featureXML,FeatureLinkerUnlabeled_1_input3.featureXML"/> + </conditional> + <output name="out" file="FeatureLinkerUnlabeled_1_output.consensusXML" compare="sim_size" delta_frac="0.7" ftype="consensusxml"/> + <param name="keep_subelements" value="false"/> + <section name="algorithm"> + <param name="second_nearest_gap" value="2.0"/> + <param name="use_identifications" value="false"/> + <param name="ignore_charge" value="true"/> + <param name="ignore_adduct" value="true"/> + <section name="distance_RT"> + <param name="max_difference" value="200.0"/> + <param name="exponent" value="1.0"/> + <param name="weight" value="1.0"/> + </section> + <section name="distance_MZ"> + <param name="max_difference" value="0.5"/> + <param name="unit" value="Da"/> + <param name="exponent" value="1.0"/> + <param name="weight" value="1.0"/> + </section> + <section name="distance_intensity"> + <param name="exponent" value="1.0"/> + <param name="weight" value="0.0"/> + <param name="log_transform" value="disabled"/> + </section> + </section> + <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG"/> + <output name="ctd_out" ftype="xml"> + <assert_contents> + <is_valid_xml/> + </assert_contents> + </output> + </test> + <!-- TOPP_FeatureLinkerUnlabeled_2 --> + <test expect_num_outputs="2"> + <section name="adv_opts"> + <param name="force" value="false"/> + <param name="test" value="true"/> + </section> + <conditional name="in_cond"> + <param name="in" value="FeatureLinkerUnlabeled_2_input1.featureXML,FeatureLinkerUnlabeled_2_input2.featureXML,FeatureLinkerUnlabeled_2_input3.featureXML"/> + </conditional> + <output name="out" file="FeatureLinkerUnlabeled_2_output.consensusXML" compare="sim_size" delta_frac="0.7" ftype="consensusxml"/> + <param name="keep_subelements" value="false"/> + <section name="algorithm"> + <param name="second_nearest_gap" value="2.0"/> + <param name="use_identifications" value="false"/> + <param name="ignore_charge" value="false"/> + <param name="ignore_adduct" value="true"/> + <section name="distance_RT"> + <param name="max_difference" value="100.0"/> + <param name="exponent" value="1.0"/> + <param name="weight" value="1.0"/> + </section> + <section name="distance_MZ"> + <param name="max_difference" value="0.3"/> + <param name="unit" value="Da"/> + <param name="exponent" value="2.0"/> + <param name="weight" value="1.0"/> + </section> + <section name="distance_intensity"> + <param name="exponent" value="1.0"/> + <param name="weight" value="0.5"/> + <param name="log_transform" value="disabled"/> + </section> + </section> + <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG"/> + <output name="ctd_out" ftype="xml"> + <assert_contents> + <is_valid_xml/> + </assert_contents> + </output> + </test> + <!-- TOPP_FeatureLinkerUnlabeled_3 --> + <test expect_num_outputs="2"> + <section name="adv_opts"> + <param name="force" value="false"/> + <param name="test" value="true"/> + </section> + <conditional name="in_cond"> + <param name="in" value="FeatureLinkerUnlabeled_3_input1.featureXML,FeatureLinkerUnlabeled_3_input2.featureXML"/> + </conditional> + <output name="out" file="FeatureLinkerUnlabeled_3_output.consensusXML" compare="sim_size" delta_frac="0.7" ftype="consensusxml"/> + <param name="keep_subelements" value="false"/> + <section name="algorithm"> + <param name="second_nearest_gap" value="1.5"/> + <param name="use_identifications" value="false"/> + <param name="ignore_charge" value="true"/> + <param name="ignore_adduct" value="true"/> + <section name="distance_RT"> + <param name="max_difference" value="30.0"/> + <param name="exponent" value="1.0"/> + <param name="weight" value="1.0"/> + </section> + <section name="distance_MZ"> + <param name="max_difference" value="0.3"/> + <param name="unit" value="Da"/> + <param name="exponent" value="2.0"/> + <param name="weight" value="1.0"/> + </section> + <section name="distance_intensity"> + <param name="exponent" value="1.0"/> + <param name="weight" value="0.0"/> + <param name="log_transform" value="disabled"/> + </section> + </section> + <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG"/> + <output name="ctd_out" ftype="xml"> + <assert_contents> + <is_valid_xml/> + </assert_contents> + </output> + </test> + <!-- TOPP_FeatureLinkerUnlabeled_4 --> + <test expect_num_outputs="2"> + <section name="adv_opts"> + <param name="force" value="false"/> + <param name="test" value="true"/> + </section> + <conditional name="in_cond"> + <param name="in" value="FeatureLinkerUnlabeled_1_input1.featureXML,FeatureLinkerUnlabeled_1_input2.featureXML,FeatureLinkerUnlabeled_1_input3.featureXML"/> + </conditional> + <output name="out" file="FeatureLinkerUnlabeled_4_output.consensusXML" compare="sim_size" delta_frac="0.7" ftype="consensusxml"/> + <param name="keep_subelements" value="false"/> + <section name="algorithm"> + <param name="second_nearest_gap" value="2.0"/> + <param name="use_identifications" value="true"/> + <param name="ignore_charge" value="true"/> + <param name="ignore_adduct" value="true"/> + <section name="distance_RT"> + <param name="max_difference" value="200.0"/> + <param name="exponent" value="2.0"/> + <param name="weight" value="1.0"/> + </section> + <section name="distance_MZ"> + <param name="max_difference" value="0.5"/> + <param name="unit" value="Da"/> + <param name="exponent" value="2.0"/> + <param name="weight" value="1.0"/> + </section> + <section name="distance_intensity"> + <param name="exponent" value="1.0"/> + <param name="weight" value="0.0"/> + <param name="log_transform" value="disabled"/> + </section> + </section> + <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG"/> + <output name="ctd_out" ftype="xml"> + <assert_contents> + <is_valid_xml/> + </assert_contents> + </output> + </test> </tests> <help><![CDATA[Groups corresponding features from multiple maps. -For more information, visit http://www.openms.de/doxygen/release/2.6.0/html/TOPP_FeatureLinkerUnlabeled.html]]></help> +For more information, visit http://www.openms.de/doxygen/release/2.8.0/html/TOPP_FeatureLinkerUnlabeled.html]]></help> <expand macro="references"/> </tool>