HTC cluster

This cluster is designed to run high throughput computing jobs efficiently.

The cluster can be accessed by logging into with your PittID.

$ ssh

If access is required from Pitt Wireless or off-campus refer to our documentation on VPN access

HTC cluster is designed to support bioinformatics and health science research. To check whether you can use the cluster, use sacctmgr list user PittID

[fangping@login0a example]$ sacctmgr list user fangping
      User   Def Acct     Admin 
---------- ---------- --------- 
  fangping        sam      None 

If you do not see your ID listed, you are not granted usage of this cluster. If you believe that you should grant access, please submit a ticket.

Node configuration

  • There are 20 compute nodes in total with the following configuration
HTC compute nodes
CPU E5-2660 v3 (Haswell)
Speed 2.40GHz
Cores 16
Memory 256 GB 2133 MHz
Disk 256 GB SSD
InfiniBand 56 Gb/s FDR
  • There are two login nodes that can be used for compilation.
HTC login nodes
CPU E5-2620 v3 (Haswell)
Speed 2.40GHz
Cores 12 (24 hyperthreads)
Memory 64 GB 1867 MHz
InfiniBand 56 Gb/s FDR

Operating System and Kernel

For performance reasons the following configuration has been chosen for compute nodes and login nodes.

OS Kernel
RedHat Enterprise 6.6 2.6.32-358


All nodes in the HTC mount the following file severs.

  • It is important to note the $HOME directories are shared with other clusters and configuration files may not be compatible. Please check through your .bashrc, .bash_profile and all other dotfiles if you encounter problems.
Filesystem Mount
ihome /ihome
MobyDisk /mnt/mobydisk
Home 0 /home
Home 1 /home1
Home 2 /home2
Gscratch2 /gscratch2
Scratch (compute only) /scratch


GNU compilers are available in your path when you login. Newer GNU compilers are available as module environments.

Compiler Version executable name AVX2 support
GNU C 5.2.0* gcc Yes
GNU C++ 5.2.0* g++ Yes
GNU Fortran 5.2.0* gfortran Yes
---- ---- ---- ----
GNU C 4.4.7 gcc No
GNU C++ 4.4.7 g++ No
GNU Fortran 4.4.7 gfortran No

See the man pages man <executable> for more information about flags.

  • GCC 5.2.0 is available through the Lmod Application Environment. See below.
  • Currently, HTC cluster does not support distributed parallel MPI jobs. Only shared memory parallel jobs are supported.

Instruction sets

The Haswell CPUs support AVX2 instructions. The GCC 5.2.0 compiler support AVX2 with the -march=core-avx2 flag. You may also need binutils 2.25 to utilize these instructions and to ensure that your executable and libraries are optimized. The login nodes have the same architecture as the compute nodes.

Application environment

Lmod will be used by cluster administrators to provide optimized builds of commonly used software. Applications be available to users through the Lmod modular environment commands. There are no default modules loaded when you log in.

Installed packages

Use the command module avail to list all installed applications. The architecture for the HTC Cluster is called haswell, which means that codes have been compiled to utilize the AVX2 instruction set as best as possible.

