annotate pyega3.xml @ 3:8bbe09a52904 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
author iuc
date Thu, 27 Oct 2022 15:12:30 +0000
parents e82175804eb1
children 9564758e8638
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
1 <tool id="pyega3" name="EGA Download Client" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" 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>
3
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
3 <token name="@TOOL_VERSION@">4.0.5</token>
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
4 <token name="@VERSION_SUFFIX@">1</token>
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
5 </macros>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
6 <requirements>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
7 <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
8 </requirements>
3
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
9 <version_command><![CDATA[
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
10 pyega3 -v |& grep version | cut -d" " -f 10
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
11 ]]></version_command>
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
12 <command detect_errors="exit_code"><![CDATA[
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
13 #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
14 #if $username == "":
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
15 #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
16 #end if
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
17 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
18
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
19 #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
20 pyega3 -cf '$credentials'
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
21 datasets
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
22 #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
23 pyega3 -cf '$credentials'
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
24 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
25 &&
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
26
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
27 ## 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
28 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
29
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
30 ## 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
31 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
32
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
33 #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
34 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
35 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
36 --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
37 #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
38 --reference-name '$action.range.reference_name'
2
e82175804eb1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit eb28ccaa03633b3500b38e2eb304c55e1682c489
iuc
parents: 1
diff changeset
39 #if str($action.range.start)
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
40 --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
41 #end if
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
42 #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
43 --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
44 #end if
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
45 #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
46 && 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
47 && 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
48
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
49 #elif $action.action_type == "download_files"
3
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
50 #import re
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
51 #set file_ids=[x.split('\t')[int(str($action.id_column))-1] for x in open(str($id_table)).readlines()]
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
52 #set outfiles=[x.split('\t')[int(str($action.file_column))-1].replace('\n', '') for x in open(str($id_table)).readlines()]
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
53 mkdir downloads
3
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
54 #for f, o in zip($file_ids, $outfiles)
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
55 #if not f.startswith("EGAF")
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
56 && >&2 echo "Ignoring \"$f\": no EGA file ID"
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
57 #continue
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
58 #end if
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
59 &&
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
60 echo 'Downloading $f: $o'
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
61 &&
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
62 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
63 fetch '$f'
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
64 --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
65 #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
66 --reference-name '$action.range.reference_name'
2
e82175804eb1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit eb28ccaa03633b3500b38e2eb304c55e1682c489
iuc
parents: 1
diff changeset
67 #if str($action.range.start)
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
68 --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
69 #end if
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
70 #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
71 --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
72 #end if
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
73 #end if
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
74 --output-dir downloads
3
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
75 #if re.match(".*vcf(_genomic_range_.*|).gz$", o)
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
76 #if $action.range.reference_name or ($action.range.start or $action.range.end)
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
77 && mv 'downloads/$f/'$o[:-3]'_genomic_range_'\$([ -z "$action.range.reference_name" ] && printf "None" || printf "$action.range.reference_name")'_'\$([ -z "$action.range.start" ] && printf "None" || printf "$action.range.reference_name")'_'\$([ -z "$action.range.reference_name" ] && printf "None" || printf "$action.range.end")'.gz' 'downloads/$f/'$o'.vcf_bgzip'
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
78 #else
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
79 && mv 'downloads/$f/$o' 'downloads/$f/'$o'.vcf_bgzip'
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
80 #end if
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
81 #end if
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
82 #if re.match(".*ped$", o)
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
83 && mv 'downloads/$f/$o' 'downloads/$f/'$o'.tabular'
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
84 #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
85 #end for
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
86 && 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
87
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
88 #end if
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
89 ]]></command>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
90 <configfiles>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
91 <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
92 #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
93 #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
94 #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
95 #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
96 #set $password = "egarocks"
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
97 #end if
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
98 {
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
99 "username": "$username",
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
100 "password": "$password"
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
101 }
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
102 ]]></configfile>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
103 </configfiles>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
104 <inputs>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
105 <conditional name="action">
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
106 <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
107 <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
108 <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
109 <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
110 <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
111 </param>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
112 <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
113 <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
114 <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
115 </param>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
116 </when>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
117 <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
118 <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
119 <param name="file_id" type="text" optional="false" label="EGA File Accession Identifier" help="Identifier starting with 'EGAF'. For example: EGAF00001753735">
3
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
120 <validator type="regex" message="EGA Accession ID must be a string of numbers prefixed by 'EGAD' (datasets) or 'EGAF' (files)">EGA[DF][0-9]+</validator>
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
121 </param>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
122 <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
123 <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
124 <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
125 <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
126 </section>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
127 </when>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
128 <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
129 <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
130 <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" />
3
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
131 <param name="file_column" type="data_column" data_ref="id_table" label="Column containing the file names" />
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
132 <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
133 <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
134 <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
135 <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
136 </section>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
137 </when>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
138 </conditional>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
139 <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
140 </inputs>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
141 <outputs>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
142 <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
143 <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
144 </data>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
145 <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
146 <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
147 </data>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
148 <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
149 <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
150 </data>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
151 <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
152 <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
153 </data>
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
154 <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
155 <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
156 <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
157 </collection>
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
158 </outputs>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
159 <tests>
3
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
160 <!-- list datasets with default credentials -->
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
161 <test expect_num_outputs="1">
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
162 <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
163 <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
164 <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
165 <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
166 <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
167 </assert_contents>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
168 </output>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
169 </test>
3
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
170 <!-- list dataset files with default credentials, and request a log output file -->
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
171 <test expect_num_outputs="2">
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
172 <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
173 <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
174 <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
175 <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
176 <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
177 <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
178 <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
179 <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
180 <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
181 </assert_contents>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
182 </output>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
183 </test>
3
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
184 <!-- download a single file -->
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
185 <test expect_num_outputs="1">
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
186 <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
187 <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
188 <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
189 </test>
3
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
190 <!-- download a single file, with genomic range specified -->
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
191 <test expect_num_outputs="1">
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
192 <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
193 <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
194 <param name="reference_name" value="1"/>
2
e82175804eb1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit eb28ccaa03633b3500b38e2eb304c55e1682c489
iuc
parents: 1
diff changeset
195 <param name="start" value="0"/>
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
196 <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
197 <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
198 </test>
3
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
199 <!-- download multiple files -->
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
200 <test expect_num_outputs="1">
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
201 <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
202 <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
203 <param name="id_column" value="1"/>
3
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
204 <param name="file_column" value="5"/>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
205 <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
206 <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
207 <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
208 </output_collection>
3
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
209 <assert_stderr>
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
210 <has_text text="Ignoring &quot;File ID&quot;: no EGA file ID"/>
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
211 </assert_stderr>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
212 </test>
3
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
213 <!-- download multiple files, in combination with a genomic range -->
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
214 <test expect_num_outputs="1">
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
215 <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
216 <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
217 <param name="id_column" value="1"/>
3
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
218 <param name="file_column" value="5"/>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
219 <param name="reference_name" value="1"/>
2
e82175804eb1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit eb28ccaa03633b3500b38e2eb304c55e1682c489
iuc
parents: 1
diff changeset
220 <param name="start" value="0"/>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
221 <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
222 <output_collection name="downloaded_file_collection" count="2">
2
e82175804eb1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit eb28ccaa03633b3500b38e2eb304c55e1682c489
iuc
parents: 1
diff changeset
223 <element name="NA19239_genomic_range_1_0_10000" md5="bcdcf18846233cbe5cc8afd95168552c" />
e82175804eb1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit eb28ccaa03633b3500b38e2eb304c55e1682c489
iuc
parents: 1
diff changeset
224 <element name="NA19240_genomic_range_1_0_10000" md5="e576a38748feec45aa45191f6e902ce2" />
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
225 </output_collection>
3
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
226 <assert_stderr>
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
227 <has_text text="Ignoring &quot;File ID&quot;: no EGA file ID"/>
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
228 </assert_stderr>
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
229 </test>
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
230 <!-- download multiple vcf.gz files -->
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
231 <test expect_num_outputs="1">
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
232 <param name="action_type" value="download_files"/>
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
233 <param name="id_table" value="filelist3.tabular"/>
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
234 <param name="id_column" value="1"/>
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
235 <param name="file_column" value="5"/>
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
236 <output_collection name="downloaded_file_collection" type="list" count="2">
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
237 <element name="HG00408.novoBreak__256r__4.100100-10100100__7.200100-9000100.vcf.gz" md5="51cfb69bf3b9416ff425381a58c18a2b" />
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
238 <element name="HG01890.HGSVC__145r__1.900100-10001000__18.2001000-90001000.vcf.gz" md5="ebad4425191a89d3e970c02190a87175" />
8bbe09a52904 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit c472a64dc5e68fb058b71e7404f180847ba9f6d4
iuc
parents: 2
diff changeset
239 </output_collection>
1
1162bfd9f782 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit f91c99780efc91e89950ed9494ef9e6f83d198c7"
iuc
parents: 0
diff changeset
240 </test>
0
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
241 </tests>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
242 <help><![CDATA[
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
243 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
244
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
245 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
246
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
247 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
248
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
249 - 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
250 - 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
251 - 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
252 - 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
253 - 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
254
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
255 ]]></help>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
256 <citations>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
257 <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
258 </citations>
caf213d51d6c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pyega3 commit 3da28c7772346e1872b6d768b904305be0c61db7"
iuc
parents:
diff changeset
259 </tool>