qual_trim.py command not found

In this troubleshooting guide we learn how to fix qual_trim.py command not found error message

Introduction

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

qual_trim.py: command not found

or when using sudo you get the following error message

sudo: qual_trim.py: command not found

Solutions to qual_trim.py: command not found

How To Fix qual_trim.py: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu qual_trim.py is provided by dnapi package.

dnapi is:

This package provides de novo adapter prediction (iterative) algorithm for small RNA sequencing data.

DNApi can predict most 3’ adapters correctly with the default parameters. You can tweak the parameters and can run different prediction modes.

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

sudo apt-get -y install dnapi

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

You can also use apt command to install dnapi.

sudo apt -y install dnapi

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

sudo aptitude install dnapi

Summary

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