gainLoss command not found

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

Introduction

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

gainLoss: command not found

or when using sudo you get the following error message

sudo: gainLoss: command not found

Solutions to gainLoss: command not found

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

In Ubuntu gainLoss is provided by fastml package.

fastml is:

FastML is a bioinformatics tool for the reconstruction of ancestral sequences based on the phylogenetic relations between homologous sequences. FastML runs several algorithms that reconstruct the ancestral sequences with emphasis on an accurate reconstruction of both indels and characters. For character reconstruction the previously described FastML algorithms are used to efficiently infer the most likely ancestral sequences for each internal node of the tree. Both joint and the marginal reconstructions are provided. For indels reconstruction the sequences are first coded according to the indel events detected within the multiple sequence alignment (MSA) and then a state-of-the-art likelihood model is used to reconstruct ancestral indels states. The results are the most probable sequences, together with posterior probabilities for each character and indel at each sequence position for each internal node of the tree. FastML is generic and is applicable for any type of molecular sequences (nucleotide, protein, or codon sequences).

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

sudo apt-get -y install fastml

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

You can also use apt command to install fastml.

sudo apt -y install fastml

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

sudo aptitude install fastml

Summary

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