How To Install ssw-align on Ubuntu 18.04

In this tutorial we learn how to install ssw-align on Ubuntu 18.04. ssw-align is Smith-Waterman aligner based on libssw

Introduction

In this tutorial we learn how to install ssw-align on Ubuntu 18.04.

What is ssw-align

ssw-align is:

This package provides a command-line aligner based on the libssw library, a fast SIMD accelerated implementation of the Smith-Waterman algorithm. The input files can be in FASTA or FASTQ format. Both target and query files can contain multiple sequences. Each sequence in the query file will be aligned with all sequences in the target file. Output is provided in SAM or BLAST-like text format.

There are three methods to install ssw-align 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 ssw-align Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install ssw-align

Install ssw-align Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ssw-align

Install ssw-align 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 ssw-align using aptitude by running the following command:

sudo aptitude -y install ssw-align

How To Uninstall ssw-align on Ubuntu 18.04

To uninstall only the ssw-align package we can use the following command:

sudo apt-get remove ssw-align

Uninstall ssw-align And Its Dependencies

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

sudo apt-get -y autoremove ssw-align

Remove ssw-align Configurations and Data

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

sudo apt-get -y purge ssw-align

Remove ssw-align configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ssw-align

References

Summary

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