Retrieving data from bio data repositories (Roihu)¶
In this tutorial you will learn
- How to retrieve data from various commonly used bio data repositories.
-
We will do these exercises in an interactive session launched using the sinteractive command:
-
Alternatively, open a compute node shell through the Roihu web interface.
-
To access the applications in part 2, we will need to load the
bio-appsmeta module:bio-appsonly makes the bio applications available, but each one still has to be loaded separately. -
Create a directory for yourself under the
/scratchdirectory of your project and move there:
Everyone in a project shares the same
/scratch directory, so it is a
good idea to use subdirectories for each user and task to avoid accidentally
deleting or overwriting others' files.
In normal usage it may be a good idea to use the
chmod command to alter file
access rights so that only you have write access to your own subfolder, but
please do not do this if you are using a CSC course project, as it will make
clean-up after the course harder.
You can find more information about this on the
Disk areas page in Docs CSC.
1. Downloading data with curl¶
Note
curl and wget are general tools to download data from a URL.
-
Download a dataset from the internet using
curland uncompress it. The dataset contains some Pythium genomes with related BWA indexes.
2. Downloading data with NCBI EDirect¶
-
Create directory
cellulose_synthaseand move to this new directory: -
Next we use the NCBI EDirect tool to retrieve some data:
-
Check how many proteins are found in the NCBI protein database for Pythium species (
countrow in the results): -
Check the number of proteins for cellulose synthase 1, cellulose synthase 2 and cellulose synthase 3 that are found for Pythium species.
-
For cellulose synthase 1 this can be done with:
-
Do the same for the other proteins.
-
Retrieve the cellulose synthase 3 sequences in FASTA format:
-
Which
esearchcommand tells you how many cellulose synthase 3 sequences there are in total in the NCBI protein database? Run it. -
Extra exercise for fast ones: Align the cellulose synthase 3 set with
mafft: -
Study the results:
3. Finishing up¶
- Close the interactive session when you are done by typing
exit.