comparison irods_download.xml @ 0:7d8912d20007 draft

"planemo upload commit b2a00d9c24285fef0fb131d1832ecf4c337e5038-dirty"
author rhohensinner
date Fri, 21 May 2021 09:51:30 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:7d8912d20007
1 <tool id="irods_download" name="iRODS Download" version="0.1" workflow_compatible="false">
2 <description>Download your files from iRODS into Galaxy</description>
3 <requirements>
4 <requirement type="package" version="0.8.2">python-irodsclient</requirement>
5 <requirement type="package" version="0.1.0">tk</requirement>
6 </requirements>
7
8 <command interpreter="python">
9 ### using CHEETAH ###
10 ## Set up iRODS params
11 #import json
12 #set params = {}
13 #set params["irods_host"] = str($custom_host)
14 #set params["irods_port"] = str($custom_port)
15 #set params["irods_zone"] = str($custom_zone)
16 ##set params["filepath"] = str($file_path)
17
18 #if $file_select_config.selection_type == "use_path"
19 #set params["selection_type"] = "path"
20 #set params["file_path"] = str($file_select_config.file_path)
21 #set params["expl_path"] = ""
22 #end if
23 #if $file_select_config.selection_type == "use_explorer"
24 #set params["selection_type"] = "explorer"
25 #set params["file_path"] = ""
26 #set params["expl_path"] = str($file_select_config.explorer_entrypoint)
27 #end if
28 ## set up Galaxy params
29 #set params["galaxy_user"] = str($__user_name__)
30 #set params["job_id"] = str($output.creating_job.id)
31 #set params["out_dir"] = str($output.files_path)
32 #set params["out_file"] = str($output)
33 #set params["galaxy_root"] = str($GALAXY_ROOT_DIR)
34 #set params["galaxy_datatypes"] = str($GALAXY_DATATYPES_CONF_FILE)
35 ##import os
36 ##import glob
37 ##set $test = glob.glob("os.getcwd()" + "/**/irods_galaxy_registry.xml", recursive=True)
38 ##set params["reg_file"]
39 #set params["tool_type"] = "down"
40 #set $params=json.dumps($params)
41 main.py '$params'
42 </command>
43
44 <inputs>
45 <param name="custom_host" type="text" value="data.cyverse.tugraz.at" label="iRODS Host:" />
46 <param name="custom_port" type="text" value="1247" label="iRODS Port:" />
47 <param name="custom_zone" type="text" value="TUG" label="iRODS Zone:" />
48 <conditional name="file_select_config">
49 <param type="select" display="radio" name="selection_type" label="File Selection:">
50 <option value="use_path">Use path to iRODS File or Directory</option>
51 <option value="use_explorer">Use file explorer</option>
52 </param>
53 <when value="use_path">
54 <param name="file_path" type="text" value="E.g.: /ZONE/home/USER/my_data.txt" label="Path to iRODS File or Directory:" />
55 </when>
56 <when value="use_explorer">
57 <param name="explorer_entrypoint" type="text" value="" label="Entry directory for file explorer (optional):" />
58 </when>
59 </conditional>
60 </inputs>
61
62 <outputs>
63 <data name="output" label="${tool.name}: " auto_format="true" />
64 </outputs>
65
66 <help>
67 Download iRODS
68
69 </help>
70 <citations>
71 <citation type="bibtex">
72 @misc{Download-iRODS,
73 author = {Hohensinner, Richard},
74 year = {2021},
75 title = {iRODSTools},
76 publisher = {GitLab},
77 journal = {GitLab repository},
78 url = {https://gitlab.tugraz.at/D463A320ED7901AB/galaxy_irods_tools},
79 }
80 </citation>
81 </citations>
82 </tool>