Introduction
The purpose of this document is to outline the general steps that researchers in the Department of Bacteriology can follow to take advantage of high-throughput computing at UW-Madison. While such servers provide immense computing power, it has a steep learning curve before one can be able to run analyses on these servers, depending on the researcher’s prior knowledge. This document some of the general steps that I can walk you through, and the order in which different topics can be learned.
While this guide assumes CHTC’s remote server for running analyses, a lot of the information in this guide applies to how to run analyses on any server, for example, the bigger picture, having the right software on your laptop to facilitate your workflow, and a basic understanding of how to use the command-line terminal to interact with programs.
CHTC uses the HTcondor system, which is a workload management system for compute-intensive jobs, and some of the examples in this guide for submit and executable scripts are specific to it. Another popular workload management system is SLURM, which some other servers on-campus use. HTCondor was developed at UW-Madison, but it is used globally, so learning it is a useful and transferrable skill even if one day you move from UW-Madison.
Because this is a shared system, with folks from all over campus using it, it’s important to be aware of guideline for usage. As a user you should familiarize yourself with which analyses you want to run, which softwares do you want to install, and how you will run your jobs. I am happy to answer your questions regarding this so please ask me if you’re unsure!
Likewise, one major area of learning when transitionning from local computing to remote, is understanding how softwares are installed. In this guide, we’ll go over 3 ways: compiling using make, conda environments and docker containers. Many bioinformatics packages (over 10,000!) are available as conda environments, and containers are becoming more and more popular. Those will be the two most applicable ways for bioinformatics software.
In terms of how to run analyses, understanding how environments (conda) and containers (docker, singularity, apptainer) work is useful whether you’re hoping to run analyses on your laptop or any remote server because they allow for reproducibility.
Intended use
I hope the guide can serve as a written reference that can be used for researchers to “refresh” on how to do certain tasks associated with the computational life-cycle of a project, from project planning before even getting data, to post-publication plans. A guide must have a balance between being general enough that information is easy to find and applicable to most researchers. As a trade-off, it cannot go into a lot of detail regarding specific bugs, errors, troubleshooting techniques, and strategies. I hope the guide can be used in addition to 1-on-1 mentoring and teaching of how to do these tasks. This guide also only minimally goes into the scientific discourse and subject-matter expertise required to assess which actual bioinformatics analyses are appropriate to answer specific microbiological research questions.
General Overview
- Understanding the bigger picture:
- Your scientific research question
- Project planning and experimental design
- Expected data
- Planned Analyses
- Post-analyses plans
- Learning about your computing and storage options
- How do these things “abstract” things connect
- Getting set up with appropriate software to facilitate workflow
- Install suggested software on your laptop/computer:
- [for moving files]
- Cyberduck: https://cyberduck.io/ (Mac)
- Filezilla: https://filezilla-project.org/ (Windows)
- [for accessing services off-campus] Global VPN: https://it.wisc.edu/services/wiscvpn/
- [for accessing servers, text file editor] Visual Studio Code (optional) https://code.visualstudio.com/
- [simple text file editor]
- BBEdit: https://www.barebones.com/products/bbedit/ (Mac)
- Notepad++: https://notepad-plus-plus.org/ (windows)
- [for moving files]
- Create an account on CHTC: https://chtc.cs.wisc.edu/uw-research-computing/form.html
- Understand guidelines: https://chtc.cs.wisc.edu/uw-research-computing/user-expectations.html
- Install suggested software on your laptop/computer:
- Learning how to use the command line
-
- Recommended resources: https://swcarpentry.github.io/shell-novice/
- “CheatSheet” : https://upload.wikimedia.org/wikipedia/commons/7/79/Unix_command_cheatsheet.pdf
-
- Getting started with CHTC:
- Using ssh to connect: https://chtc.cs.wisc.edu/uw-research-computing/connecting
- The first time you connect it will ask you if you’re sure you want to connect
- You need your netID and Duo 2-factor authentication to login to CHTC. You also need VPN if you’re off campus.
- After having connected for the first time, you can then use FileZilla or Cyberduck to transfer files in the future.
- Using ssh to connect: https://chtc.cs.wisc.edu/uw-research-computing/connecting
- Learning how to move files between a computer, research drive, and CHTC
- Each Bacteriology Lab/PI has a 25TB:
- https://it.wisc.edu/services/researchdrive/
- How to manage ResearchDrive permissions (can only be done by PI): https://kb.wisc.edu/researchdata/page.php?id=96642
- A PI can give permissions to a single (or a few) folders from their ResearchDrive to a collaborator, by changing the Permissions in Globus. https://kb.wisc.edu/researchdata/internal/page.php?id=111699
- You can transfer files between a PI’s Research Drive and CHTC (/home or /staging) of your own account by following these instructions: https://chtc.cs.wisc.edu/uw-research-computing/transfer-data-researchdrive
- Between your laptop and CHTC:
- Using a File Transfer program like Cyberduck, FileZilla
- You can transfer files using the command line directly to chtc: https://chtc.cs.wisc.edu/uw-research-computing/transfer-files-computer
- Between folders within CHTC:
- mv copy command-line
- Between ResearchDrive and your Laptop:
- Finder > Go > Connect to Server (Mac):
- Type this in the box: smb://research.drive.wisc.edu/PI-netID (Mac)
- (On Windows)
- Finder > Go > Connect to Server (Mac):
- Each Bacteriology Lab/PI has a 25TB:
- Moving Large files between Research Drive and CHTC for large files using Globus
- How to connect the /staging folder on CHTC to your Globus service: https://chtc.cs.wisc.edu/uw-research-computing/globus
- https://it.wisc.edu/services/globus/
- Learning how to run a first job on CHTC
-
- The basics of a submit file and an sh file: https://chtc.cs.wisc.edu/uw-research-computing/helloworld
- https://chtc.cs.wisc.edu/uw-research-computing/htcondor-job-submission
-
- Useful Commands to track a job on CHTC:
- condor_submit <.sub>
- condor_submit -i <.sub>
- condor_hold <jobID>,
- condor_q –better-analyze <jobID>
- condor_ssh_to_job <jobID>
- The Interactive Mode (– i ) and how to use it for troubleshooting
- Learning about how to install software
- How to know which methodology to use
- Reading the scientific literature, the methods section of papers, benchmark software papers, Github wiki pages
- Subject-matter experts
- How to reading and understand software-specific installation instructions
- Conda environments:
- What is conda and how to use it https://anaconda.org/
- Using conda environments on CHTC: https://chtc.cs.wisc.edu/uw-research-computing/conda-installation
- General conda cheat sheet: https://docs.conda.io/projects/conda/en/4.6.0/_downloads/52a95608c49671267e40c689e0bc00ca/conda-cheatsheet.pdf
- The bioconda channel: https://bioconda.github.io/
- From “source”
- Using a .tar.gz file and compiling it ourselves
- Containers (Docker, Apptainer)
- Docker, apptainer, singularity – what are these things? What are the commonalities or the differences?
- How to know which methodology to use
-
-
- How to use Docker containers on CHTC:
- Testing them on CHTC: https://chtc.cs.wisc.edu/uw-research-computing/docker-test.html
- Running them: https://chtc.cs.wisc.edu/uw-research-computing/docker-jobs
- How to use Apptainer on CHTC: https://chtc.cs.wisc.edu/uw-research-computing/singularity-htc
- How to use Docker containers on CHTC:
-
13. Bioinformatics Specific Databases available:
-
- Common databases: /staging/ptran5/bacteriology_tran_data hosts the NCBI nr database (v 12/14/2023), the GTDB-tk r214 database, the CheckM database (v 1/13/2015). CHTC also hosts the AlphaFold databases.
- Docker for non-local databases
- /home vs /staging
14. Learning to manage data after an analysis is completed
-
-
- How to transfer data using the command line: https://chtc.cs.wisc.edu/uw-research-computing/connecting.html#transfer
- Move data outside of CHTC (e.g. to ResearchDrive, etc.)
- Keep copies of all essential files (e.g. software version numbers, log files, raw data, intermediate files, output files)
- FAIR data principles: https://www.nature.com/articles/sdata201618
- Popular Repositories in Microbiology:
- How to submit your data to NCBI (BioProject, BioSamples, Genbank, SRA): https://submit.ncbi.nlm.nih.gov/subs/bioproject/
- How to publish your code on GitHub (hosted by anyone) or GitLab (UW-Madison license).
-