# HG changeset patch # User galaxy-australia # Date 1729552366 0 # Node ID 6d0c0961ae13e021c46888a1a58ddcaffa8a040f # Parent 17787c79af4454e828aad4893dbb5b0a70ec1a6c planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/master/tools/aarnet_filesender commit c8e1e0914854bf50287ea4b9ee86dfeb747a3342 diff -r 17787c79af44 -r 6d0c0961ae13 README.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.rst Mon Oct 21 23:12:46 2024 +0000 @@ -0,0 +1,26 @@ +FileSenderCLI wrapper +====================== + +Galaxy wrapper of the AARNET +`filesender `__. + +Setting up credentials on Galaxy +-------------------------------- + +The admin can enable users to set their own credentials +for this tool. To enable it, make sure the file +``config/user_preferences_extra_conf.yml`` has the following section: + +.. code-block:: yaml + + aarnet_filesender_account: + description: AARNet FileSender Account Info + inputs: + - name: username + label: AARNet FileSender Username + type: text + required: False + - name: apikey + label: AARNet FileSender API Key + type: password + required: False diff -r 17787c79af44 -r 6d0c0961ae13 aarnet_filesender.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/aarnet_filesender.xml Mon Oct 21 23:12:46 2024 +0000 @@ -0,0 +1,99 @@ + + transfer files with AARNet's FileSender Service + + macros.xml + + + + &2 && + exit 1; +#end if + +#if $to == "": + echo "WARNING: recipent email not set, setting to $__user_email__" && + #set $to = $__user_email__ +#end if + +mkdir filestosend && + +#for $file in $data + if [ -f "filestosend/${file.element_identifier}" ]; then + echo "ERROR: two datasets have the same name (${file.element_identifier})" && + exit 1; + fi && + ln -s "$file" "filestosend/${file.element_identifier}" && +#end for + +filesender -p -u '$apiuser' -a '$apikey' -b https://filesender.aarnet.edu.au/rest.php -f '$__user_email__' -r '$to' -s 'Data sent from Galaxy' filestosend >$output 2>&1 + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + **What it does** + + Uses `AARNet’s FileSender service`_ to send dataset(s) from Galaxy. The + recipient will receive an email with a link to download the files. + + **Who can use it** + + AARNet FileSender is available to all institutions affiliated with the + `Australian Access Federation (AAF)`_. You can use your institution + login details to access and use FileSender. + + **How to connect your Galaxy account to FileSender** + + To send files from Galaxy you will need to connect your Galaxy account + to FileSender. This is done by entering your FileSender API key into your + Galaxy user preferences. + + 1. Log in to FileSender, and copy your API key from the “API Secret” section on the FileSender “My + Profile” page. See the `AARNet Knowledge Base`_ for more information. + 2. In Galaxy, add your API key to the “AARNet FileSender API Key” field + in User > Preferences > Manage Information. Your AARNet FileSender + Username is the email address you used to log in to FileSender. + + .. _AARNet’s FileSender service: https://filesender.aarnet.edu.au + .. _Australian Access Federation (AAF): https://aaf.edu.au/subscribers/ + .. _AARNet Knowledge Base: https://support.aarnet.edu.au/hc/en-us/articles/235972948-FileSender-API + + + + @misc{FileSenderCLI_github, + title={FileSenderCLI Github page}, + url = {https://github.com/madsi1m/FileSenderCLI},} + + + diff -r 17787c79af44 -r 6d0c0961ae13 filesender.xml --- a/filesender.xml Mon Oct 07 04:49:30 2024 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +0,0 @@ - - transfer files to AARNet's FileSender Service - - macros.xml - - - - &2 && - exit 1; -#end if - -#if $to == "": - echo "WARNING: recipent email not set, setting to $__user_email__" && - #set $to = $__user_email__ -#end if - -mkdir filestosend && - -#for $file in $data - if [ -f "filestosend/${file.element_identifier}" ]; then - echo "ERROR: two datasets have the same name (${file.element_identifier})" && - exit 1; - fi && - ln -s "$file" "filestosend/${file.element_identifier}" && -#end for - -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 - ]]> - - - - - - - - - - - - - - - - - - - - - - - - - -**What it does** - Send dataset(s) from Galaxy to anyone via AARNet's FileSender service. - -**Remarks** - This tool leverages AARNet's FileSender (https://filesender.aarnet.edu.au) - to send files out of Galaxy. - - - - @misc{FileSenderCLI_github, - title={FileSenderCLI Github page}, - url = {https://github.com/madsi1m/FileSenderCLI},} - - - diff -r 17787c79af44 -r 6d0c0961ae13 macros.xml --- a/macros.xml Mon Oct 07 04:49:30 2024 +0000 +++ b/macros.xml Mon Oct 21 23:12:46 2024 +0000 @@ -1,6 +1,6 @@ v3.0.0 - 1 + 2 22.05