Mercurial > repos > galaxyp > feature_alignment
view feature_alignment.xml @ 9:9ad7babdbedd draft
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/feature_alignment commit ceaef1a06c8600f9a042fc8f80f5b3fae75d4445-dirty
author | galaxyp |
---|---|
date | Sat, 30 May 2015 05:27:37 -0400 |
parents | 4fd8df131c3c |
children | 23ecd1ee4422 |
line wrap: on
line source
<tool id="feature_alignment" name="Feature Alignment" version="0.1"> <description>of peakgroups below a FDR</description> <requirements> <requirement type="package" version="2.7">python</requirement> <requirement type="package" version="0.3.2">msproteomicstools</requirement> </requirements> <stdio> <!-- Anything other than zero is an error --> <exit_code range="1:" /> <exit_code range=":-1" /> <!-- In case the return code has not been set propery check stderr too --> <regex match="Error:" /> <regex match="Exception:" /> </stdio> <version_command>feature_alignment.py --version</version_command> <command> <![CDATA[ feature_alignment.py --in #echo '" "'.join([ str($file) for $file in $inputs ]) # --file_format $iformat ##if str($iformat) == "openswath": --out $out ##end if --out_matrix out_matrix.tsv --out_ids $out_ids --fdr_cutoff $fdr_cutoff #if $max_fdr_quality: --max_fdr_quality $max_fdr_quality #end if #if $max_rt_diff: --max_rt_diff $max_rt_diff #end if #if $iso_max_rt_diff: --iso_max_rt_diff $iso_max_rt_diff #end if #if $frac_selected: --frac_selected $frac_selected #end if --method $method --matrix_output_method $matrix_output_method --realign_method $realign_method && mv out_matrix.tsv $out_matrix ]]></command> <inputs> <param name="inputs" type="data" multiple="True" format="txt" label="A list of mProphet output files containing all peakgroups" help="(--in)"/> <param name="iformat" type="select" label="Which input file format is used" help="(--file_format)"> <option value="openswath" selected="True">OpenSwath</option> <option value="peakview">Peakview</option> </param> <param name="fdr_cutoff" type="float" value="0.01" label="Seeding score cutoff" help="(--fdr_cutoff)" /> <param name="max_fdr_quality" type="float" value="-1.0" default="-1.0" optional="True" label="Extension score cutoff" help="During the extension phase of the algorithm, peakgroups of this quality will still be considered for alignment (in FDR) - it is possible to give a range in the format lower,higher+stepsize,stepsize - e.g. 0,0.31,0.01 (-1 will set it to fdr_cutoff) (--max_fdr_quality)"/> <param name="max_rt_diff" type="integer" value="30" default="30" optional="True" label="Maximal difference in RT for two aligned features" help="(--max_rt_diff)"/> <param name="iso_max_rt_diff" type="integer" value="10" default="10" optional="True" label="Maximal difference in RT for two isotopic channels in the same run" help="(--iso_max_rt_diff)" /> <param name="frac_selected" type="float" value="0.0" min="0" max="1" optional="True" label="Do not write peakgroup if selected in less than this fraction of runs" help="(--frac_selected)"/> <param name="method" type="select" label="Which method to use for the clustering" help="Note that the MST options will perform a local, MST guided alignment while the other options will use a reference-guided alignment. The global option will also move peaks which are below the selected FDR threshold. (--method)" > <option value='best_overall' selected="True">best_overall</option> <option value='best_cluster_score'>best_cluster_score</option> <option value='global_best_cluster_score'>global_best_cluster_score</option> <option value='global_best_overall'>global_best_overall</option> <option value='LocalMST'>LocalMST</option> <option value='LocalMSTAllCluster'>LocalMSTAllCluster</option> </param> <param name="matrix_output_method" type="select" label="Which columns are written besides Intensity" help="(--matrix_output_method)"> <option value='none' selected="True">None</option> <option value='RT'>RT</option> <option value='score'>Score</option> <option value='source'>Source</option> <option value='full'>Full</option> </param> <param name="realign_method" type="select" label="How to re-align runs in retention time" help="(--realign_method)"> <option value='diRT' selected="True">Use only deltaiRT from the input file</option> <option value='linear'>Perform a linear regression using best peakgroups</option> <!--option value='splineR'>Perform a spline fit using R</option--> <!--option value='splineR_external'>Perform a spline fit using R</option--> <option value='splinePy'>Use Python native spline from scikits.datasmooth (slow!)</option> <option value='lowess'>Use Robust locally weighted regression (lowess smoother)</option> <option value='CVSpline'>Splines with cross-validation</option> <option value='nonCVSpline'>Splines without cross-validation</option> <option value='earth' >Use Multivariate Adaptive Regression Splines using py-earth</option> </param> </inputs> <outputs> <!-- Matrix containing one peak group per row --> <data format="tabular" name="out_matrix"/> <!-- Id file only containing the ids --> <data format="tabular" name="out_ids"/> <!-- Output file with filtered peakgroups for quantification (only works for OpenSWATH) --> <data format="tabular" name="out"> <!-- according to the documentation this output only works for SWATH, but it is a requirement argument in python argparse. So we need to output it. --> <!--filter>iformat == 'openswath'</filter--> </data> </outputs> <tests> <test> <param name="inputs" value="feature_alignment_openswath_input_1.csv" ftype="txt" /> <param name="iformat" value="openswath" /> <param name="method" value="best_cluster_score" /> <param name="max_fdr_quality" value="0.4" /> <param name="matrix_output_method" value="RT" /> <output name="out_matrix" file="feature_alignment_1_openswath_output_matrix.csv" ftype="tabular" /> <output name="out_ids" file="feature_alignment_1_openswath_output_cluster_ids.csv" ftype="tabular" /> </test> <test> <param name="inputs" value="feature_alignment_openswath_input_1.csv" ftype="txt" /> <param name="iformat" value="openswath" /> <param name="method" value="best_overall" /> <param name="max_fdr_quality" value="0.4" /> <param name="matrix_output_method" value="RT" /> <output name="out_matrix" file="feature_alignment_2_output_2_matrix.csv" ftype="tabular" /> <output name="out_ids" file="feature_alignment_2_output_1_ids.csv" ftype="tabular" /> </test> <!-- needs R dependency; The python equivalent should be enough I guess. <test> <param name="inputs" value="feature_alignment_3_openswath_input.csv" ftype="txt" /> <param name="iformat" value="openswath" /> <param name="realign_method" value="splineR" /> <param name="method" value="best_cluster_score" /> <param name="max_fdr_quality" value="0.4" /> <param name="maxtrix_output_method" value="RT" /> <output name="out_ids" file="feature_alignment_3_openswath_output_cluster_ids.csv" ftype="tabular" /> </test> --> <test> <param name="inputs" value="feature_alignment_3_openswath_input.csv" ftype="txt" /> <param name="iformat" value="openswath" /> <param name="realign_method" value="splinePy" /> <param name="method" value="best_cluster_score" /> <param name="max_fdr_quality" value="0.4" /> <param name="matrix_output_method" value="RT" /> <output name="out_ids" file="feature_alignment_3_openswath_output_cluster_ids.csv" ftype="tabular" /> </test> <test> <param name="inputs" value="feature_alignment_peakview_input_2.csv" ftype="txt" /> <param name="iformat" value="peakview" /> <param name="method" value="best_cluster_score" /> <param name="max_fdr_quality" value="0.0001" /> <param name="fdr_cutoff" value="0.000000001" /> <param name="matrix_output_method" value="RT" /> <output name="out_matrix" file="feature_alignment_5_peakview_output_matrix.csv" ftype="tabular" /> </test> </tests> <help> <![CDATA[ **What it does** This program will select all peakgroups below the FDR cutoff in all files and try to align them to each other. If only one file is given, it will act as peakgroup selector (best by m_score) and will apply the provided FDR cutoff. ]]> </help> <citations> </citations> </tool>