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