view FeatureLinkerUnlabeledKD.xml @ 12:7dbd746ce655 draft

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
author galaxyp
date Tue, 13 Oct 2020 19:37:28 +0000
parents 26ea6d312550
children
line wrap: on
line source

<?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="FeatureLinkerUnlabeledKD" name="FeatureLinkerUnlabeledKD" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05">
  <description>Groups corresponding features from multiple maps.</description>
  <macros>
    <token name="@EXECUTABLE@">FeatureLinkerUnlabeledKD</token>
    <import>macros.xml</import>
    <import>macros_autotest.xml</import>
    <import>macros_test.xml</import>
  </macros>
  <expand macro="requirements"/>
  <expand macro="stdio"/>
  <command detect_errors="exit_code"><![CDATA[@QUOTE_FOO@
@EXT_FOO@
#import re

## Preprocessing
mkdir in &&
${ ' '.join(["ln -s '%s' 'in/%s.%s' &&" % (_, re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext(_.ext)) for _ in $in if _]) }
mkdir out &&
#if $design:
  mkdir design &&
  ln -s '$design' 'design/${re.sub("[^\w\-_]", "_", $design.element_identifier)}.$gxy2omsext($design.ext)' &&
#end if

## Main program call

set -o pipefail &&
@EXECUTABLE@ -write_ctd ./ &&
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 _])}
-out
'out/output.${gxy2omsext("consensusxml")}'
#if $design:
  -design
  'design/${re.sub("[^\w\-_]", "_", $design.element_identifier)}.$gxy2omsext($design.ext)'
#end if

## Postprocessing
&& mv 'out/output.${gxy2omsext("consensusxml")}' '$out'
#if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS
  && mv '@EXECUTABLE@.ctd' '$ctd_out'
