annotate feature_merge.xml @ 1:d669713d378b draft

"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 192c9f9536c33c8edea4b4f0d2b1975bc7491000"
author brinkmanlab
date Tue, 07 Jul 2020 18:18:18 -0400
parents 61c4522b2cfe
children fd6ec1fe399b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
d669713d378b "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 192c9f9536c33c8edea4b4f0d2b1975bc7491000"
brinkmanlab
parents: 0
diff changeset
1 <tool id="feature-merge" name="GFF/GTF Feature Merge" version="1.2" profile="16.04">
0
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
2 <description>Merge GFF features based on a variety of criteria</description>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
3 <requirements>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
4 <!--requirement type="package" version="1.0.0">feature_merge</requirement-->
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
5 <requirement type="package" version="3.7">python</requirement>
1
d669713d378b "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 192c9f9536c33c8edea4b4f0d2b1975bc7491000"
brinkmanlab
parents: 0
diff changeset
6 <requirement type="package" version="1.2">feature_merge</requirement>
0
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
7 </requirements>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
8 <version_command><![CDATA[ feature_merge -v ]]></version_command>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
9 <command detect_errors="aggressive"><![CDATA[
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
10 feature_merge $ignore_strand $exclude_components $exact_only -m $merge_strategy
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
11 #if $threshold != 0
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
12 -t $threshold
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
13 #end if
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
14 #for set in $features
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
15 -f '${str($set.csv).replace(" ", "")}'
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
16 #end for
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
17 #for $input in $inputs
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
18 $input
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
19 #end for
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
20 > $output
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
21 ]]></command>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
22 <inputs>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
23 <param name="inputs" type="data" format="gff,gff3,gtf" multiple="true" label="Input" />
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
24 <param name="ignore_strand" type="boolean" checked="false" truevalue="-i" falsevalue="" label="Ignore feature strand when merging" argument="-i"/>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
25 <param name="exclude_components" type="boolean" checked="false" truevalue="" falsevalue="-e" label="Include original feature records in output" argument="-e"/>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
26 <param name="exact_only" type="boolean" checked="false" truevalue="-x" falsevalue="" label="Only merge features with identical coordinates" argument="-x"/>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
27 <param name="threshold" type="integer" value="0" label="Merge features within a threshold distance from their ends" argument="-t"/>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
28 <param name="merge_strategy" type="select" label="ID conflict resolution strategy" argument="-m">
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
29 <option value="merge">merge: attributes of all features with the same primary key will be merged</option>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
30 <option value="append" selected="true">append: entry will have a unique, autoincremented primary key assigned to it</option>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
31 <option value="error">error: exception will be raised. This means you will have to edit the file yourself to fix the duplicated IDs</option>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
32 <option value="skip">skip: ignore duplicates, emitting a warning</option>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
33 <option value="replace">replace: keep last duplicate</option>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
34 </param>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
35 <repeat name="features" title="Specify features to merge" help="Can be provided more than once to specify multiple merge groups. If not provided, all features will be merged.">
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
36 <param name="csv" type="text" label="Feature set to merge" help="Comma seperated types of features to merge. Must be terms or accessions from the SOFA sequence ontology, ALL, or NONE" argument="-f"/>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
37 </repeat>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
38 </inputs>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
39 <outputs>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
40 <data name="output" format="gff" />
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
41 </outputs>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
42 <tests>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
43 <test expect_num_outputs="1">
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
44 <param name="inputs" >
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
45 <collection type="list">
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
46 <element name="test1" value="feature_merge/test-data/615598_genome.gbk_2.gff3" ftype="gff3" />
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
47 <element name="test2" value="feature_merge/test-data/915596_genome.gbk_2.gff3" ftype="gff3" />
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
48 <element name="test3" value="feature_merge/test-data/615598_genome.gbk_1.gff3" ftype="gff3" />
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
49 <element name="test4" value="feature_merge/test-data/1015597_genome.gbk_2.gff3" ftype="gff3" />
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
50 <element name="test5" value="feature_merge/test-data/915596_genome.gbk_1.gff3" ftype="gff3" />
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
51 <element name="test6" value="feature_merge/test-data/1015597_genome.gbk_1.gff3" ftype="gff3" />
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
52 </collection>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
53 </param>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
54 <param name="ignore_strand" value="-i" />
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
55 <output name="output" file="test-data/output.gff3" ftype="gff3" />
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
56 </test>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
57 </tests>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
58 <help><![CDATA[
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
59 GFF/GTF Feature Merge
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
60 Merge GFF features based on a variety of criteria.
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
61
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
62 https://github.com/brinkmanlab/feature_merge
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
63 ]]></help>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
64 <citations>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
65 <citation type="doi">10.5281/zenodo.3364784</citation>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
66 <citation type="doi">10.5281/zenodo.3364789</citation>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
67 </citations>
61c4522b2cfe "planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/feature_merge commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e"
brinkmanlab
parents:
diff changeset
68 </tool>