[fangping@login0a ~]$ module avail
--------------------------------- /ihome/sam/apps/modulefiles/Linux ----------------------------------
   CAP-miRSeq/2015-2                breseq/0.27.0
   CAP3/cap3                        busco/1.1b1
   CREST/1.0                        bwa/0.6.2
   EDirect/6.40                     bwa/0.7.12-gcc5.2.0                   (D)
   EPACTS/3.2.6                     circos/0.68
   FastQC/0.11.4                    clcassemblycell/5.0.3
   FastQC/0.11.5             (D)    cnvkit/0.8.4
   GATK/3.4-46                      compiler/gcc/5.2.0
   GATK/3.6-6-ngs.1.3.0      (D)    compiler/java/1.6.0_45-oracle
   GeneTorrent/3.8.7                compiler/java/1.7.0_79-oracle
   HISAT/0.1.6b                     compiler/java/1.8.0_65-oracle         (D)
   HISAT2/2.0.3-beta                compiler/perl/5.22.0
   HISAT2/2.0.5                     compiler/python/2.7.10-Anaconda-2.3.0 (D)
   HISAT2/2.0.5-64-ngs.1.3.0 (D)    compiler/python/3.4.3-Anaconda-2.3.0
   HMMER/3.1b2-gcc5.2.0             cufflinks/2.2.1
   HTSeq/0.6.1p1                    cutadapt/1.8.3
   IGV/2.3.65                       cutadapt/1.12                         (D)
   MACS/              deeptools/2.2.2
   Meerkat/0.189                    detonate/1.10
   MutSig/1.4                       diamond/0.7.9
   PeakSeq/1.31                     emboss/6.5.7-gcc5.2.0
   PeakSplitter/1.0                 fasttree/2.1.8
   PetaSuite/1.0.4                  fusioncatcher/0.99.7b
   R/3.2.2-gcc5.2.0          (D)    genomics/phoenix
   R/3.3.1-gcc5.2.0                 gmap_gsnap/2015-09-29-gcc5.2.0
   RAPSearch2/2.24                  gnuplot/5.0.4
   RSEM/1.2.23                      gsl/2.2
   RSEM/1.3.0                (D)    hifive/1.2.2
   RStudio/0.98                     homer/4.7.2
   RTG/3.5.2                        jags/4.2.0
   SNAP/1.0beta.18-gcc5.2.0         joe/4.2
   SNVMix2/0.11.8-r5                kallisto/0.43.0
   SNVer/0.5.3                      magic-blast/1.2.0
   SOAPindel/               merlin/1.1.2
   SRAToolkit/2.8.0                 mira/4.0.2
   SRAToolkit/2.8.2          (D)    miso/0.5.3
   STAR/2.4.2a                      mutect/1.1.4
   STAR/2.5.2a                      paml/4.8
   STAR/2.5.2b               (D)    picard-tools/1.140
   SVDetect/0.8b                    plink/1.90b3x
   StringTie/1.3.1c                 plink/1.90-beta-160315                (D)
   StringTie/1.3.2c          (D)    primer3/2.3.7
   TransDecoder/2.0.1               prinseq/0.20.4
   TrimGalore/0.4.2                 rna-seqc/1.1.8
   Trimmomatic/0.33                 rnaseqmut/0.7
   Trinotate/2.0.2                  sailfish/0.7.6
   VarDictJava/1.4.5                sailfish/0.10.0                       (D)
   VarDictJava/1.4.10        (D)    salmon/0.6.0
   VarScan/2.4.2                    samtools/0.1.19-gcc5.2.0
   XHMM/2016-01-04                  samtools/1.1-gcc5.2.0
   _runtime/gcc-5.2.0               samtools/1.2-gcc5.2.0
   admixmap/3.8.3103                samtools/1.3.1-gcc5.2.0               (D)
   ancestrymap/2.0                  seqtk/1.2-r94
   annovar/2015Jun17                snptest/2.5.2
   bamtools/2.4.0                   solar/8.1.4
   bcbio-nextgen/1.0.2              spark/1.6.1
   bcftools/1.2-gcc5.2.0            strelka/4.10.2
   bedops/2.4.14                    stubl/0.0.9
   bedtools/2.25.0-gcc5.2.0         subread/1.5.0-p2
   binutils/2.25-gcc5.2.0           tensorflow/1.0.0-rc1
   bismark/0.14.5                   tophat/2.1.0
   blast+/2.2.26                    trinity/2.1.1
   blast+/2.2.31             (D)    ucsc/kentUtils/v331
   blast+/2.6.0                     unceqr/0.2
   boost/1.59.0-gcc5.2.0            vcftools/0.1.14-gcc5.2.0
   bowtie/1.1.2-gcc5.2.0            velvet/1.2.10-gcc5.2.0
   bowtie2/2.2.6-gcc5.2.0           zlib/1.2.8-gcc5.2.0
   bowtie2/2.3.0             (D)

Module environment files have been created for each of these packages and can be easily loaded into your shell with module load <packagename>.

In the example below I have loaded the HISAT package into my environment. The executables, such as hisat2, hisat2-build is now in my PATH.

