to_fasta.py command not found

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

Introduction

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

to_fasta.py: command not found

or when using sudo you get the following error message

sudo: to_fasta.py: command not found

Solutions to to_fasta.py: command not found

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

In Ubuntu to_fasta.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 to_fasta.py command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.