<tool id="tablemerger" name="SNP table merger">

  <description>merges any number of SNP tables into one</description>

  <command interpreter="python">tablemerger.py $output 
    #for $f in $inputs:
    $f.in
    #end for
  </command>

  <inputs>

    <repeat name="inputs" title="Input files">

      <param name="in" type="data" format="tabular" label="Input SNP table" />

    </repeat>

  </inputs>

  <outputs>

    <data name="output" format="tabular" label="${tool.name} on various SNP tables" />

  </outputs>

  <help>



**What it does**



This tool takes any number of tab-delimited SNP tables and merges them together.It puts SNPs at the same position on the same line and ignores bases that are the same in two strains.


**Example input 1**:



======== === =======
Position Ref Strain1

123      A   G

125      C   T

======== === =======



**Example input 2**:



======== === =======
Position Ref Strain2

123      A   T

124      G   C

125      C   T

======== === ========




**Example output**:



======== === ======= =======

Position Ref Strain1 Strain2

123      A   G       T

124      G           C

125      C   T       T

======== === ======= =======

  </help>

</tool>
