comparison gmql_rest_datasets_download.xml @ 0:35d52820e7c7 draft default tip

planemo upload for repository https://github.com/lu-brn/gmql-galaxy commit 953ee36ceda5814dc9baa03427bc0eb4ee2e93bd-dirty
author geco-team
date Tue, 26 Jun 2018 09:01:39 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:35d52820e7c7
1 <tool id="gmql_download" name="GMLQ Import Dataset" version="0.1.1">
2 <macros>
3 <import>gmql_rest_macros.xml</import>
4 </macros>
5 <command><![CDATA[
6 #if $operation == 'import' :
7 python $__tool_directory__/gmql_rest_datasets.py '' -user=$authToken -cmd=import -dataset=${dataset}
8 #else :
9 python $__tool_directory__/gmql_rest_datasets.py $ds_archive -user=$authToken -cmd=download -dataset=${dataset}
10 #end if
11 ]]></command>
12 <code file="dynamic_utils.py">
13 <hook validate_input="validate" />
14 </code>
15 <inputs>
16 <param format="gmql_user" name="authToken" type="data" label="Select user" />
17 <param name="gmql_datasets" type="data" format="gmql_repository" label="Working Datasets"/>
18 <param name="dataset" type="select" label="Select Dataset">
19 <options from_dataset="gmql_datasets">
20 <column name="value" index="0"/>
21 <filter column="1" type="static_value" value="public" keep="false"/>
22 </options>
23 </param>
24 <param name="operation" type="select" display="radio" multiple="false" label="Select the desired action">
25 <option value="import">Import data as a collection</option>
26 <option value="zip">Download zip archive</option>
27 </param>
28 </inputs>
29 <outputs>
30 <data format="zip" name="ds_archive" label="${dataset} Compressed Archive">
31 <filter>operation == 'zip'</filter>
32 </data>
33 <collection name="query_results_m" type="list" label="${dataset} metadata">
34 <discover_datasets pattern="(?P&lt;identifier_0&gt;[\w]+)\.(?P&lt;ext&gt;[^\._]+)?"
35 directory="metadata"/>
36 <filter>operation == 'import'</filter>
37 </collection>
38 <collection name="query_results_s" type="list" label="${dataset}">
39 <discover_datasets pattern="(?P&lt;identifier_0&gt;[\w]+)\.(?P&lt;ext&gt;[^\._]+)?"
40 directory="samples"/>
41 <filter>operation == 'import'</filter>
42 </collection>
43 </outputs>
44 <tests>
45 <test>
46 <param name="authToken" value="guest.gmql_user" />
47 <param name="gmql_datasets" value="rep.gmql_repository" />
48 <param name="dataset" value="Example1" />
49 <param name="operation" value="zip" />
50 <output name="ds_archive" file="Example1_Archive.zip" compare="sim_size" delta="0"/>
51 </test>
52 <test>
53 <param name="authToken" value="guest.gmql_user" />
54 <param name="gmql_datasets" value="rep.gmql_repository" />
55 <param name="dataset" value="Example1" />
56 <param name="operation" value="import" />
57 <collection name="query_results_s" type="list">
58 <metadata name="name" value="Example1" />
59 <discovered_dataset designation="sample1" file="sample1.bed"/>
60 <discovered_dataset designation="sample2" file="sample2.bed"/>
61 <discovered_dataset designation="sample3" file="sample3.bed"/>
62 </collection>
63 <collection name="query_results_m" type="list">
64 <metadata name="name" value="Example1 metadata" />
65 <discovered_dataset designation="sample1" file="sample1.bed.meta"/>
66 <discovered_dataset designation="sample2" file="sample2.bed.meta"/>
67 <discovered_dataset designation="sample3" file="sample3.bed.meta"/>
68 </collection>
69 </test>
70 </tests>
71 <help>
72 It allows importing in the current Galaxy history the selected dataset.
73
74 ----
75
76 **What it does**
77
78 - **Import as Collection**: returning data consist of two collections, one for samples and one for their metadata
79 - **Download ZIP Archive**: returns the dataset as a zip archive
80
81
82 The user provides a list of datasets (gmql_repository file) and selects from there the dataset he wants to import.
83
84 .. class:: warningmark
85
86 A gmql_user authentication token is required for every action.
87
88 </help>
89 <expand macro="citations" />
90 </tool>