root/galaxy-central/tools/new_operations/concat.xml @ 2

リビジョン 2, 2.3 KB (コミッタ: hatakeyama, 14 年 前)

import galaxy-central

行番号 
1<tool id="gops_concat_1" name="Concatenate">
2  <description>two queries into one query</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 query">
6      <label>Concatenate</label>
7    </param>
8    <param format="interval" name="input2" type="data" help="Second query">
9      <label>with</label>
10    </param>
11    <param name="sameformat" type="boolean" truevalue="--sameformat" falsevalue="" label="Both queries are same filetype?" checked="true" help="If unchecked Second query will be forced into format of First query">
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 query 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://bitbucket.org/galaxy/galaxy-central/wiki/GopsDesc
45
46-----
47
48**Syntax**
49
50- **Both queries are exactly the same filetype** will preserve all extra fields in both files.  Leaving this unchecked will force the second query 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/operation_icons/gops_concatenate.gif
57
58</help>
59</tool>
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。