PageRenderTime 22ms CodeModel.GetById 15ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/tools/new_operations/concat.xml

https://bitbucket.org/cistrome/cistrome-harvard/
XML | 59 lines | 46 code | 13 blank | 0 comment | 0 complexity | 1f701195c6df10791b5f28ad7d16fba7 MD5 | raw file
 1<tool id="gops_concat_1" name="Concatenate" version="1.0.1">
 2  <description>two datasets into one dataset</description>
 3  <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>
 4  <inputs>
 5    <param format="interval" name="input1" type="data" help="First dataset">
 6      <label>Concatenate</label>
 7    </param>
 8    <param format="interval" name="input2" type="data" help="Second dataset">
 9      <label>with</label>
10    </param>
11    <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">
12    </param>
13   </inputs>
14  <outputs>
15    <data format="input" name="output" metadata_source="input1" />
16  </outputs>
17  <code file="operation_filter.py"/>
18  <tests>
19    <test>
20      <param name="input1" value="1.bed" />
21      <param name="input2" value="2.bed" />
22      <param name="sameformat" value="true" />
23      <output name="output" file="gops_concat_out1.bed" />     
24    </test>
25    <test>
26      <param name="input1" value="1.bed" />
27      <param name="input2" value="1.interval" />
28      <param name="sameformat" value="false" />
29      <output name="output" file="gops_concat_out2.bed" />     
30    </test>   
31  </tests>
32  <help>
33
34.. class:: infomark
35
36**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.
37
38-----
39
40**Screencasts!**
41
42See Galaxy Interval Operation Screencasts_ (right click to open this link in another window).
43
44.. _Screencasts: http://wiki.g2.bx.psu.edu/Learn/Interval%20Operations
45
46-----
47
48**Syntax**
49
50- **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.
51
52-----
53
54**Example**
55
56.. image:: ${static_path}/operation_icons/gops_concatenate.gif
57
58</help>
59</tool>