-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhome_precourse.qmd
More file actions
96 lines (53 loc) · 6.39 KB
/
Copy pathhome_precourse.qmd
File metadata and controls
96 lines (53 loc) · 6.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
title: "Precourse"
subtitle: "Preparation Instructions"
date: ""
toc: false
sidebar: false
format: html
---
Welcome to the course! There are few things to do **before** the course starts. Please read carefully and follow the instructions so we can have a good start to the course. Contact us in case anything is unclear.
## HPC resources and creating an account
During the course we will be using Uppsala University’s high performance computer cluster ([UPPMAX](https://docs.uppmax.uu.se/cluster_guides/uppmax_cluster/)) as well as run scripts locally on laptops using `R` and `RStudio`.
### Register at NAISS
A NAISS account is needed to use UPPMAX resources. If you do not already have one, please register for an account at [NAISS](https://supr.naiss.se/person/register/) and then you must accept the user [agreement](https://supr.naiss.se/person/user_agreement/naiss/) either online or in paper form. For those within Swedish academia, it is recommended to register with your SWAMID. If you don’t have a SWAMID connected account, you will have to send in your signed user agreement in paper form together with a copy of your passport. Note that this manual process can take a week or more. You can follow this detailed [instruction](https://docs.uppmax.uu.se/getting_started/supr_register/). Once you have a NAISS account, please [request](https://docs.uppmax.uu.se/getting_started/join_existing_project/) membership to the project *UPPMAX 2026/X-XXX* --- check your email for the correct project number.
### Apply for an UPPMAX user account
After you have been added to a NAISS project, you can now apply for a user account in UPPMAX if you do not have an existing account yet. This will be the account you use to log in to UPPMAX so it is not the same as your NAISS account. Note that it might take up to 2 working days for your account to be created. You will then receive 2 emails with information on how to login to UPPMAX. To activate your user account, click [here]( https://supr.naiss.se/account/).
## Working with the compute resources from UPPMAX
There are three ways to connect to Pelle:
- An ssh connection from a terminal
- A graphical remote desktop using a Thinlinc client on your laptop
- A remote desktop environment via a web browser
### SSH connection using a terminal
A straightforward way to connect to Pelle is through a terminal using ssh connection.
- For Linux users, use Terminal (included by default).
- For Mac users, use Terminal (included by default). You need to also install [XQuartz](https://www.xquartz.org/) to enable X11 forwarding from a terminal, i.e., to run graphical applications on a remote server while displaying them on your laptop.
- For Windows system, we recommend using [MobaXterm](http://mobaxterm.mobatek.net/). Please install the program and not use the portable version. MobaXterm also has a built-in X11 and an integrated SFTP file browser to transfer data between the remote cluster and your computer.
Other SSH clients and X-servers for MacOS and Windows are described [here](https://docs.uppmax.uu.se/software/ssh_client/#ssh-client).
### GUI desktop using ThinLinc locally
You can also connect to Pelle via a graphical remote desktop using a local ThinLinc client on your laptop. Thinlinc is useful if you need to view images or documents in GUI programs without having to first download the image/document to your own computer first. Since it is using graphics, it will require you to have an internet connection that is good and stable. Please install [ThinLinc](https://www.cendio.com/thinlinc/download/) to be able to access UPPMAX in this manner.
### GUI desktop using ThinLinc in a web browser
Lastly, you can connect to Pelle using a remote desktop environment via a web browser at [https://pelle-gui.uppmax.uu.se](https://pelle-gui.uppmax.uu.se/). This is the easiest option as no software installation is needed but it will give you the slowest connection. It will require you to have an internet connection that is good and stable. For this option, you have to set up your UPPMAX two factor authorization (2FA). See [how to get an UPPMAX 2FA](https://docs.uppmax.uu.se/getting_started/get_uppmax_2fa/).
### Additional instructions/resources
This [tutorial](https://docs.uppmax.uu.se/getting_started/login_pelle/) will guide you to connect to Pelle using the three methods as described above. For Windows users with MobaXterm, please follow this [instruction](https://docs.uppmax.uu.se/software/ssh_client/#using-ssh-with-different-terminals-that-allow-for-graphics).
Some useful tutorials:
- [Troubleshoot your MobaXterm X11 connection to UPPMAX](https://hackmd.io/@pmitev/UPPMAX-MobaXterm-X11)
- [File transfer to/from Pelle](https://docs.uppmax.uu.se/cluster_guides/transfer_pelle/)
- [Change your UPPMAX password](https://docs.uppmax.uu.se/getting_started/change_reset_uppmax_password/)
- [How to get an UPPMAX 2FA](https://docs.uppmax.uu.se/getting_started/get_uppmax_2fa/)
## Check configuration
After you complete setting-up and you receive a notification from NAISS that your account **has been added to the course allocation**.
1. Log in to [pelle.uppmax.uu.se](pelle.uppmax.uu.se)
2. Type id in the command line
3. Copy the output of the command and email back (to the course organisers at [edu.epigenomics@nbis.se](edu.epigenomics@nbis.se))
## Working from your local machine
To be able to work from your local machine, please make sure you have the following installed:
- `R-4.6.1` and `RStudio`. If you have other versions of `R` installed, you can used [rig](https://github.com/r-lib/rig) to version control `R` installation and start `RStudio` with different versions of `R`. We will be using `R-4.6.1` during the workshop.
- The [Integrative Genomics Viewer](https://software.broadinstitute.org/software/igv/).
### Cloning the repo and installing the needed `R` packages
More instructions will follow here on how to clone the GitHub repo of the workshop and install all needed R packages using `renv`.
## Additional (optional) reading material to help you prepare
- [Unix](http://www.ee.surrey.ac.uk/Teaching/Unix/): especially the first three chapters.
- DataCamp free [Introduction to R](https://www.datacamp.com/blog/all-about-r).
- [A short introduction to R](https://cran.r-project.org/doc/contrib/Torfs+Brauer-Short-R-Intro.pdf). A very short introduction to using `R`.
- How to install and use `RStudio` from [Data Camp RStudio Tutorial](https://www.datacamp.com/tutorial/r-studio-tutorial).