[fangping@login0a ~]$ module load HISAT2/2.0.5
[fangping@login0a ~]$ which hisat2
[fangping@login0a ~]$ which hisat2-build

You can check which modules are “loaded” in your environment by using the command module list

[fangping@login0a ~]$ module list
Currently Loaded Modules:
  1) HISAT2/2.0.5

To unload or remove a module, just use the unload option with the module command, but you have to specify the complete name of the environment module:

[fangping@login0a ~]$ module unload HISAT2/2.0.5
[fangping@login0a ~]$ module list
No modules loaded

Alternatively, you can unload all loaded environment modules using module purge.

  • Several reference genome data are available at /mnt/mobydisk/pan/genomics/refs

Slurm Workload Manager

The HTC cluster uses Slurm for batch job queuing. 16 compute nodes belong to the htc partition and it is the default partition. The sinfo command provides an overview of the state of the nodes within the cluster.

[fangping@login0a ~]$ sinfo
htc*         up 6-00:00:00      4    mix n[410,413,417,427]
htc*         up 6-00:00:00     16  alloc n[409,411-412,414-416,418-426,428]

Nodes in the alloc state mean that a job is running. The asterisk next to the htc partition means that it is the default partition for all jobs.

squeue shows the list of running and queued jobs.

The most common states for jobs in squeue are described below. See man squeue for more details.

Abbreviation State Description
CA CANCELLED Job was explicitly cancelled by the user or system administrator. The job may or may not have been initiated.
CD COMPLETED Job has terminated all processes on all nodes.
CG COMPLETING Job is in the process of completing. Some processes on some nodes may still be active.
F FAILED Job terminated with non-zero exit code or other failure condition.
PD PENDING Job is awaiting resource allocation.
R RUNNING Job currently has an allocation.
TO TIMEOUT Job terminated upon reaching its time limit.

See man squeue for a complete description the possible REASONS for pending jobs.

To see when all jobs are expected to start run squeue --start.

The scontrol output shows detailed job output.

scontrol show job <jobid>
  • Note: not all jobs have a definite start time.

Slurm jobs

The three most important commands in Slurm are sbatch, srun and scancel. sbatch is used to submit a job script to the queue like the one below, called example.sbatch srun is used to run parallel jobs on compute nodes. Jobs can be canceled with scancel.

#SBATCH -N 1 # Ensure that all cores are on one machine
#SBATCH -t 0-01:00 # Runtime in D-HH:MM
#SBATCH --cpus-per-task=4 # Request that ncpus be allocated per process.
#SBATCH --mem=10g # Memory pool for all cores (see also --mem-per-cpu)
# This job requires 4 CPUs (4 CPUs per task). Allocate 4 CPUs from 1 node in the default partition.
# Change to the directory that the script was launched from. This is the default for SLURM.
module load HISAT2/2.0.5
hisat2-build ./reference/22_20-21M.fa 22_20-21M_hisat
hisat2 -p $SLURM_CPUS_PER_TASK -x 22_20-21M_hisat -U ./reads/reads_1.fq -S eg1.sam
hisat2 -p $SLURM_CPUS_PER_TASK -x 22_20-21M_hisat -1 ./reads/reads_1.fq -2 ./reads/reads_2.fq -S eg2.sam
  • NOTE: requests for walltime extensions will not be granted

This is an example job script to run hisat examples. To run this script, copy the hisat example folder as cp -r /ihome/sam/apps/HISAT/hisat-0.1.6-beta/example .; cd example, and generate text file named example.sbatch with the contents like the one above. This job is submitted with the command sbatch example.sbatch By default the standard out is redirected to slurm-<jobid>.out.

[fangping@login0a example]$ sbatch example.sbatch
Submitted batch job 389675
[fangping@login0a example]$ head slurm-389675.out
  Output files: "22_20-21M_hisat.*.ht2"
  Line rate: 6 (line is 64 bytes)
  Lines per side: 1 (side is 64 bytes)
  Offset rate: 4 (one in 16)
  FTable chars: 10
  Strings: unpacked
  Local offset rate: 3 (one in 8)
  Local fTable chars: 6
  Local sequence length: 57344
  • Note: By default the working directory of your job is the directory from which the batch script was submitted. See below for more information about job environments.

