Mercurial > repos > galaxy-australia > aarnet_filesender
comparison filesender.xml @ 0:7f6de5d9fb50 draft
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/master/tools/aarnetfilesender commit 192bb5e7bd10d911d7bd8c91ca9f3c88ae6da334
author | galaxy-australia |
---|---|
date | Mon, 07 Oct 2024 04:48:22 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:7f6de5d9fb50 |
---|---|
1 <tool id="aarnet_filesender" name="AARNet FileSender" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> | |
2 <description>transfer files to AARNet's FileSender Service</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements"/> | |
7 <expand macro="version_command"/> | |
8 <command detect_errors="exit_code"><![CDATA[ | |
9 #if $test != "": | |
10 filesender -h && | |
11 exit 0; | |
12 #end if | |
13 | |
14 #set $apiuser = $__user__.extra_preferences.get('aarnet_filesender_account|username', "").strip() | |
15 #set $apikey = $__user__.extra_preferences.get('aarnet_filesender_account|apikey', "").strip() | |
16 | |
17 #if $apiuser == "" or $apikey == "": | |
18 echo "ERROR: Please enter your FileSender Username in your user preferences under the AARNet FileSender Account Info section" >&2 && | |
19 exit 1; | |
20 #end if | |
21 | |
22 #if $to == "": | |
23 echo "WARNING: recipent email not set, setting to $__user_email__" && | |
24 #set $to = $__user_email__ | |
25 #end if | |
26 | |
27 mkdir filestosend && | |
28 | |
29 #for $file in $data | |
30 if [ -f "filestosend/${file.element_identifier}" ]; then | |
31 echo "ERROR: two datasets have the same name (${file.element_identifier})" && | |
32 exit 1; | |
33 fi && | |
34 ln -s "$file" "filestosend/${file.element_identifier}" && | |
35 #end for | |
36 | |
37 filesender -p -u '$apiuser' -a '$apikey' -b https://filesender.aarnet.edu.au/rest.php -f "galaxy-no-reply@usegalaxy.org.au" -r '$to' filestosend >$output 2>&1 | |
38 ]]></command> | |
39 <inputs> | |
40 <param name="data" type="data" format="txt,data" multiple="true" optional="false" label="Datasets to be sent:"/> | |
41 <param name="to" type="text" optional="true" label="Email address of recipent:"> | |
42 <sanitizer sanitize="False"/> | |
43 </param> | |
44 <param name="test" type="hidden" value=""/> | |
45 </inputs> | |
46 <outputs> | |
47 <data name="output" format="txt" hidden="false"/> | |
48 </outputs> | |
49 <tests> | |
50 <test expect_exit_code="1" expect_failure="true"> | |
51 <param name="data" value="summary_statistics.txt"/> | |
52 <assert_stderr> | |
53 <has_text text="ERROR: Please enter your FileSender Username in your user preferences under the AARNet FileSender Account Info section"/> | |
54 </assert_stderr> | |
55 </test> | |
56 <test> | |
57 <param name="data" value="summary_statistics.txt"/> | |
58 <param name="test" value="true"/> | |
59 <assert_stdout> | |
60 <has_text text="File Sender CLI client"/> | |
61 </assert_stdout> | |
62 </test> | |
63 </tests> | |
64 <help> | |
65 **What it does** | |
66 Send dataset(s) from Galaxy to anyone via AARNet's FileSender service. | |
67 | |
68 **Remarks** | |
69 This tool leverages AARNet's FileSender (https://filesender.aarnet.edu.au) | |
70 to send files out of Galaxy. | |
71 </help> | |
72 <citations> | |
73 <citation type="bibtex"> | |
74 @misc{FileSenderCLI_github, | |
75 title={FileSenderCLI Github page}, | |
76 url = {https://github.com/madsi1m/FileSenderCLI},} | |
77 </citation> | |
78 </citations> | |
79 </tool> |