<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE knimeNode PUBLIC "-//UNIKN//DTD KNIME Node 2.0//EN" "http://www.knime.org/Node.dtd">
<knimeNode icon="generic_node.png" type="Manipulator">
    <name>MapRTTransformer</name>
    
    <shortDescription>
        Applies retention time transformations to maps.
    </shortDescription>
    
    <fullDescription>
        <intro><p>Applies retention time transformations to maps.</p>
		<p>
			<a href="http://ftp.mi.fu-berlin.de/OpenMS/release-documentation/html/TOPP_MapRTTransformer.html">Web Documentation for MapRTTransformer</a>
		</p>

        </intro>
        
		<option name="version">Version of the tool that generated this parameters file.</option>
		<option name="invert">Invert transformation (approximatively) before applying it</option>
		<option name="store_original_rt">Store the original retention times (before transformation) as meta data in the output file</option>
		<option name="log">Name of log file (created only when specified)</option>
		<option name="debug">Sets the debug level</option>
		<option name="threads">Sets the number of threads allowed to be used by the TOPP tool</option>
		<option name="no_progress">Disables progress logging to command line</option>
		<option name="force">Overwrite tool specific checks.</option>
		<option name="test">Enables the test mode (needed for internal use only)</option>
		<option name="type">Type of model</option>
		<option name="symmetric_regression">Perform linear regression on 'y - x' vs. 'y + x', instead of on 'y' vs. 'x'.</option>
		<option name="wavelength">Determines the amount of smoothing by setting the number of nodes for the B-spline. The number is chosen so that the spline approximates a low-pass filter with this cutoff wavelength. The wavelength is given in the same units as the data; a higher value means more smoothing. '0' sets the number of nodes to twice the number of input points.</option>
		<option name="num_nodes">Number of nodes for B-spline fitting. Overrides 'wavelength' if set (to two or greater). A lower value means more smoothing.</option>
		<option name="extrapolate">Method to use for extrapolation beyond the original data range. 'linear': Linear extrapolation using the slope of the B-spline at the corresponding endpoint. 'b_spline': Use the B-spline (as for interpolation). 'constant': Use the constant value of the B-spline at the corresponding endpoint. 'global_linear': Use a linear fit through the data (which will most probably introduce discontinuities at the ends of the data range).</option>
		<option name="boundary_condition">Boundary condition at B-spline endpoints: 0 (value zero), 1 (first derivative zero) or 2 (second derivative zero)</option>
		<option name="span">Fraction of datapoints (f) to use for each local regression (determines the amount of smoothing). Choosing this parameter in the range .2 to .8 usually results in a good fit.</option>
		<option name="num_iterations">Number of robustifying iterations for lowess fitting.</option>
		<option name="delta">Nonnegative parameter which may be used to save computations (recommended value is 0.01 of the range of the input, 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.</option>
		<option name="interpolation_type">Method to use for interpolation between datapoints computed by lowess. 'linear': Linear interpolation. 'cspline': Use the cubic spline for interpolation. 'akima': Use an akima spline for interpolation</option>
		<option name="extrapolation_type">Method to use for extrapolation outside the data range. '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>
		<option name="interpolation_type">Type of interpolation to apply.</option>
		<option name="extrapolation_type">Type of extrapolation to apply: two-point-linear: use the first and last data point to build a single linear model, four-point-linear: build two linear models on both ends using the first two / last two points, global-linear: use all points to build a single linear model. Note that global-linear may not be continuous at the border.</option>

    </fullDescription>
    
    <ports>
		<inPort index="0" name="in [mzML,featureXML,consensusXML,idXML]">Input file to transform (separated by blanks) [mzML,featureXML,consensusXML,idXML,opt.]</inPort>
		<inPort index="1" name="trafo_in [trafoXML]">Transformation to apply [trafoXML]</inPort>
		<outPort index="0" name="out [mzML,featureXML,consensusXML,idXML,Inactive]">Output file (same file type as 'in'). Either this option or 'trafo_out' has to be provided; they can be used together. [mzML,featureXML,consensusXML,idXML,Inactive]</outPort>
		<outPort index="1" name="trafo_out [trafoXML,Inactive]">Transformation output file. Either this option or 'out' has to be provided; they can be used together. [trafoXML,Inactive]</outPort>
 </ports>
    <views>
        <view index="0" name="MapRTTransformer Std Output">The text sent to standard out during the execution of MapRTTransformer.</view>
        <view index="1" name="MapRTTransformer Error Output">The text sent to standard error during the execution of MapRTTransformer. (If it appears in gray, it's the output of a previously failing run which is preserved for your trouble shooting.)</view>
    </views>    
</knimeNode>
