seqtk command not found

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

Introduction

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

seqtk: command not found

or when using sudo you get the following error message

sudo: seqtk: command not found

Solutions to seqtk: command not found

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

In Ubuntu seqtk is provided by seqtk package.

seqtk is:

Currently, seqtk supports quality based trimming with the phred algorithm, converting fastq to fasta, reverse complementing sequences, extracting or masking subsequences in regions given in a BED/name list file, and more. It contains a subsampling module to sample exactly n sequences or a fraction of sequences.

Seqtk supports both fasta and fastq input files, which can be optionally gzip compressed.

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

sudo apt-get -y install seqtk

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

You can also use apt command to install seqtk.

sudo apt -y install seqtk

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

sudo aptitude install seqtk

Summary

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