How To Install lamarc on Ubuntu 22.04

In this tutorial we learn how to install lamarc on Ubuntu 22.04. lamarc is Likelihood Analysis with Metropolis Algorithm using Random Coalescence

Introduction

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

What is lamarc

lamarc is:

LAMARC is a program which estimates population-genetic parameters such as population size, population growth rate, recombination rate, and migration rates. It approximates a summation over all possible genealogies that could explain the observed sample, which may be sequence, SNP, microsatellite, or electrophoretic data. LAMARC and its sister program Migrate are successor programs to the older programs Coalesce, Fluctuate, and Recombine, which are no longer being supported. The programs are memory-intensive but can run effectively on workstations.

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

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

sudo apt-get update

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

sudo apt-get -y install lamarc

Install lamarc Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install lamarc using apt by running the following command:

sudo apt -y install lamarc

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

sudo aptitude -y install lamarc

How To Uninstall lamarc on Ubuntu 22.04

To uninstall only the lamarc package we can use the following command:

sudo apt-get remove lamarc

Uninstall lamarc And Its Dependencies

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

sudo apt-get -y autoremove lamarc

Remove lamarc Configurations and Data

To remove lamarc configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge lamarc

Remove lamarc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge lamarc

References

Summary

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