Importing (uploading) data from Onedata

Overview
Creative Commons License: CC-BY Questions:
  • How to import data from Onedata to Galaxy?

  • How to configure Onedata as a data source in Galaxy?

  • What are the different ways to configure Onedata in Galaxy?

Objectives:
  • Learn how to configure Onedata as a data source in Galaxy.

  • Understand the difference between configuring your own and generic Onedata source.

  • Learn how to import data from Onedata to Galaxy.

Requirements:
Time estimation: 15 minutes
Level: Introductory Introductory
Supporting Materials:
Published: Mar 24, 2025
Last modification: Mar 24, 2025
License: Tutorial Content is licensed under Creative Commons Attribution 4.0 International License. The GTN Framework is licensed under MIT
version Revision: 1
Agenda
  1. Prerequisites
  2. Introduction
  3. Configuration
    1. Configure your own Onedata Remote File Source
    2. Configure a generic Onedata remote
  4. Importing (uploading) data
    1. Using the preconfigured remotes
  5. Troubleshooting
  6. Related topics

Prerequisites

  1. This tutorial assumes that you have basic knowledge about Onedata and access to a Onedata ecosystem. If needed, follow this tutorial first!
  2. To use Onedata as a remote file source for data import, you need the domain of the Onezone service and a suitable access token. Here is the relevant guide on how to get them.
  3. The Galaxy server must be properly configured by the admins for the Onedata remote and/or Onedata BYOD templates to be available. Here is the corresponding tutorial.

Introduction

You may import the data stored in Onedata into Galaxy (also referred to as data upload). There are two ways how to do that; either use the Bring Your Own Data (BYOD) feature to configure your own Remote File Sources (recommended), or use the ones configured by Galaxy admins (if applicable). Below hands-on tutorials cover both scenarios.

While Onedata can be used for both, a Remote File Source is not the same as a Storage Location. In this tutorial, you will be setting up a Onedata-based Remote File Source, which allows importing (uploading) data to Galaxy and exporting it from Galaxy. If you are looking to use a Storage Location, refer to this tutorial.

Configuration

Configure your own Onedata Remote File Source

To configure a Onedata remote using the Bring Your Own Data (BYOD) approach, follow these steps:

  1. Log in to your Galaxy account.
  2. Go to the Manage Your Remote File Sources section of the Preferences menu.
  3. Click Create in the top right corner to create a new Remote File Source. Create a Remote File Source.
  4. Choose the Onedata Storage template. If there is no such template, the Galaxy server is not configured to support it. Consider contacting its admins.
  5. Fill in the information. If you wish to perform exports to this remote, check the Writable? toggle and make sure that your Onedata access token is write-enabled. Configure Onedata Remote File Source.
  6. Click Create and it’s done! You can now use the Onedata remote.

Configure a generic Onedata remote

This option may be viable if it’s not possible to configure your own Onedata Remote File Source, but requires that a generic remote is preconfigured on your Galaxy server.

Follow these steps:

  1. Log in to your Galaxy account.
  2. Go to the Manage information section of the Preferences menu.
  3. Find the section called “Your Onedata account” and fill in the information: Onedata remote source. . If there is no such section, the Galaxy server is not configured to support it. Consider contacting its admins.
  4. Done! You can now use the Onedata remote.

Importing (uploading) data

Uploading data to Galaxy from Onedata:

  1. Navigate to the Upload menu, use the Choose remote files action, and find the Onedata remote. There may be more than one if you configured it so: Choose remote source.
  2. At the top level of the file browser, you will see all the Onedata Spaces that are accessible with the access token that was put down in preferences. You can browse through them and select the files that should be imported to Galaxy. Browse Onedata remote.
  3. After selecting the files, confirm with Select.
  4. In the main upload menu, if you are happy with the queued files, click Start. Start upload.
  5. You may have to wait a bit until your uploads are processed.

Using the preconfigured remotes

You may also use Onedata-based remotes that were predefined by Galaxy admins for public use (if applicable on your Galaxy instance). Note the GTN training data on the screenshot.

Since the GTN training data comes with a public access token, you may also configure it as your own or generic Remote File Source. Use the following credentials:

  • Onezone domain: datahub.egi.eu
  • Access token: MDAxY2xvY2F00aW9uIGRhdGFodWIuZWdpLmV1CjAwNmJpZGVudGlmaWVyIDIvbm1kL3Vzci00yNmI4ZTZiMDlkNDdjNGFkN2E3NTU00YzgzOGE3MjgyY2NoNTNhNS9hY3QvMGJiZmY1NWU4NDRiMWJjZGEwNmFlODViM2JmYmRhNjRjaDU00YjYKMDAxNmNpZCBkYXRhLnJlYWRvbmx5CjAwNDljaWQgZGF00YS5wYXRoID00gTHpaa1pUTTROMkl4WmpjMllXVmpOMlU00WWpreU5XWmtNV00ZpT1RKbU1ETXlZMmhoWTJReAowMDJmc2lnbmF00dXJlIIQvnXp01Oey02LnaNwEkFJAyArzhHN8SlXSYFsBbSkqdqCg

This token is read-only, so make sure to mark the remote as not writable.

Troubleshooting

If you experience any problems, take a look at the troubleshooting guide.

Related topics

The Onedata Remote file source can also be used for data export — see the tutorial.