Skip to content

Link the data

A datalink is a reference, in madbot, to a file that stays where it is stored. To create datalinks, madbot needs a connection to the source that hosts the files: the workshop file server, or Zenodo if you follow the track on your own.

Follow the tab that matches the way you follow the track.

  1. Connect to the file server, with the address, username and password the trainer gave you.

    1. On your node page, open the Datalinks tab, then click New datalink. The Add a datalink window opens on two steps: Source, then Data.
    2. The Choose a source step lists at the top, under Your sources, the connections already created in the workspace: the first time, there are none. Further down, under Connect a new source, click SSHFS, the plugin that reads files from a server reachable over SSH.
    3. Fill in the form with what the trainer gave you:
      • Connection name (optional) can stay empty: the connection then takes the name of the service;
      • under Shared parameters, the server address in Host;
      • under Private parameters, your username in Username, then your password in Password, leaving Credential on Password.
    4. Click Connect. madbot connects to the server and moves on to the Data step.

    The SSHFS connection form: the Host field under Shared parameters, then Username, Credential and Password under Private parameters

  2. Create the datalinks to your dataset. The trainer told you which folder is yours; your files are in its levures or riviere subfolder, depending on the dataset you chose.

    1. The Data step shows the server from its root, Filesystem root. Go down to the folder that holds your data: click a folder to open it. To find it faster in a long list, type its name in Filter this folder. The path you followed is shown at the top; click one of its parts to go back up.
    2. Click a file’s basket icon to add it to the selection, or Select the data shown to add every file in the folder. Only files are added, not folders. The chosen files are shown on the right, under Selection; a file’s cross removes it.
    3. Click Link N data, where N is the number of chosen files. madbot creates one datalink per file, and shows them in the Datalinks tab of the node.

    The Data step: the levures folder open, its four FASTQ files in the selection, and the Link 4 data button

  3. Check that nothing was copied.

    In the Datalinks tab, hover over a datalink, then over the ⓘ icon that appears next to its name. The tooltip that opens shows:

    • External ID: the file path on the server, where it stayed;
    • the connection through which madbot reads it, and Accessible as long as madbot can reach it;
    • its size and dates, which madbot reads on the server.

    madbot only keeps a reference to the file and these few details. The file itself has not left the server, and no copy of it was made.

    The tooltip of a datalink: its size, its External ID giving the file path on the server, its dates, the connection and the Accessible mention

  • The connection fails: check the server address in Host, then your username and password. If the error persists, raise your hand: your account may not have access to the server yet.
  • You cannot find your folder: browsing starts from the root of the server. Go back up by clicking Filesystem root/, at the top, then follow the path given by the trainer, folder by folder.
  • A file cannot be added to the selection: hover over it. Already in this node means that it is already linked to this node.
  • You linked one file too many: in the Datalinks tab, hover over its row, click ⋮, then Delete. Only the datalink disappears: the file stays on the server.