How To Install plink2 on Ubuntu 22.04
Introduction
In this tutorial we learn how to install plink2
on Ubuntu 22.04.
What is plink2
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.
There are three methods to install plink2
on Ubuntu 22.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install plink2 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install plink2
using apt-get
by running the following command:
sudo apt-get -y install plink2
Install plink2 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install plink2
using apt
by running the following command:
sudo apt -y install plink2
Install plink2 Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install plink2
using aptitude
by running the following command:
sudo aptitude -y install plink2
How To Uninstall plink2 on Ubuntu 22.04
To uninstall only the plink2
package we can use the following command:
sudo apt-get remove plink2
Uninstall plink2 And Its Dependencies
To uninstall plink2
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove plink2
Remove plink2 Configurations and Data
To remove plink2
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge plink2
Remove plink2 configuration, data, and all of its dependencies
We can use the following command to remove plink2
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge plink2
References
Summary
In this tutorial we learn how to install plink2
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.