Skip to content

Latest commit

 

History

History
81 lines (57 loc) · 4.18 KB

links-to-lessons.md

File metadata and controls

81 lines (57 loc) · 4.18 KB

Introduction to Shell and Cluster computing (HMS-RC's O2 cluster)

Learning Objectives

  • Understand the necessity for, and use of, the command line interface (bash/shell).

Installations

Mac users: No installation requirements.
Windows users: GitBash

Notes

  • These materials focus on the use of local computational resources at Harvard, which are only accessible to Harvard affiliates
  • Non-Harvard folks can download the data and set up to work on their local clusters (with the help of local system administrators)

Instructions for Harvard researchers with access to HMS-RC's O2 cluster

To run through the code in the lessons below, you will need to be logged into O2 and working on a compute node (i.e. your command prompt should have the word compute in it).

  1. Log in using ssh ecommonsID@o2.hms.harvard.edu and enter your password.
  2. Once you are on the login node, use srun --pty -p interactive -t 0-2:30 --mem 1G /bin/bash to get on a compute node or as specified in the lesson.
  3. Proceed only once your command prompt has the word compute in it.
  4. If you log out between lessons (using the exit command twice), please follow points 1. and 2. above to log back in and get on a compute node when you restart with the self learning.

Lessons

Part I

  1. Introduction to Shell
  2. Wildcards and shortcuts in Shell
  3. Examining and creating files
  4. Searching and redirection
  5. Shell scripts and variables in Shell

Part II

  1. Loops and automation
  2. Permissions and Environment Variables

Part III

  1. Introduction to High-performance computing
  2. Introduction to the O2 cluster

Building on this workshop


Resources

Cheat sheets:

Online tutorials:

General help:

  • Google it! - if you don't know how to do something, try Googling it, other people have probably had the same question.
  • Learn by doing! There's no real other way to learn this than by trying it out.
    • Use vim on your laptop
    • Move around the directory structure on your laptop using the Terminal/Shell counts
    • Open folders and files using the command open
    • Automate something you don't really need to automate
  • Use man bash to get more information about bash (bourne-again shell)

These materials have been developed by members of the teaching team at the Harvard Chan Bioinformatics Core (HBC). These are open access materials distributed under the terms of the Creative Commons Attribution license (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.