average_genome_size command not found

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

Introduction

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

average_genome_size: command not found

or when using sudo you get the following error message

sudo: average_genome_size: command not found

Solutions to average_genome_size: command not found

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

In Ubuntu average_genome_size is provided by grinder package.

grinder is:

Grinder is a versatile program to create random shotgun and amplicon sequence libraries based on DNA, RNA or proteic reference sequences provided in a FASTA file.

Grinder can produce genomic, metagenomic, transcriptomic, metatranscriptomic, proteomic, metaproteomic shotgun and amplicon datasets from current sequencing technologies such as Sanger, 454, Illumina. These simulated datasets can be used to test the accuracy of bioinformatic tools under specific hypothesis, e.g. with or without sequencing errors, or with low or high community diversity. Grinder may also be used to help decide between alternative sequencing methods for a sequence-based project, e.g. should the library be paired-end or not, how many reads should be sequenced.

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

sudo apt-get -y install grinder

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

You can also use apt command to install grinder.

sudo apt -y install grinder

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

sudo aptitude install grinder

Summary

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