Using Allas with bio data¶
In this tutorial you will learn
- How to utilize Allas for biological data
Before the actual exercise, open a view of the Allas service in your browser using the Roihu web interface.
- Go to https://www.roihu.csc.fi and log in with your account.
- Configure an Allas S3 connection using the Cloud storage configuration tool.
- You need to first authenticate by providing your CSC password.
- If you have several projects available, choose one that you want to use in this exercise.
- Once you've configured a connection, select
s3allas-project_<id>from the Files dropdown menu in the top navigation bar. Replace<id>with the number of the project you chose to use (e.g. 2001234). - During the exercise, you can use this web interface to get another view of the buckets and objects in Allas.
1. Log in to Roihu¶
-
Log in to Roihu (open a login node shell if using the web interface):
-
On Roihu, check your environment with the command:
-
Move to the
/scratchdirectory of your project: -
Create your own subdirectory named with your username:
-
Move to the directory:
2. Download data with wget¶
-
Next, download a dataset and uncompress it:
- The dataset contains some Pythium genomes with related BWA indexes
3. Using Allas¶
-
Open a connection to Allas:
-
If you have several Allas projects available, select the same project as earlier.
Upload case 1: rclone¶
-
Upload the data from Roihu to Allas with
rclone:Question
- How long did the data upload take?
- What was the transfer rate?
- How long would it take to transfer 100 GiB assuming the same speed?
-
Study what you have uploaded to Allas with the commands:
-
Check what this looks like in the Roihu web interface. Open a browser and go to https://www.roihu.csc.fi/
- In the Roihu web interface, go to the Files app and select
s3allas-project_<id>to list the buckets of your project (replace<id>as needed). - Locate your own
$USER-genomes-rcbucket and download one of the uploaded files to your local computer.
You can read more about moving files at Docs CSC:
Copying files using scp and
Moving data with rclone
Upload case 2: a-put¶
- Upload the pythium directory from Roihu to Allas using a-commands
-
Case 1: Store everything as a single object (replace
<project number>with your CSC project number, e.g. 2001234): -
Case 2: Each subdirectory (species) as a separate object (replace
<project number>with your CSC project number, e.g. 2001234): -
Case 3: Use a custom bucket name (replace
<project number>with your project number, e.g. 2001234): -
Can you see the difference between the three
a-putcommands above? -
Study the
<project number>-$USER-genomes-apbucket with the commands: -
Why do the two commands above list a different number of objects?
-
Try the command (replace
<project number>with your project number, e.g. 2001234): -
This command is actually the same as:
-
Finally, try the command:
-
Try opening the public link that
a-flipproduced with your browser.
4. Exit¶
-
The data in the
pythiumdirectory is now stored in many ways in Allas, so we can remove the data from Roihu and log out:
5. Downloading data from Allas to Roihu¶
-
Log in to Roihu and move to your personal directory in your project's
/scratch: -
On Roihu, check your projects with the command:
-
Set up the Allas connection:
-
Then run the commands (we will use the same bucket that was created earlier):
-
Next, download the data in different ways:
5.1. Download with rclone¶
-
Copy everything:
-
Copy a set of objects:
-
Copy just one object:
5.2. Download with a-get¶
-
Return to your
$USERdirectory under your project's/scratchon Roihu (Thepwdcommand should print/scratch/<project>/$USER): -
Make a new directory:
-
Create a directory
alland move there: -
List your default
scratchbucket (replace<project number>with your project number, e.g. 2001234): -
Look for the file
Pythium_vexans.ambin your Roihuscratchbucket: -
Download the full dataset with the command:
-
Check what you got:
-
Now, download just a single genome dataset: