hisat2-build command not found

In this troubleshooting guide we learn how to fix hisat2-build command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

hisat2-build: command not found

or when using sudo you get the following error message

sudo: hisat2-build: command not found

Solutions to hisat2-build: command not found

How To Fix hisat2-build: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu hisat2-build is provided by hisat2 package.

hisat2 is:

HISAT2 is a fast and sensitive alignment program for mapping next-generation sequencing reads (both DNA and RNA) to a population of human genomes (as well as against a single reference genome). Based on an extension of BWT for graphs a graph FM index (GFM) was designed and implementd. In addition to using one global GFM index that represents a population of human genomes, HISAT2 uses a large set of small GFM indexes that collectively cover the whole genome (each index representing a genomic region of 56 Kbp, with 55,000 indexes needed to cover the human population). These small indexes (called local indexes), combined with several alignment strategies, enable rapid and accurate alignment of sequencing reads. This new indexing scheme is called a Hierarchical Graph FM index (HGFM).

To fix this problem, we can install more using the command below.

sudo apt-get -y install hisat2

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install hisat2.

sudo apt -y install hisat2

Or if you have aptitude installed you can use the following command.

sudo aptitude install hisat2

Summary

In this tutorial we learn how to fix hisat2-build command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.