How To Install python-dipy on Ubuntu 18.04

In this tutorial we learn how to install python-dipy on Ubuntu 18.04. python-dipy is Python library for the analysis of diffusion MRI datasets

Introduction

In this tutorial we learn how to install python-dipy on Ubuntu 18.04.

What is python-dipy

python-dipy is:

DIPY is a software project for computational neuroanatomy. It focuses on diffusion magnetic resonance imaging (dMRI) analysis and tractography but also contains implementations of other computational imaging methods such as denoising and registration that are applicable to the greater medical imaging and image processing communities. Additionally, DIPY is an international project which brings together scientists across labs and countries to share their state-of-the-art code and expertise in the same codebase, accelerating scientific research in medical imaging.

Here are some of the highlights:

  • Reconstruction algorithms: CSD, DSI, GQI, DTI, DKI, QBI, SHORE and MAPMRI
  • Fiber tracking algorithms: deterministic and probabilistic
  • Native linear and nonlinear registration of images
  • Fast operations on streamlines (selection, resampling, registration)
  • Tractography segmentation and clustering
  • Many image operations, e.g., reslicing or denoising with NLMEANS
  • Estimation of distances/correspondences between streamlines and connectivity matrices
  • Interactive visualization of streamlines in the space of images

There are three methods to install python-dipy on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python-dipy Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install python-dipy using apt-get by running the following command:

sudo apt-get -y install python-dipy

Install python-dipy Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python-dipy using apt by running the following command:

sudo apt -y install python-dipy

Install python-dipy Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python-dipy using aptitude by running the following command:

sudo aptitude -y install python-dipy

How To Uninstall python-dipy on Ubuntu 18.04

To uninstall only the python-dipy package we can use the following command:

sudo apt-get remove python-dipy

Uninstall python-dipy And Its Dependencies

To uninstall python-dipy and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove python-dipy

Remove python-dipy Configurations and Data

To remove python-dipy configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge python-dipy

Remove python-dipy configuration, data, and all of its dependencies

We can use the following command to remove python-dipy configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python-dipy

References

Summary

In this tutorial we learn how to install python-dipy package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.