Welcome to Cluster 6: Introduction to Jupyter & HPC
Jaz Sakr & Elnaz A.
July 8, 2024
The HPC
The goal for today is to
Make sure you are NOT connected Wifi as guest!
Please join Slack channel: UCI COSMOS Cluster 6 2023
UCINetIDs
Help us get to know you a little better
Please fill out this questionnaire!
https://docs.google.com/forms/d/e/1FAIpQLSfdbfaegFY4h9dUlhkZjC6PaRP5EW13uQcY7zy3uOWzIUzdNQ/viewform?usp=sf_link
Connect to the HPC by GUI or CUI
GUI (Graphical User Interface): is a digital interface in which a user interacts with graphical components such as icons, buttons, and menus.
CUI (Character User Interface): use of text commands, managed by a command-line interpreter, in order to communicate with a computer program.
VS
The HPC (High-performance computing)
HPC systems use supercomputers and computer clusters to solve advanced computation problems.
HPC resources:
Basic laptop resources:
Where the “data crunching” happens
YOU ARE HERE
Both interfaces can do the same thing on a computer
Same folder path
Same folder contents
Same folder
What is Jupyter?
How to access Jupyter:
How to access Jupyter:
Select your UCINetID to access your home directory
Interface opens on a web browser
Navigating JupyterHub
Navigating JupyterHub
On the Launcher tab, create a Python notebook
Contents of my home directory (yours may be different)
Navigating Jupyter notebooks
New Untitled.ipynb
Empty circle & “Idle” = no code is running
Filled circle & “Busy” = code is running
Code cell
Navigating Jupyter notebooks
Right click to rename, download, delete, etc.
Add new cell with +
Click inside cell to edit
Cells are numbered by the order in which they are run
In-progress cells have a star: [*]
Navigating Jupyter notebooks
Log out at the end of your session to not waste compute time ($!)
Navigating Jupyter notebooks
Logging on to HPC using a terminal
Mac:
Windows 10:
Secure shell (SSH)
Mac:
Windows 10:
✓
*You won’t be able to see your password when you type it! Ctrl+C to cancel and try again, or backspace and try again
General bioinformatics stuff
General bioinformatics stuff
Fun Fact!�YAML stands for yet another markup language or YAML ain’t markup language (a recursive acronym), which emphasizes that YAML is for data, not documents.
Basic Command Syntax
command_name [options] [required input]�
Basic Linux abbreviations
cosmos-2022
studentA
studentB
PUBLIC
README.md
ta-github
Basic Linux commands
cosmos2023
Basic Linux commands
Basic Linux commands
Clone Github repository
git clone https://github.com/mortazavilab/cosmos-cluster6.git
Useful links
Installing requirements for long-read processing
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
# when it says
Do you wish the installer to initialize Miniconda3
by running conda init? [yes|no]
source ~/.bashrc
conda install mamba -n base -c conda-forge
mamba init
source ~/.bashrc
1
2