minimac4 command not found

In this troubleshooting guide we learn how to fix minimac4 command not found error message

Introduction

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

minimac4: command not found

or when using sudo you get the following error message

sudo: minimac4: command not found

Solutions to minimac4: command not found

How To Fix minimac4: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu minimac4 is provided by minimac4 package.

minimac4 is:

Minimac4 is a lower memory and more computationally efficient implementation of “minimac2/3”. It is an algorithm for genotypic imputation that works on phased genotypes (say from MaCH).

Minimac4 is designed to handle very large reference panels in a more computationally efficient way with no loss of accuracy. This algorithm analyzes only the unique sets of haplotypes in small genomic segments, thereby saving on time-complexity, computational memory but no loss in degree of accuracy.

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

sudo apt-get -y install minimac4

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

You can also use apt command to install minimac4.

sudo apt -y install minimac4

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

sudo aptitude install minimac4

Summary

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