How To Install beast-mcmc on Ubuntu 20.04

In this tutorial we learn how to install beast-mcmc on Ubuntu 20.04. beast-mcmc is Bayesian MCMC phylogenetic inference

Introduction

In this tutorial we learn how to install beast-mcmc on Ubuntu 20.04.

What is beast-mcmc

beast-mcmc is:

BEAST is a cross-platform program for Bayesian MCMC analysis of molecular sequences. It is entirely orientated towards rooted, time-measured phylogenies inferred using strict or relaxed molecular clock models. It can be used as a method of reconstructing phylogenies but is also a framework for testing evolutionary hypotheses without conditioning on a single tree topology. BEAST uses MCMC to average over tree space, so that each tree is weighted proportional to its posterior probability. Included is a simple to use user-interface program for setting up standard analyses and a suit of programs for analysing the results.

There are three methods to install beast-mcmc on Ubuntu 20.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 beast-mcmc Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install beast-mcmc

Install beast-mcmc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install beast-mcmc

Install beast-mcmc 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 beast-mcmc using aptitude by running the following command:

sudo aptitude -y install beast-mcmc

How To Uninstall beast-mcmc on Ubuntu 20.04

To uninstall only the beast-mcmc package we can use the following command:

sudo apt-get remove beast-mcmc

Uninstall beast-mcmc And Its Dependencies

To uninstall beast-mcmc and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove beast-mcmc

Remove beast-mcmc Configurations and Data

To remove beast-mcmc configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge beast-mcmc

Remove beast-mcmc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge beast-mcmc

References

Summary

In this tutorial we learn how to install beast-mcmc package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.