view MzMLSplitter.xml @ 6:b14efb4cf1ea draft

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 981be1bde91d6d565693cd691553f77465e653bb
author galaxyp
date Tue, 20 Mar 2018 15:23:48 -0400
parents 6caab3e848d2
children ab079a6757c1
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: [Utilities]-->
<tool id="MzMLSplitter" name="MzMLSplitter" version="2.3.0">
  <description>Splits an mzML file into multiple parts</description>
  <macros>
    <token name="@EXECUTABLE@">MzMLSplitter</token>
    <import>macros.xml</import>
  </macros>
  <expand macro="requirements"/>
  <expand macro="stdio"/>
  <command><![CDATA[
mkdir parts/ &&

MzMLSplitter

#if $param_in:
  -in $param_in
#end if
#if $param_out:
  -out "parts/$param_out"
#else
  -out "parts/MzML"
#end if
#if $param_parts:
  -parts $param_parts
#end if
#if $param_size:
  -size $param_size
#end if
#if $param_unit:
  -unit
  #if " " in str($param_unit):
    "$param_unit"
  #else
    $param_unit
  #end if
#end if
#if $param_no_chrom:
  -no_chrom
#end if
#if $param_no_spec:
  -no_spec
#end if
#if $adv_opts.adv_opts_selector=='advanced':
    #if $adv_opts.param_force:
  -force
#end if
#end if
-threads "\${GALAXY_SLOTS:-1}"
]]></command>
  <inputs>
    <param name="param_in" type="data" format="mzml" optional="False" label="Input file" help="(-in) "/>
    <param name="param_out" type="text" size="30" label="Prefix for output files ('_part1of2.mzML' etc" help="(-out) will be appended; default: same as 'in' without the file extension)">
      <sanitizer>
        <valid initial="string.printable">
          <remove value="'"/>
          <remove value="&quot;"/>
        </valid>
      </sanitizer>
    </param>
    <param name="param_parts" type="integer" min="1" optional="True" value="1" label="Number of parts to split into (takes precedence over 'size' if set)" help="(-parts) "/>
    <param name="param_size" type="integer" min="0" optional="True" value="0" label="Approximate upper limit for resulting file sizes (in 'unit')" help="(-size) "/>
    <param name="param_unit" display="radio" type="select" optional="False" value="MB" label="Unit for 'size' (base 1024)" help="(-unit) ">
      <option value="KB">KB</option>
      <option value="MB" selected="true">MB</option>
      <option value="GB">GB</option>
    </param>
    <param name="param_no_chrom" display="radio" type="boolean" truevalue="-no_chrom" falsevalue="" checked="false" optional="True" label="Remove chromatograms, keep only spectra" help="(-no_chrom) "/>
    <param name="param_no_spec" display="radio" type="boolean" truevalue="-no_spec" falsevalue="" checked="false" optional="True" label="Remove spectra, keep only chromatograms" help="(-no_spec) "/>
    <expand macro="advanced_options">
      <param name="param_force" display="radio" type="boolean" truevalue="-force" falsevalue="" checked="false" optional="True" label="Overwrite tool specific checks" help="(-force) "/>
    </expand>
  </inputs>
  <outputs>
    <collection name="parts" type="list">
      <discover_datasets pattern="__name_and_ext__" format="mzml"  directory="parts" />
    </collection>
  </outputs>
  <tests>
    <test>
      <param name="param_in" value="FileFilter_1_input.mzML"/>
      <param name="param_parts" value="2" />
      <output_collection name="parts" type="list">
        <element name="MzML_part1of2" file="MzMLSplitter_output_part1.mzML" ftype="mzml" />
        <element name="MzML_part2of2" file="MzMLSplitter_output_part2.mzML" ftype="mzml" />
      </output_collection>
    </test>
  </tests>
  <help>Splits an mzML file into multiple parts


For more information, visit http://ftp.mi.fu-berlin.de/OpenMS/release-documentation/html/UTILS_MzMLSplitter.html</help>
<expand macro="references"/>
</tool>