How To Install ncbi-seg on Ubuntu 18.04

In this tutorial we learn how to install ncbi-seg on Ubuntu 18.04. ncbi-seg is tool to mask segments of low compositional complexity in amino acid sequences

Introduction

In this tutorial we learn how to install ncbi-seg on Ubuntu 18.04.

What is ncbi-seg

ncbi-seg is:

ncbi-seg (a.k.a. SEG) is a program for identifying and masking segments of low compositional complexity in amino acid sequences.

ncbi-seg divides sequences into contrasting segments of low-complexity and high-complexity. Low-complexity segments defined by the algorithm represent “simple sequences” or “compositionally-biased regions”.

This program is inappropriate for masking nucleotide sequences and, in fact, may strip some nucleotide ambiguity codes from nt. sequences as they are being read.

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

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

sudo apt-get update

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

sudo apt-get -y install ncbi-seg

Install ncbi-seg Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ncbi-seg

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

sudo aptitude -y install ncbi-seg

How To Uninstall ncbi-seg on Ubuntu 18.04

To uninstall only the ncbi-seg package we can use the following command:

sudo apt-get remove ncbi-seg

Uninstall ncbi-seg And Its Dependencies

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

sudo apt-get -y autoremove ncbi-seg

Remove ncbi-seg Configurations and Data

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

sudo apt-get -y purge ncbi-seg

Remove ncbi-seg configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ncbi-seg

References

Summary

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