How To Install python3-pyfastx on Debian 12
Introduction
In this tutorial we learn how to install python3-pyfastx
on Debian 12.
What is python3-pyfastx
python3-pyfastx is:
The pyfastx is a lightweight Python C extension that enables users to randomly access to sequences from plain and gzipped FASTA/Q files. This module aims to provide simple APIs for users to extract sequence from FASTA and reads from FASTQ by identifier and index number. The pyfastx will build indexes stored in a sqlite3 database file for random access to avoid consuming excessive amount of memory. In addition, the pyfastx can parse standard (sequence is spread into multiple lines with same length) and nonstandard (sequence is spread into one or more lines with different length) FASTA format.
It features:
- a single file for the Python extension;
- lightweight, memory efficient FASTA/Q file parsing;
- fast random access to sequences from gzipped FASTA/Q file;
- sequences reading from FASTA file line by line;
- N50 and L50 calculation of sequences in FASTA file;
- GC content and nucleotides composition calculation;
- reverse, complement and antisense sequences extraction;
- excellent compatibility: support for parsing nonstandard FASTA file;
- support for FASTQ quality score conversion;
- a command line interface for splitting FASTA/Q file.
This package provides the python3 module.
There are three methods to install python3-pyfastx
on Debian 12. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install python3-pyfastx Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install python3-pyfastx
using apt-get
by running the following command:
sudo apt-get -y install python3-pyfastx
Install python3-pyfastx Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python3-pyfastx
using apt
by running the following command:
sudo apt -y install python3-pyfastx
Install python3-pyfastx 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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install python3-pyfastx
using aptitude
by running the following command:
sudo aptitude -y install python3-pyfastx
How To Uninstall python3-pyfastx on Debian 12
To uninstall only the python3-pyfastx
package we can use the following command:
sudo apt-get remove python3-pyfastx
Uninstall python3-pyfastx And Its Dependencies
To uninstall python3-pyfastx
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove python3-pyfastx
Remove python3-pyfastx Configurations and Data
To remove python3-pyfastx
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge python3-pyfastx
Remove python3-pyfastx configuration, data, and all of its dependencies
We can use the following command to remove python3-pyfastx
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python3-pyfastx
Dependencies
python3-pyfastx have the following dependencies:
References
Summary
In this tutorial we learn how to install python3-pyfastx
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.