Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aquainfra importer #108

Merged
merged 17 commits into from
May 14, 2024
11 changes: 11 additions & 0 deletions tools/aquainfra_importer/.shed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
categories:
- Ecology
owner: ecology
remote_repository_url: https://github.com/AquaINFRA/tools-ecology/tree/aquainfra_importer
homepage_url: https://github.com/AquaINFRA/galaxy
long_description: |
A data source tool for downloading datasets via the AquaINFRA Interaction Platform.
type: unrestricted
auto_tool_repositories:
name_template: "{{ tool_id }}"
description_template: "Data source tool for content provided in AquaINRA: {{ tool_name }}."
13 changes: 13 additions & 0 deletions tools/aquainfra_importer/aquainfra_importer.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<tool id="aquainfra_importer" name="AquaINFRA Importer" tool_type="data_source" version="1.0" profile="22.05">
MarkusKonk marked this conversation as resolved.
Show resolved Hide resolved
<description>downloads content via the AquaINFRA interaction platform</description>
<command><![CDATA[
python '$__tool_directory__/data_source.py' '$output' $__app__.config.output_size_limit '$output'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When installing from the toolshed, this will only work if you also provide the data_source.py script together with the .xml because this literally expects the .xml and the .py file in the same directory.
If you haven't customized anything you can just copy over https://github.com/galaxyproject/galaxy/blob/dev/tools/data_source/data_source.py here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick review. I just added the file to PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, I'm now checking things on my own instance to see how it behaves :-)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but the aquainfra part of this is not implemented yet? or should it be?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I wasn't sure what to do first. The problem is that only very very few datasets have metadata including a direct download link. Most don't have a link or redirect to the website of the data provider where you need to accept conditions or login or similar. Ideally the "Import to Galaxy" Button would be on the website of the data provider but I don't see that happen in the near future.
Give me some time to update the platform and I will show you an example record to test the import to Galaxy.

bgruening marked this conversation as resolved.
Show resolved Hide resolved
]]></command>
<inputs action="https://aquainfra.dev.52north.org/" check_values="false" method="get">
<param name="GALAXY_URL" type="baseurl" value="/tool_runner" />
<param name="tool_id" type="hidden" value="aquainfra_importer" />
</inputs>
<outputs>
<data name="output" format="zip" label="resource"/>
</outputs>
</tool>