#end if]]></command>
  <configfiles>
    <inputs name="args_json" data_style="paths"/>
    <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=""/>
    <section name="algorithm" title="Algorithm parameters section" help="" expanded="false">
      <param name="mz_unit" argument="-algorithm:mz_unit" display="radio" type="select" optional="false" label="Unit of m/z tolerance" help="">
        <option value="ppm" selected="true">ppm</option>
        <option value="Da">Da</option>
        <expand macro="list_string_san"/>
      </param>
      <param name="nr_partitions" argument="-algorithm:nr_partitions" type="integer" optional="true" min="1" value="100" label="Number of partitions in m/z space" help=""/>
      <section name="warp" title="" help="" expanded="false">
        <param name="enabled" argument="-algorithm:warp:enabled" type="boolean" truevalue="true" falsevalue="false" checked="true" label="Whether or not to internally warp feature RTs using LOWESS transformation before linking (reported RTs in results will always be the original RTs)" help=""/>
        <param name="rt_tol" argument="-algorithm:warp:rt_tol" type="float" optional="true" min="0.0" value="100.0" label="Width of RT tolerance window (sec)" help=""/>
        <param name="mz_tol" argument="-algorithm:warp:mz_tol" type="float" optional="true" min="0.0" value="5.0" label="m/z tolerance (in ppm or Da)" help=""/>
        <param name="max_pairwise_log_fc" argument="-algorithm:warp:max_pairwise_log_fc" type="float" optional="true" value="0.5" label="Maximum absolute log10 fold change between two compatible signals during compatibility graph construction" help="Two signals from different maps will not be connected by an edge in the compatibility graph if absolute log fold change exceeds this limit (they might still end up in the same connected component, however). Note: this does not limit fold changes in the linking stage, only during RT alignment, where we try to find high-quality alignment anchor points. Setting this to a value &lt; 0 disables the FC check"/>
        <param name="min_rel_cc_size" argument="-algorithm:warp:min_rel_cc_size" type="float" optional="true" min="0.0" max="1.0" value="0.5" label="Only connected components containing compatible features from at least max(2, (warp_min_occur * number_of_input_maps)) input maps are considered for computing the warping function" help=""/>
        <param name="max_nr_conflicts" argument="-algorithm:warp:max_nr_conflicts" type="integer" optional="true" min="-1" value="0" label="Allow up to this many conflicts (features from the same map) per connected component to be used for alignment (-1 means allow any number of conflicts)" help=""/>
      </section>
      <section name="link" title="" help="" expanded="false">
        <param name="rt_tol" argument="-algorithm:link:rt_tol" type="float" optional="true" min="0.0" value="30.0" label="Width of RT tolerance window (sec)" help=""/>
        <param name="mz_tol" argument="-algorithm:link:mz_tol" type="float" optional="true" min="0.0" value="10.0" label="m/z tolerance (in ppm or Da)" help=""/>
        <param name="charge_merging" argument="-algorithm:link:charge_merging" display="radio" type="select" optional="false" label="whether to disallow charge mismatches (Identical), allow to link charge zero" help="(i.e., unknown charge state) with every charge state, or disregard charges (Any)">
          <option value="Identical">Identical</option>
          <option value="With_charge_zero" selected="true">With_charge_zero</option>
          <option value="Any">Any</option>
          <expand macro="list_string_san"/>
        </param>
        <param name="adduct_merging" argument="-algorithm:link:adduct_merging" display="radio" type="select" optional="false" label="whether to only allow the same adduct for linking (Identical), also allow linking features with adduct-free ones, or disregard adducts (Any)" help="">
          <option value="Identical">Identical</option>
          <option value="With_unknown_adducts">With_unknown_adducts</option>
          <option value="Any" selected="true">Any</option>
          <expand macro="list_string_san"/>
        </param>
      </section>
      <section name="distance_RT" title="Distance component based on RT differences" help="" expanded="false">
        <param name="exponent" argument="-algorithm:distance_RT:exponent" type="float" optional="true" min="0.0" value="1.0" label="Normalized RT differences ([0-1], relative to 'max_difference') are raised to this power (using 1 or 2 will be fast, everything else is REALLY slow)" help=""/>
        <param name="weight" argument="-algorithm:distance_RT:weight" type="float" optional="true" min="0.0" value="1.0" label="Final RT distances are weighted by this facto" help=""/>
      </section>
      <section name="distance_MZ" title="Distance component based on m/z differences" help="" expanded="false">
        <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=""/>
      </section>
      <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="1.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))">
          <option value="enabled" selected="true">enabled</option>
          <option value="disabled">disabled</option>
          <expand macro="list_string_san"/>
        </param>
      </section>
      <section name="LOWESS" title="LOWESS parameters for internal RT transformations (only relevant if 'warp:enabled' is set to 'true')" help="" expanded="false">
        <param name="span" argument="-algorithm:LOWESS:span" type="float" optional="true" min="0.0" max="1.0" value="0.666666666666667" label="Fraction of datapoints (f) to use for each local regression (determines the amount of smoothing)" help="Choosing this parameter in the range .2 to .8 usually results in a good fit"/>
        <param name="num_iterations" argument="-algorithm:LOWESS:num_iterations" type="integer" optional="true" min="0" value="3" label="Number of robustifying iterations for lowess fitting" help=""/>
        <param name="delta" argument="-algorithm:LOWESS:delta" type="float" optional="true" value="-1.0" label="Nonnegative parameter which may be used to save computations (recommended value is 0.01 of the range of the input" help="e.g. for data ranging from 1000 seconds to 2000 seconds, it could be set to 10). Setting a negative value will automatically do this"/>
        <param name="interpolation_type" argument="-algorithm:LOWESS:interpolation_type" display="radio" type="select" optional="false" label="Method to use for interpolation between datapoints computed by lowess" help="'linear': Linear interpolation. 'cspline': Use the cubic spline for interpolation. 'akima': Use an akima spline for interpolation">
          <option value="linear">linear</option>
          <option value="cspline" selected="true">cspline</option>
          <option value="akima">akima</option>
          <expand macro="list_string_san"/>
        </param>
        <param name="extrapolation_type" argument="-algorithm:LOWESS:extrapolation_type" display="radio" type="select" optional="false" label="Method to use for extrapolation outside the data range" help="'two-point-linear': Uses a line through the first and last point to extrapolate. 'four-point-linear': Uses a line through the first and second point to extrapolate in front and and a line through the last and second-to-last point in the end. 'global-linear': Uses a linear regression to fit a line through all data points and use it for interpolation">
          <option value="two-point-linear">two-point-linear</option>
          <option value="four-point-linear" selected="true">four-point-linear</option>
          <option value="global-linear">global-linear</option>
          <expand macro="list_string_san"/>
        </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>
    </expand>
    <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs">
      <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option>
    </param>
  </inputs>
  <outputs>
    <data name="out" label="${tool.name} on ${on_string}: out" format="consensusxml"/>
    <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
      <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
    </data>
  </outputs>
  <tests>
    <expand macro="autotest_FeatureLinkerUnlabeledKD"/>
    <expand macro="manutest_FeatureLinkerUnlabeledKD"/>
  </tests>
  <help><![CDATA[Groups corresponding features from multiple maps.


For more information, visit http://www.openms.de/doxygen/release/2.6.0/html/TOPP_FeatureLinkerUnlabeledKD.html]]></help>
  <expand macro="references"/>
</tool>