The sbatch arguments here are the minimal subset required to accurately specify a job on the htc cluster. Please refer to man sbatch for more options.

sbatch argument Description
-N --nodes Maximum number of nodes to be used by each Job Step.
--tasks-per-node Specify the number of tasks to be launched per node..
--cpus-per-task Advise the SLURM controller that ensuing job steps will require ncpus number of processors per task.
-e --error File to redirect standard error.
-J --job-name The job name.
-t --time Define the total time required for the job
The format is days-hh:mm:ss.
--qos Declare the Quality of Service to be used.
The default is normal.
--partition Select the partition to submit the job to.
The only and default partition is htc.

The above arguments can be provided in a batch script by preceding them with #SBATCH. Note that the shebang (#!) line must be present. The shebang line can call any shell or scripting language available on the cluster. For example, #!/bin/bash, #!/bin/tcsh, #!/bin/env python or #!/bin/env perl.

srun also takes the --nodes, --tasks-per-node and --cpus-per-task arguments to allow each job step to change the utilized resources but they cannot exceed those given to sbatch.

Slurm is very explicit in how one requests cores and nodes. While extremely powerful, the three flags, --nodes, --ntasks, and --cpus-per-task can be a bit confusing at first.

--ntasks vs --cpus-per-task

The term “task” in this context can be thought of as a “process”. Therefore, a multi-process program (e.g. MPI) is comprised of multiple tasks. In Slurm, tasks are requested with the --ntasks flag. A multi-threaded program is comprised of a single task, which can in turn use multiple CPUs. CPUs, for the multithreaded programs, are requested with the --cpus-per-task flag. Individual tasks cannot be split across multiple compute nodes, so requesting a number of CPUs with --cpus-per-task flag will always result in all your CPUs allocated on the same compute node.

Example batch scripts and NGS data analysis pipelines

Scripts to perform RNASeq data analysis using HISAT2 + Stringtie are available under /ihome/sam/fangping/example/RNASeq_HISAT2_Stringtie. You can follow the readme file to go through the steps.

