view picard_SortSam.xml @ 11:efc56ee1ade4 draft

planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit a1517c9d22029095120643bbe2c8fa53754dd2b7
author devteam
date Wed, 11 Nov 2015 12:23:17 -0500
parents 3a3234d7a2e8
children 05087b27692a
line wrap: on
line source

<tool id="picard_SortSam" name="SortSam" version="@TOOL_VERSION@.1">
  <description>sort SAM/BAM dataset</description>
  <macros>
    <import>picard_macros.xml</import>
  </macros>
  <expand macro="requirements" />
  <command>
    @java_options@
    java -jar \$JAVA_JAR_PATH/picard.jar
    SortSam
    INPUT="${inputFile}"
    OUTPUT="${outFile}"
    SORT_ORDER="${sort_order}"
    QUIET=true
    VERBOSITY=ERROR
    VALIDATION_STRINGENCY=${validation_stringency}
  </command>
  
  <inputs>
    <param name="inputFile" type="data" format="sam,bam" label="Select SAM/BAM dataset or dataset collection" help="If empty, upload or import a SAM/BAM dataset"/>
    <param name="sort_order" type="select" display="radio" label="Sort order" help="SORT_ORDER; default=coordinate">
      <option value="coordinate" selected="True">Coordinate</option>
      <option value="queryname">Queryname</option>
    </param>
    <expand macro="VS" />
  </inputs>
  
  <outputs>
    <data name="outFile" format="bam" label="${tool.name} on ${on_string}: BAM sorted in ${sort_order} order">
    </data>
  </outputs>
  
  <stdio>
    <exit_code range="1:"  level="fatal"/>
  </stdio>
  
  <tests>
    <test>
      <param name="inputFile" ftype="bam" value="picard_SortSam.bam" />
      <param name="sort_order" value="queryname"/>
      <output name="outFile" file="picard_SortSam_test1.bam" ftype="bam" lines_diff="2"/>
    </test>
  </tests>
  
  <help>

.. class:: infomark

**Purpose**

Sorts the input SAM or BAM.

@dataset_collections@

@description@

  SORT_ORDER=SortOrder
  SO=SortOrder          Sort order of output file. You can either sort by queryname or by coordinate.
 
 @more_info@

  </help>
</tool>