bioalign
bioalign is the standalone Python library and command-line interface for the BioAlign workbench. It combines local affine-gap progressive alignment (BLOSUM62 and nucleotide scoring), optional EMBL-EBI Job Dispatcher remote search and alignment (ncbiblast, clustalo, muscle, mafft, tcoffee, kalign), per-column Shannon entropy and conservation profiling, Poisson-corrected distance matrices, Neighbor-Joining and UPGMA tree reconstruction, and multi-format alignment conversion (FASTA, Clustal, PHYLIP, Stockholm, MSF, NEXUS, Newick, SVG, CSV, and JSON).
Installation
pip install bioalign
Command-Line Usage
1. Align Unaligned Sequences (Offline Progressive Needleman-Wunsch or Remote EMBL-EBI)
bioalign align unaligned.fasta -o aligned.fasta
bioalign align unaligned.fasta --engine clustalo --email researcher@institute.edu -o aligned.fasta
2. Compute Conservation, Shannon Entropy, Consensus, and Pairwise Identity
bioalign stats aligned.fasta -o alignment_summary.json --csv per_column_metrics.csv
3. Reconstruct Neighbor-Joining or UPGMA Trees (Newick + Publication SVG)
bioalign tree aligned.fasta --method nj -o tree.nwk --svg tree.svg
bioalign tree aligned.fasta --method upgma --cladogram --svg cladogram.svg
4. Convert Alignments Across Standard Formats
bioalign convert aligned.fasta --to clustal -o aligned.aln
bioalign convert aligned.fasta --to stockholm -o aligned.sto
bioalign convert aligned.fasta --to phylip -o aligned.phy
bioalign convert aligned.fasta --to nexus -o aligned.nex
bioalign convert aligned.fasta --to msf -o aligned.msf
5. Run Homolog Search + Alignment Pipeline via EMBL-EBI Job Dispatcher
bioalign search query.fasta --email researcher@institute.edu --align clustalo -o results_dir
Python API
from bioalign import (
align_sequences,
build_tree,
compute_alignment_stats,
format_alignment,
parse_fasta,
to_newick,
)
records = parse_fasta("unaligned.fasta")
aligned = align_sequences(records)
stats = compute_alignment_stats(aligned)
tree = build_tree(
[r.id for r in aligned],
stats["identity_matrix"],
method="nj",
)
print("Consensus:", stats["consensus"])
print("Newick:", to_newick(tree))
print(format_alignment(aligned, fmt="clustal"))
Citation
Karagöl, A., Karagöl, T. An Evolutionary Statistics Toolkit for Simplified Sequence Analysis on Web with Client-Side Processing. bioRxiv (2024). https://doi.org/10.1101/2024.08.01.606148
License
Released under the MIT License.
Metadata
Release files for bioalign 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bioalign-0.1.0.tar.gz | 19.4 kB | Without provenance | Details for bioalign-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bioalign-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for bioalign-0.1.0-py3-none-any.whl |
Total release size: 38.1 kB
Release files / bioalign-0.1.0.tar.gz
| Download URL | bioalign-0.1.0.tar.gz |
|---|---|
| Size | 19.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f68afdb22aabc70f8485af9dde701a60c2e1be24c472298b84b1fc8a45c000e
|
|
BLAKE2b-256 checksum How to use checksums |
eb0f57f08b6b50ad0caec2a3e718a24cd92572d606e143bc9ba51fd05ba935f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / bioalign-0.1.0-py3-none-any.whl
| Download URL | bioalign-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc72fc0c4551656aa1a901946b1bf549e3a55a5653e63f63bd42e2bab317ccfb
|
|
BLAKE2b-256 checksum How to use checksums |
442994c33af2d475936f9ef41930f3ae2d1811197976d2437b458081f945deac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for bioalign 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.