Mercurial > repos > erasmus-medical-center > extract_element_from_collection
annotate extract_element_from_collection.xml @ 0:c46360dcbf3f draft default tip
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
author | erasmus-medical-center |
---|---|
date | Wed, 13 Dec 2017 10:09:11 -0500 |
parents | |
children |
rev | line source |
---|---|
0
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
1 <tool id="extract_element_from_collection" name="Extract Element" version="0.1" profile="16.07"> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
2 <description>from a collection based on name</description> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
3 <command detect_errors="aggressive"><![CDATA[ |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
4 echo 'no element with name $elementname found in your collection' > '$output' |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
5 |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
6 && mkdir elementoutputs |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
7 #for $dataset in $input_collection: |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
8 && echo $dataset.element_identifier |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
9 #if $elementname == '' |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
10 && cp $dataset 'elementoutputs/$dataset.element_identifier' |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
11 #elif $dataset.element_identifier == $elementname: |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
12 && cp $dataset '$output' |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
13 #end if |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
14 #end for |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
15 ]]></command> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
16 <inputs> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
17 <param name="input_collection" type="data_collection" collection_type="list" label="Input Collection"/> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
18 <!-- find a way to make a select from all elements? --> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
19 <param name="elementname" type="text" value="" label="name of collection element to extract" help="if left blank, all files will be extracted"/> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
20 </inputs> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
21 <outputs> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
22 <data name="output" format="auto" label="${elementname}"> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
23 <filter>elementname != ''</filter> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
24 </data> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
25 <data format="auto" name="extracted"> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
26 <discover_datasets pattern="(?P<designation>.+)" directory="elementoutputs" visible="true" assign_primary_output="true"/> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
27 <filter>elementname == ''</filter> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
28 </data> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
29 </outputs> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
30 <tests> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
31 <test><!-- test with valid element --> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
32 <param name="input_collection"> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
33 <collection type="list"> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
34 <element name="element1" value="example.mothur.shared" /> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
35 <element name="element2" value="multisample.taxonomy" /> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
36 </collection> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
37 </param> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
38 <param name="elementname" value="element2"/> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
39 <output name="output" file="multisample.taxonomy"/> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
40 </test> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
41 <test><!-- test with invalid element --> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
42 <param name="input_collection"> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
43 <collection type="list"> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
44 <element name="element1" value="example.mothur.shared" /> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
45 <element name="element2" value="multisample.taxonomy" /> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
46 </collection> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
47 </param> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
48 <param name="elementname" value="element3"/> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
49 <output name="output"> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
50 <assert_contents> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
51 <has_text text="no element with name"/> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
52 </assert_contents> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
53 </output> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
54 </test> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
55 </tests> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
56 <help><![CDATA[ |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
57 **What it does** |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
58 extract a dataset from a collection based on name |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
59 ]]></help> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
60 <citations> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
61 </citations> |
c46360dcbf3f
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/extract_element_from_collection commit 1c4c58018b64ff3531a719e789ce71cb0a1244c5
erasmus-medical-center
parents:
diff
changeset
|
62 </tool> |