Skip to content

Latest commit

 

History

History
108 lines (70 loc) · 5.73 KB

precourse.md

File metadata and controls

108 lines (70 loc) · 5.73 KB
layout title
default
Pre-course

Registration on SciLifeLab Serve


In order to be able to access the lab notebooks for this course you need to have access to SciLifeLab Serve.

Please register with your university email address. In the registration form there is a field called “Do you require support?”, in here please write that you are registering to take part in the course OMICSINT_H24. Do not forget to also confirm your e-mail address by clicking on a link in the activation email. This needs to be done before Friday October 11 so that the SciLifeLab Serve admins can set up your account in the way that is required by the course.

For lunching practicals please follow the instructions [here](./session_intro/Instructions for course OMICSINT_H24.pdf).

Preparation for the tutorial


This workshop will comprise both lectures and hands-on exercises. While you will be able to follow all exercises from the html files, we recommend that you prepare by

  1. Familiarizing yourself with basic R and Python
  2. Installing the containers.

If you are interested you can go through the additional reading materials.

Programming with R and Python {#programming-with-r-and-python}


The course will be taught using both R and Python depending on the tools available. While you will be able to follow all lectures and exercises conceptually, it is helpful if you are familiar with basic usage of both programming languages:

You should also be familiar with basic command line input (mkdir, cd, ls, cp, mv).

Docker instructions {#docker-instructions}


We have currently ran different tests and evaluations to make sure SciLifeLab Serve is roboust and functional during the course time. However, as a back up plan for running the notebooks in case that SciLifeLab Serve service was lagging, we have prepared docker images for different labs with all the necessary software installed. You can follow the instructions below to install the docker and run the notebooks locally.

Pull docker images

At this point you need to create the two containers for all Rstudio or Jupyter notebooks. In a directory containing the unzip folder workshop_omics_integration/, create the containers by either:

**> Download image from Dockerhub**

Select the approprtiate lab from dockerhub repo, pull and run the images.

########### For example for GSA and UMAP labs ###########
# cd to your desired directory

docker pull rasoolsnbis/omicsint_h24:session_gsa_amd_v.h24.a1ae0fc

docker pull rasoolsnbis/omicsint_h24:session_ml_umap_data_integration_amd_v.h24.6d635ce

# for Jupyter lab use the following command
docker run --rm --platform=linux/amd64 -d -p 8888:8888/tcp rasoolsnbis/omicsint_h24:session_ml_umap_data_integration_amd_v.h24.6d635ce

# for Rstudio lab use the following command
docker run --rm --platform=linux/amd64 -d -p 8787:8787/tcp rasoolsnbis/omicsint_h24:session_gsa_amd_v.h24.a1ae0fc
Mounting a Local Folder to a Docker Container

To mount a local folder to a Docker container when running it, use the -v (or --volume) option in the docker run command. The syntax is:

For example, if you want to mount a local folder, such as /home/user/my_data, to a directory inside the container, say /app/data, the docker run command would look like this:

docker run --rm --platform=linux/amd64 -d -p 8888:8888/tcp \
  -v /home/user/my_data:/app/data \
  rasoolsnbis/omicsint_h24:session_ml_umap_data_integration_amd_v.h24.6d635ce

In this example:

/home/user/my_data: The local folder on your host machine. /app/data: The directory inside the Docker container where the local folder will be mounted. Any files in the local folder will be accessible in the specified directory inside the container, and any changes made inside the container will be reflected in your local folder.

Launch RStudio or Jupyter

Ensure you have followed all the instructions above and that your containers are running. If you have followed the instructions, you can simply access either RStudio or Jupyter from your browser with:

  • localhost:8888 to launch jupyter
  • localhost:8787 to launch rstudio

If you want to verify that your containers are running use docker ps.

Stop the containers

To stop the containers write docker stop [container name].

Back to Homepage