kmer-mask command not found

In this troubleshooting guide we learn how to fix kmer-mask command not found error message

Introduction

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

kmer-mask: command not found

or when using sudo you get the following error message

sudo: kmer-mask: command not found

Solutions to kmer-mask: command not found

How To Fix kmer-mask: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu kmer-mask is provided by meryl package.

meryl is:

meryl computes the kmer content of genomic sequences. Kmer content is represented as a list of kmers and the number of times each occurs in the input sequences. The kmer can be restricted to only the forward kmer, only the reverse kmer, or the canonical kmer (lexicographically smaller of the forward and reverse kmer at each location). Meryl can report the histogram of counts, the list of kmers and their counts, or can perform mathematical and set operations on the processed data files.

This package is part of the Kmer suite.

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

sudo apt-get -y install meryl

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

You can also use apt command to install meryl.

sudo apt -y install meryl

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

sudo aptitude install meryl

Summary

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