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