treeannotator command not found

In this troubleshooting guide we learn how to fix treeannotator command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

treeannotator: command not found

or when using sudo you get the following error message

sudo: treeannotator: command not found

Solutions to treeannotator: command not found

How To Fix treeannotator: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu treeannotator is provided by beast-mcmc package.

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.

To fix this problem, we can install more using the command below.

sudo apt-get -y install beast-mcmc

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install beast-mcmc.

sudo apt -y install beast-mcmc

Or if you have aptitude installed you can use the following command.

sudo aptitude install beast-mcmc

Summary

In this tutorial we learn how to fix treeannotator command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.