view FalseDiscoveryRate.xml @ 13:119e3bd40195 draft

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
author galaxyp
date Thu, 27 Aug 2020 22:58:14 +0000
parents 72867c3a5839
children cfbee1db0a77
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: [ID Processing]-->
<tool id="FalseDiscoveryRate" name="FalseDiscoveryRate" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05">
  <description>Estimates the false discovery rate on peptide and protein level using decoy searches.</description>
  <macros>
    <token name="@EXECUTABLE@">FalseDiscoveryRate</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 &&
ln -s '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' &&
mkdir out &&

## 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
'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)'
-out
'out/output.${gxy2omsext("idxml")}'

## Postprocessing
&& mv 'out/output.${gxy2omsext("idxml")}' '$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="idxml" optional="false" label="Identifications from searching a target-decoy database" help=" select idxml data sets(s)"/>
    <param name="PSM" argument="-PSM" type="boolean" truevalue="true" falsevalue="false" checked="true" label="Perform FDR calculation on PSM level" help=""/>
    <param name="protein" argument="-protein" type="boolean" truevalue="true" falsevalue="false" checked="true" label="Perform FDR calculation on protein level" help=""/>
    <section name="FDR" title="FDR control" help="" expanded="false">
      <param name="PSM" argument="-FDR:PSM" type="float" optional="true" min="0.0" max="1.0" value="1.0" label="Filter PSMs based on q-value" help="(e.g., 0.05 = 5% FDR, disabled for 1)"/>
      <param name="protein" argument="-FDR:protein" type="float" optional="true" min="0.0" max="1.0" value="1.0" label="Filter proteins based on q-value" help="(e.g., 0.05 = 5% FDR, disabled for 1)"/>
      <section name="cleanup" title="Cleanup references after FDR control" help="" expanded="false">
        <param name="remove_proteins_without_psms" argument="-FDR:cleanup:remove_proteins_without_psms" type="boolean" truevalue="true" falsevalue="false" checked="true" label="Remove proteins without PSMs (due to being decoy or below PSM FDR threshold)" help=""/>
        <param name="remove_psms_without_proteins" argument="-FDR:cleanup:remove_psms_without_proteins" type="boolean" truevalue="true" falsevalue="false" checked="true" label="Remove PSMs without proteins (due to being decoy or below protein FDR threshold)" help=""/>
        <param name="remove_spectra_without_psms" argument="-FDR:cleanup:remove_spectra_without_psms" type="boolean" truevalue="true" falsevalue="false" checked="true" label="Remove spectra without PSMs (due to being decoy or below protein FDR threshold)" help="Caution: if remove_psms_without_proteins is false, protein level filtering does not propagate"/>
      </section>
    </section>
    <section name="algorithm" title="Parameter section for the FDR calculation algorithm" help="" expanded="false">
      <param name="no_qvalues" argument="-algorithm:no_qvalues" type="boolean" truevalue="true" falsevalue="false" checked="false" label="If 'true' strict FDRs will be calculated instead of q-values (the default)" help=""/>
      <param name="use_all_hits" argument="-algorithm:use_all_hits" type="boolean" truevalue="true" falsevalue="false" checked="false" label="If 'true' not only the first hit, but all are used (peptides only)" help=""/>
      <param name="split_charge_variants" argument="-algorithm:split_charge_variants" type="boolean" truevalue="true" falsevalue="false" checked="false" label="If 'true' charge variants are treated separately (for peptides of combined target/decoy searches only)" help=""/>
      <param name="treat_runs_separately" argument="-algorithm:treat_runs_separately" type="boolean" truevalue="true" falsevalue="false" checked="false" label="If 'true' different search runs are treated separately (for peptides of combined target/decoy searches only)" help=""/>
      <param name="add_decoy_peptides" argument="-algorithm:add_decoy_peptides" type="boolean" truevalue="true" falsevalue="false" checked="false" label="If 'true' decoy peptides will be written to output file, too" help="The q-value is set to the closest target score"/>
      <param name="add_decoy_proteins" argument="-algorithm:add_decoy_proteins" type="boolean" truevalue="true" falsevalue="false" checked="false" label="If 'true' decoy proteins will be written to output file, too" help="The q-value is set to the closest target score"/>
      <param name="conservative" argument="-algorithm:conservative" type="boolean" truevalue="true" falsevalue="false" checked="true" label="If 'true' (D+1)/T instead of (D+1)/(T+D) is used as a formula" help=""/>
    </section>
    <expand macro="adv_opts_macro">
      <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overwrite 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" multiple="true" label="Optional outputs" optional="true">
      <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="idxml"/>
    <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_FalseDiscoveryRate"/>
    <expand macro="manutest_FalseDiscoveryRate"/>
  </tests>
  <help><![CDATA[Estimates the false discovery rate on peptide and protein level using decoy searches.


For more information, visit http://www.openms.de/documentation/TOPP_FalseDiscoveryRate.html]]></help>
  <expand macro="references"/>
</tool>