How To Install python3-unifrac on Debian 12

Learn how to install python3-unifrac on Debian 12 with this tutorial. python3-unifrac is high-performance phylogenetic diversity calculations

Introduction

In this tutorial we learn how to install python3-unifrac on Debian 12.

What is python3-unifrac

python3-unifrac is:

The de facto repository for high-performance phylogenetic diversity calculations. The methods in this repository are based on an implementation of the Strided State UniFrac algorithm which is faster, and uses less memory than Fast UniFrac. Strided State UniFrac supports Unweighted UniFrac, Weighted UniFrac, Generalized UniFrac, Variance Adjusted UniFrac and meta UniFrac. This repository also includes Stacked Faith (manuscript in preparation), a method for calculating Faith’s PD that is faster and uses less memory than the Fast UniFrac-based reference implementation.

This package contains the Python3 module.

There are three methods to install python3-unifrac on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python3-unifrac Using apt-get

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

sudo apt-get update

After updating apt database, We can install python3-unifrac using apt-get by running the following command:

sudo apt-get -y install python3-unifrac

Install python3-unifrac Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python3-unifrac using apt by running the following command:

sudo apt -y install python3-unifrac

Install python3-unifrac 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python3-unifrac using aptitude by running the following command:

sudo aptitude -y install python3-unifrac

How To Uninstall python3-unifrac on Debian 12

To uninstall only the python3-unifrac package we can use the following command:

sudo apt-get remove python3-unifrac

Uninstall python3-unifrac And Its Dependencies

To uninstall python3-unifrac and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove python3-unifrac

Remove python3-unifrac Configurations and Data

To remove python3-unifrac configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge python3-unifrac

Remove python3-unifrac configuration, data, and all of its dependencies

We can use the following command to remove python3-unifrac configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python3-unifrac

Dependencies

python3-unifrac have the following dependencies:

References

Summary

In this tutorial we learn how to install python3-unifrac package on Debian 12 using different package management tools: apt, apt-get and aptitude.