trf command not found

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

Introduction

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

trf: command not found

or when using sudo you get the following error message

sudo: trf: command not found

Solutions to trf: command not found

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

In Ubuntu trf is provided by trf package.

trf is:

A tandem repeat in DNA is two or more adjacent, approximate copies of a pattern of nucleotides. Tandem Repeats Finder is a program to locate and display tandem repeats in DNA sequences. In order to use the program, the user submits a sequence in FASTA format. There is no need to specify the pattern, the size of the pattern or any other parameter. The output consists of two files: a repeat table file and an alignment file. The repeat table, viewable in a web browser, contains information about each repeat, including its location, size, number of copies and nucleotide content. Clicking on the location indices for one of the table entries opens a second browser page that shows an alignment of the copies against a consensus pattern. The program is very fast, analyzing sequences on the order of .5Mb in just a few seconds. Submitted sequences may be of arbitrary length. Repeats with pattern size in the range from 1 to 2000 bases are detected.

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

sudo apt-get -y install trf

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

You can also use apt command to install trf.

sudo apt -y install trf

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

sudo aptitude install trf

Summary

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