galaxy-dist / tools / new_operations / concat.xml

<tool id="gops_concat_1" name="Concatenate" version="1.0.1">
  <description>two datasets into one dataset</description>
  <command interpreter="python"> $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>
    <param format="interval" name="input1" type="data" help="First dataset">
    <param format="interval" name="input2" type="data" help="Second dataset">
    <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">
    <data format="input" name="output" metadata_source="input1" />
  <code file=""/>
      <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" />     
      <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" />     

.. 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.



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

.. _Screencasts:



- **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.



.. image:: ./static/operation_icons/gops_concatenate.gif