view concat.xml @ 1:855580142a12

Added tool image.
author devteam <devteam@galaxyproject.org>
date Mon, 14 Apr 2014 09:15:48 -0400
parents 8aa939ace6ba
children 32e1c8dac438
line wrap: on
line source

<tool id="gops_concat_1" name="Concatenate" version="1.0.1">
  <description>two datasets into one dataset</description>
  <requirements>
    <requirement type="package" version="0.7.1">bx-python</requirement>
    <requirement type="package" version="1.0.0">galaxy-ops</requirement>
  </requirements>
  <command interpreter="python">gops_concat.py $input1 $input2 $output -1 ${input1.metadata.chromCol},${input1.metadata.startCol},${input1.metadata.endCol},${input1.metadata.strandCol} -2 ${input2.metadata.chromCol},${input2.metadata.startCol},${input2.metadata.endCol},${input2.metadata.strandCol} $sameformat</command>
  <inputs>
    <param format="interval" name="input1" type="data" help="First dataset">
      <label>Concatenate</label>
    </param>
    <param format="interval" name="input2" type="data" help="Second dataset">
      <label>with</label>
    </param>
    <param name="sameformat" type="boolean" truevalue="--sameformat" falsevalue="" label="Both datasets are same filetype?" checked="true" help="If unchecked Second dataset will be forced into format of First dataset">
    </param>
   </inputs>
  <outputs>
    <data format="input" name="output" metadata_source="input1" />
  </outputs>
  <code file="operation_filter.py"/>
  <tests>
    <test>
      <param name="input1" value="1.bed" />
      <param name="input2" value="2.bed" />
      <param name="sameformat" value="true" />
      <output name="output" file="gops_concat_out1.bed" />     
    </test>
    <test>
      <param name="input1" value="1.bed" />
      <param name="input2" value="1.interval" />
      <param name="sameformat" value="false" />
      <output name="output" file="gops_concat_out2.bed" />     
    </test>   
  </tests>
  <help>

.. class:: infomark

**TIP:** If your dataset does not appear in the pulldown menu -> it is not in interval format. Use "edit attributes" to set chromosome, start, end, and strand columns.

-----

**Screencasts!**

See Galaxy Interval Operation Screencasts_ (right click to open this link in another window).

.. _Screencasts: http://wiki.g2.bx.psu.edu/Learn/Interval%20Operations

-----

**Syntax**

- **Both datasets are exactly the same filetype** will preserve all extra fields in both files.  Leaving this unchecked will force the second dataset to use the same column assignments for chrom, start, end and strand, but will fill extra fields with a period(.).  In both cases, the output fields are truncated or padded with fields of periods to maintain a truly tabular output.

-----

**Example**

.. image:: gops_concatenate.gif

</help>
</tool>