annotate pyega3.xml @ 1:1162bfd9f782 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
author iuc
date Tue, 12 Apr 2022 11:36:51 +0000
parents caf213d51d6c
children e82175804eb1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
1 <tool id="pyega3" name="EGA Download Client" version="@TOOL_VERSION@+galaxy0" profile="21.01" >
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
2 <macros>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
3 <token name="@TOOL_VERSION@">4.0.0</token>
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
4 </macros>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
5 <requirements>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
6 <requirement type="package" version="@TOOL_VERSION@">pyega3</requirement>
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
7 </requirements>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
8 <command detect_errors="exit_code"><![CDATA[
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
9 #set $username = $__user__.extra_preferences.get('ega_account|username', "")
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
10 #if $username == "":
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
11 #set $username = "ega-test-data@ebi.ac.uk (default user)"
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
12 #end if
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
13 echo "Running as user: $username. Set your credentials via: User -> Preferences -> Manage Information" &&
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
14
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
15 #if $action.action_type == "list_datasets"
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
16 pyega3 -cf '$credentials'
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
17 datasets
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
18 #elif $action.action_type == "list_dataset_files"
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
19 pyega3 -cf '$credentials'
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
20 files '$action.dataset_id'
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
21 &&
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
22
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
23 ## create file header
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
24 echo -e 'File ID\tStatus\tBytes\tCheck sum\tFile name' > '$dataset_file_list' &&
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
25
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
26 ## remove timestamps and convert spaces to tabs
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
27 grep EGAF pyega3_output.log | sed -e 's/^\[.*\]\s\+//g' | sed 's/\s\+/\t/g' >> '$dataset_file_list'
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
28
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
29 #elif $action.action_type == "download_file"
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
30 pyega3 -c \${PYEGA_CONNECTIONS:-30} -cf '$credentials'
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
31 fetch '$action.file_id'
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
32 --max-retries 10
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
33 #if $action.range.reference_name
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
34 --reference-name '$action.range.reference_name'
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
35 #if $action.range.start
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
36 --start $action.range.start
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
37 #end if
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
38 #if $action.range.end
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
39 --end $action.range.end
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
40 #end if
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
41 #end if
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
42 && mv ${action.file_id} downloads
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
43 && rm -f downloads/*.md5 ## checksum validation already performed by pyEGA, cleanup downloads folder
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
44
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
45 #elif $action.action_type == "download_files"
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
46 #set file_ids=[x.split('\t')[int(str($action.id_column))-1] for x in open(str($id_table)).readlines() if x.split('\t')[int(str($action.id_column))-1].startswith('EGAF') ]
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
47 mkdir downloads
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
48 #for f in $file_ids
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
49 &&
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
50 pyega3 -c \${PYEGA_CONNECTIONS:-30} -cf '$credentials'
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
51 fetch '$f'
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
52 --max-retries 10
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
53 #if $action.range.reference_name
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
54 --reference-name '$action.range.reference_name'
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
55 #if $action.range.start
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
56 --start $action.range.start
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
57 #end if
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
58 #if $action.range.end
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
59 --end $action.range.end
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
60 #end if
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
61 #end if
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
62 --output-dir downloads
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
63 #end for
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
64 && rm -f downloads/**/*.md5 ## checksum validation already performed by pyEGA, clean up downloads folder
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
65
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
66 #end if
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
67 ]]></command>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
68 <configfiles>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
69 <configfile name="credentials"><![CDATA[
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
70 #set $password = $__user__.extra_preferences.get('ega_account|password', "")
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
71 #set $username = $__user__.extra_preferences.get('ega_account|username', "")
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
72 #if $username == "" or $password == "":
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
73 #set $username = "ega-test-data@ebi.ac.uk"
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
74 #set $password = "egarocks"
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
75 #end if
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
76 {
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
77 "username": "$username",
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
78 "password": "$password"
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
79 }
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
80 ]]></configfile>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
81 </configfiles>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
82 <inputs>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
83 <conditional name="action">
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
84 <param name="action_type" type="select" label="What would you like to do?">
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
85 <option value="list_datasets"> List my authorized datasets </option>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
86 <option value="list_dataset_files"> List files in a datasets </option>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
87 <option value="download_file"> Download a file </option>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
88 <option value="download_files"> Download multiple files (based on a file with IDs) </option>
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
89 </param>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
90 <when value="list_dataset_files">
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
91 <param name="dataset_id" type="text" optional="false" label="EGA Dataset Accession ID" help="Identifier starting with 'EGAD'. For example: EGAD00001003338">
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
92 <validator type="regex" message="EGA dataset ID must be a string of numbers prefixed by 'EGAD'">EGAD[0-9]+</validator>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
93 </param>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
94 </when>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
95 <when value="list_datasets"/>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
96 <when value="download_file">
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
97 <param name="file_id" type="text" optional="false" label="EGA File Accession Identifier" help="Identifier starting with 'EGAF'. For example: EGAF00001753735">
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
98 <validator type="regex" message="EGA Accession ID must be a string of numbers prefixed by 'EGAD' (datasets) or 'EGAF' (files)">EGAF[0-9]+</validator>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
99 </param>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
100 <section name="range" title="Request a specific Genomic range?" expanded="false">
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
101 <param argument="--reference-name" type="text" optional="true" label="Reference Sequence Name" help="For example 'chr1', '1', or 'chrX'. If unspecified, all data is returned." />
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
102 <param argument="--start" type="integer" optional="true" min="0" label="Start Position" help="0-based, inclusive. Only used if a reference sequence name was specified"/>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
103 <param argument="--end" type="integer" optional="true" min="0" label="End Position" help="0-based, exclusive. Only used if a reference sequence name was specified"/>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
104 </section>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
105 </when>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
106 <when value="download_files">
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
107 <param name="id_table" type="data" format="tabular" label="Table with IDs to download" help="A tabular file where one column contains the set of file IDs. This will output a collection. Please select files that are all the same format (e.g. all BAM or all VCF)."/>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
108 <param name="id_column" type="data_column" data_ref="id_table" label="Column containing the file IDs" help="File Identifiers starting with 'EGAF'. For example: EGAF00001753735" />
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
109 <section name="range" title="Request a specific Genomic range? (will be applied to ALL requested files)" expanded="false">
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
110 <param argument="--reference-name" type="text" optional="true" label="Reference Sequence Name" help="For example 'chr1', '1', or 'chrX'. If unspecified, all data is returned." />
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
111 <param argument="--start" type="integer" optional="true" min="0" label="Start Position" help="0-based, inclusive. Only used if a reference sequence name was specified"/>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
112 <param argument="--end" type="integer" optional="true" min="0" label="End Position" help="0-based, exclusive. Only used if a reference sequence name was specified"/>
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
113 </section>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
114 </when>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
115 </conditional>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
116 <param name="output_log" type="boolean" checked="false" label="Output the log file?"/>
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
117 </inputs>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
118 <outputs>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
119 <data name="authorized_datasets" format="txt" from_work_dir="pyega3_output.log" label="${tool.name}: authorized datasets">
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
120 <filter> action['action_type'] == 'list_datasets' </filter>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
121 </data>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
122 <data name="dataset_file_list" format="tabular" label="${tool.name}: ${action.dataset_id} - file list">
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
123 <filter> action['action_type'] == 'list_dataset_files' </filter>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
124 </data>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
125 <data name="downloaded_file" auto_format="true" from_work_dir="downloads/*" label="${tool.name}: ${action.file_id} ${action.range.reference_name} ${action.range.start} ${action.range.end}">
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
126 <filter> action['action_type'] == 'download_file' </filter>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
127 </data>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
128 <data name="logfile" format="txt" from_work_dir="pyega3_output.log" label="${tool.name}: log">
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
129 <filter> output_log </filter>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
130 </data>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
131 <collection name="downloaded_file_collection" type="list" label="${tool.name} on ${on_string}: Downloaded datasets">
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
132 <filter> action['action_type'] == 'download_files' </filter>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
133 <discover_datasets pattern="__designation_and_ext__" recurse="true" directory="downloads" />
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
134 </collection>
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
135 </outputs>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
136 <tests>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
137 <test expect_num_outputs="1"><!-- list datasets with default credentials -->
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
138 <param name="action_type" value="list_datasets"/>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
139 <output name="authorized_datasets" ftype="txt">
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
140 <assert_contents>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
141 <has_text text="pyEGA3 - EGA python client version @TOOL_VERSION@"/>
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
142 <has_text text="EGAD00001003338"/>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
143 </assert_contents>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
144 </output>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
145 </test>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
146 <test expect_num_outputs="2"><!-- list dataset files with default credentials, and request a log output file -->
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
147 <param name="action_type" value="list_dataset_files"/>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
148 <param name="dataset_id" value="EGAD00001003338"/>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
149 <param name="output_log" value="true"/>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
150 <output name="dataset_file_list" file="filelist_EGAD00001003338.tabular"/>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
151 <output name="logfile" ftype="txt">
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
152 <assert_contents>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
153 <has_text text="pyEGA3 - EGA python client version @TOOL_VERSION@"/>
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
154 <has_line_matching expression="^\[.*\]\s+File ID\s+Status\s+Bytes\s+Check sum\s+File name$"/>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
155 <has_text text="EGAF00001753734"/>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
156 </assert_contents>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
157 </output>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
158 </test>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
159 <test expect_num_outputs="1"> <!-- download a single file -->
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
160 <param name="action_type" value="download_file"/>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
161 <param name="file_id" value="EGAF00001775036"/>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
162 <output name="downloaded_file" md5="3b89b96387db5199fef6ba613f70e27c"/>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
163 </test>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
164 <test expect_num_outputs="1"> <!-- download a single file, with genomic range specified -->
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
165 <param name="action_type" value="download_file"/>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
166 <param name="file_id" value="EGAF00001753756"/>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
167 <param name="reference_name" value="1"/>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
168 <param name="start" value="100"/>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
169 <param name="end" value="10000"/>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
170 <output name="downloaded_file" ftype="bam" md5="e576a38748feec45aa45191f6e902ce2"/>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
171 </test>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
172 <test expect_num_outputs="1"> <!-- download multiple files -->
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
173 <param name="action_type" value="download_files"/>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
174 <param name="id_table" value="filelist.tabular"/>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
175 <param name="id_column" value="1"/>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
176 <output_collection name="downloaded_file_collection" type="list" count="2">
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
177 <element name="ENCFF000VWO.bam" md5="b8ae14d5d1f717ab17d45e8fc36946a0" />
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
178 <element name="ENCFF284YOU.bam" md5="3b89b96387db5199fef6ba613f70e27c" />
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
179 </output_collection>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
180 </test>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
181 <test expect_num_outputs="1"> <!-- download multiple files, in combination with a genomic range -->
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
182 <param name="action_type" value="download_files"/>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
183 <param name="id_table" value="filelist2.tabular"/>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
184 <param name="id_column" value="1"/>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
185 <param name="reference_name" value="1"/>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
186 <param name="start" value="100"/>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
187 <param name="end" value="10000"/>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
188 <output_collection name="downloaded_file_collection" count="2">
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
189 <element name="NA19239_genomic_range_1_100_10000" md5="bcdcf18846233cbe5cc8afd95168552c" />
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
190 <element name="NA19240_genomic_range_1_100_10000" md5="e576a38748feec45aa45191f6e902ce2" />
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
191 </output_collection>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
192 </test>
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
193 </tests>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
194 <help><![CDATA[
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
195 The pyEGA3 download client is a python-based tool for viewing and downloading files from authorized EGA datasets.
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
196
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
197 If you have an EGA account, you can set your EGA credentials in the user preferences menu of Galaxy. Otherwise, default EGA credentials with access to an example dataset will be used.
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
198
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
199 pyEGA3 uses the EGA Data API and has several key features:
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
200
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
201 - Files are transferred over secure https connections and received unencrypted, so no need for decryption after download.
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
202 - Downloads resume from where they left off in the event that the connection is interrupted.
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
203 - pyEGA3 supports file segmenting and parallelized download of segments, improving overall performance.
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
204 - After download completes, file integrity is verified using checksums.
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
205 - pyEGA3 implements the GA4GH-compliant htsget protocol for download of genomic ranges for data files with accompanying index files.
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
206
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
207 ]]></help>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
208 <citations>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
209 <citation type="doi">10.1038/ng.3312</citation>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
210 </citations>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
211 </tool>