porechop command not found

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

Introduction

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

porechop: command not found

or when using sudo you get the following error message

sudo: porechop: command not found

Solutions to porechop: command not found

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

In Ubuntu porechop is provided by porechop package.

porechop is:

Porechop is a tool for finding and removing adapters from Oxford Nanopore reads. Adapters on the ends of reads are trimmed off, and when a read has an adapter in its middle, it is treated as chimeric and chopped into separate reads. Porechop performs thorough alignments to effectively find adapters, even at low sequence identity. Porechop also supports demultiplexing of Nanopore reads that were barcoded with the Native Barcoding Kit, PCR Barcoding Kit or Rapid Barcoding Kit.

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

sudo apt-get -y install porechop

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

You can also use apt command to install porechop.

sudo apt -y install porechop

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

sudo aptitude install porechop

Summary

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