denss.align_by_principal_axes.py command not found

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

Introduction

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

denss.align_by_principal_axes.py: command not found

or when using sudo you get the following error message

sudo: denss.align_by_principal_axes.py: command not found

Solutions to denss.align_by_principal_axes.py: command not found

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

In Ubuntu denss.align_by_principal_axes.py is provided by python3-denss package.

python3-denss is:

DENSS is an algorithm used for calculating ab initio electron density maps directly from solution scattering data. DENSS implements a novel iterative structure factor retrieval algorithm to cycle between real space density and reciprocal space structure factors, applying appropriate restraints in each domain to obtain a set of structure factors whose intensities are consistent with experimental data and whose electron density is consistent with expected real space properties of particles.

DENSS utilizes the NumPy Fast Fourier Transform for moving between real and reciprocal space domains. Each domain is represented by a grid of points (Cartesian), N x N x N. N is determined by the size of the system and the desired resolution. The real space size of the box is determined by the maximum dimension of the particle, D, and the desired sampling ratio. Larger sampling ratio results in a larger real space box and therefore a higher sampling in reciprocal space (i.e. distance between data points in q). Smaller voxel size in real space corresponds to higher spatial resolution and therefore to larger q values in reciprocal space.

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

sudo apt-get -y install python3-denss

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

You can also use apt command to install python3-denss.

sudo apt -y install python3-denss

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

sudo aptitude install python3-denss

Summary

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