plink2 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
plink2: command not found
or when using sudo you get the following error message
sudo: plink2: command not found
Solutions to plink2: command not found
How To Fix plink2: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu plink2 is provided by plink2 package.
plink2 is:
plink expects as input the data from SNP (single nucleotide polymorphism) chips of many individuals and their phenotypical description of a disease. It finds associations of single or pairs of DNA variations with a phenotype and can retrieve SNP annotation from an online source.
SNPs can evaluated individually or as pairs for their association with the disease phenotypes. The joint investigation of copy number variations is supported. A variety of statistical tests have been implemented.
plink2 is a comprehensive update of plink and plink1.9 with new algorithms and new methods, faster and less memory consumer than the first plink.
To fix this problem, we can install more using the command below.
sudo apt-get -y install plink2
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install plink2.
sudo apt -y install plink2
Or if you have aptitude installed you can use the following command.
sudo aptitude install plink2
Summary
In this tutorial we learn how to fix plink2 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.