Tool for handling MSA files and mapping residue ids
Project description
msa_handler
msa_handler is a Python package that processes multiple sequence alignments (MSAs) and maps aligned residue positions to the original residue numbers using Biopython.
Overview
This package allows you to:
- Parse MSA files in FASTA format.
- For each alignment column, generate objects that include:
- The sequence header.
- The aligned amino acid (or gap).
- The original residue number (None for gaps).
Installation
Ensure you have Python 3.6 or later installed. Install the package using pip:
pip install msa_handler
## Usage
from Bio import AlignIO
from msa_handler import build_msa_columns
alignment = AlignIO.read("your_alignment.fasta", "fasta")
columns = build_msa_columns(alignment)
# Print details of the first column
print(columns[0])
Requirements
Python >= 3.6
Biopython
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file msa_handler-0.1.0.tar.gz.
File metadata
- Download URL: msa_handler-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
193b71266c1bb1e7ac085f1d8ecc55a797511718387b28539d899a15b9ac28af
|
|
| MD5 |
4d66706de48e54beeb30c49eda018e97
|
|
| BLAKE2b-256 |
285386364ae916554506dbcd94b2372cb19331ee9db90324279629d3b431b9a5
|
File details
Details for the file msa_handler-0.1.0-py3-none-any.whl.
File metadata
- Download URL: msa_handler-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ec018102c86ef69413345fc9bb7f7bc9f4ee37dd24d8fb5747c01afc43961bb
|
|
| MD5 |
ac1e9588062eccc0e6b4b2a69a3af69a
|
|
| BLAKE2b-256 |
63d0ce343172b72c595d0414d4da2e1d484823877d4eddddcf2fe8a8f8777d69
|