Examples of NGS data analysis pipelines are available at NGS Data Analysis. If you need personalized consultation for NGS data analysis workflow and selection of better pipelines, please contact me (

PBS to Slurm commands

PBS Torque and SLURM scripts are two frameworks for specifying the resource requirements and settings for the job you want to run. Frank used PBS Torque for specifying the resource requirement. For the most part, there are equivalent settings in each script. The following table lists examples of equivalent options for PBS and SLURM job scripts.

Command PBS/Torque Slurm
Job submission qsub -q <queue> -l nodes=1:ppn=16 -l mem=64g <job script> sbatch -p <queue> -N 1 -c 16 --mem=64g <job script>
Job submission qsub <job script> sbatch <job script>
Node count -l nodes=<count> -N <min[-max]>
Cores per node -l ppn=<count> -c <count>
Memory size -l mem=16384 --mem=16g
Wall clock limit -l walltime=<hh:mm:ss> -t <days-hh:mm:ss>
Job name -N <name> --job-name=<name>

A complete comparison of PBS Torque and SLURM script commands is available here.

Interactive jobs

To submit an interactive job, you should initiate with the srun command instead of sbatch. This command:

srun -n1 -t02:00:00 --pty bash

will start an interactive job. When the interactive job starts, you will notice that you are no longer on a login node, but rather one of the compute nodes.

[fangping@login0a ~]$ srun -n1 -t02:00:00 --pty bash
[fangping@n409 ~]$

This will give you 1 core for 2 hours.

Interactive jobs with x11 forwarding

If you would like to run application that have a GUI interface and for those cases X11 is required, you must pass an authenticated X11 session for the login node to your interactive session on a compute node. You can follow the following steps:

Login from Linux or a Mac terminal:

ssh -X

Then initiate an interactive session with --x11 options.

srun -n1 -t02:00:00 --x11=first --pty bash

This will initiate an X11 tunnel to the first node on your list. –-x11 has additional options of batch, first, last, and all.

Once in your interactive session you can launch software that has a GUI from the command line. For example, you can run rstudio as,

[fangping@login0a ~]$ srun -n1 -t02:00:00 --x11=first --pty bash
[fangping@n409 ~]$ module load RStudio/0.98
[fangping@n409 ~]$ module load R/3.2.2-gcc5.2.0
[fangping@n409 ~]$ rstudio

Quality of Service

All jobs submitted to Slurm must be assigned a Quality of Service (QoS). QoS levels define resource limitations. The default QoS is normal.

Quality of Service Max Walltime Priority factor
short 12:00:00 1.0
normal 3-00:00:00 0.75
long 6-00:00:00 0.5
  • Walltime is specified in days-hh:mm:ss

If your job does not meet these requirements it will be not be accepted.

Job priorities

Jobs on the htc cluster are executed in order of priority. The priority function has four components Age, FairShare, QoS and JobSize. Each component has a value between 0 and 1 and each are weighted separately in the total job priority. Only the Age factor increases as the job waits.

  • NOTE: The priority weights are intended to favor jobs that use more nodes for shorter wall times.
Priority factor Description Weight
Age Total time queued.
Factor reaches 1 at 14 days.
QoS Priority factor from QoS levels above. 2000
JobSize Factor approaches 1 as more nodes are requested 4000
FairShare FairShare factor described below 2000
  • The maximum priority value is 10000 for any job.


Even though jobs are expected to run in order of decreasing priority, backfill allows jobs with lower priority to fit in the gaps. A job will be allowed to run through backfill if it's execution does not delay the start of higher priority jobs. To use backfill effectively users are encouraged to submit jobs with as short a walltime as possible.

Fairshare policies

FairShare has been enabled which adjusts priorities for jobs based on historical usage of the cluster. The FairShare priority factor is explained on the Slurm website.

To see the current FairShare priority factor run sshare. Several options are available, please refer to man sshare for more details.

The FairShare factors for all users is listed with sshare -a.

On the HTC cluster all users are given equal shares. We may change this policy based on the usage of HTC clusters.

Local Scratch directory

Each node in the HTC Cluster has a single scratch disk for temporary data generated by the job. Local scratch directories are created on each node in the following location at the start of job or allocation.


The $LOCAL environment variable is then set in the job's environment to the above scratch directory.

  • The $LOCAL directories are removed from each node at the completion of the job

To copy files to the $LOCAL scratch disk on the master compute node just use cp or rsync. Remember, the initial working directory for the job is the directory from which the job was submitted. To allow srun to run the job from the $LOCAL scratch directory add --chdir.

Visualization Applications

iPython Notebook

Users must first connect to and submit a special interactive batch job to start iPython Notebook:

1. Start an iPython Notebook on a computation node

We have provided a ipython notebook job script (/ihome/sam/apps/ipythonNotebook/notebook.job) that requests one core in the HTC computation node for eight hours.

phantom:~ fangping$ ssh's password:
[fangping@login0b ~]$ /ihome/sam/apps/ipythonNotebook/notebook.job
ipython notebook will be run on node n409 using port 31806
To connect to ipython notebook: open a new terminal window and run the following command
ssh -L 9999:localhost:49591
Keep both terminal windows running, open web browser and input http://localhost:9999/ in the address bar
To shutdown ipython notebook, ctrl + C in the terminal window running ipython notebook

2. Create an SSH Tunnel to

We require users to create an SSH tunnel from the local system to the to assure that the connection is secure. On a Unix or Linux system, copy the command from the output of step 1.

phantom:~ fangping$ ssh -L 9999:localhost:xxxxx

On Windows systems find the menu in the Windows SSH client where tunnels can be specified, and enter the local and remote ports as required, then ssh to

3. Use ipython notebook

Open a web browser (e.g., firefox) on your computer, and change address bar to localhost:9999.

To create new notebook, click New -> Python 2 on the right corner. To test ipython notebook, copy the following commands, paste into notebook input and hit shift+return

%matplotlib notebook
import matplotlib.pylab as plt
import numpy as np
x = np.linspace(0,10)
#look at the current work dir
#change to the dir you want
%cd /mnt/mobydisk/groupshares/sam

To shutdown ipython notebook, ctrl + C in the terminal window running ipython notebook.