How To Install plink1.9 on Ubuntu 22.04

In this tutorial we learn how to install plink1.9 on Ubuntu 22.04. plink1.9 is whole-genome association analysis toolset

Introduction

In this tutorial we learn how to install plink1.9 on Ubuntu 22.04.

What is plink1.9

plink1.9 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.

plink1.9 is a comprehensive update of plink with new algorithms and new methods, faster and less memory consumer than the first plink.

Please note: The executable was renamed to plink1.9 because of a name clash. Please read more about this in /usr/share/doc/plink1.9/README.Debian.

There are three methods to install plink1.9 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 plink1.9 Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install plink1.9 using apt-get by running the following command:

sudo apt-get -y install plink1.9

Install plink1.9 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install plink1.9 using apt by running the following command:

sudo apt -y install plink1.9

Install plink1.9 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 plink1.9 using aptitude by running the following command:

sudo aptitude -y install plink1.9

How To Uninstall plink1.9 on Ubuntu 22.04

To uninstall only the plink1.9 package we can use the following command:

sudo apt-get remove plink1.9

Uninstall plink1.9 And Its Dependencies

To uninstall plink1.9 and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove plink1.9

Remove plink1.9 Configurations and Data

To remove plink1.9 configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge plink1.9

Remove plink1.9 configuration, data, and all of its dependencies

We can use the following command to remove plink1.9 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge plink1.9

References

Summary

In this tutorial we learn how to install plink1.9 package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.