BioSuite Ultra

An integrated, pure-Python bioinformatics platform: 47 analysis modules for sequence,
genomics, transcriptomics and population genetics, a 105-function plotting library, molecular
cloning with a 169-enzyme restriction table, and reproducible workflows — usable as a Python
library, a CLI, a desktop GUI or a REST API.
Overview
Most bioinformatics work involves stitching together a dozen tools with incompatible input
formats, installation requirements and output conventions. BioSuite Ultra takes the opposite
approach: a single installable Python package that covers the common analysis path end to end,
with no external binaries required for its core functionality.
Everything runs on the scientific Python stack (NumPy, SciPy, pandas, scikit-learn, Biopython,
matplotlib). Where an external tool such as BLAST+, MUSCLE or MAFFT is available, BioSuite will
use it; where it is not, a built-in pure-Python implementation takes over so that a pipeline
still runs. Those built-in engines are labelled as such in the code and in this document —
see Scientific scope and limitations.
Why BioSuite Ultra?
- One dependency, not twelve.
pip install biosuite-ultra provides sequence analysis,
alignment, phylogenetics, expression analysis, variant handling, cloning and plotting.
- Four interfaces over one core. The same functions back the library, CLI, GUI and REST
API, so an interactive exploration can be turned into a script or a service without a rewrite.
- Reproducibility is built in. A provenance tracker records parameters and inputs, and
pipelines are seedable and re-runnable.
- Graceful degradation, honestly labelled. Optional accelerators are used when present;
the pure-Python fallbacks state their approximations rather than hiding them.
- Tested and scanned on every change. The suite runs on Python 3.10, 3.11 and 3.12 in
CI, with Ruff linting, a dedicated security-regression suite and a package build.
Feature matrix
| Area |
Capability |
| Sequence analysis |
FASTA/FASTQ I/O, GC content, translation, reverse complement, ORF finding, codon usage, primer design, sequence validation |
| Alignment |
Needleman–Wunsch and Smith–Waterman (exact DP), k-mer BLAST-style search, progressive MSA with optional Clustal Omega / MUSCLE / MAFFT back ends |
| Phylogenetics |
p-distance, UPGMA, neighbour-joining, maximum-likelihood and Bayesian (MCMC) tree inference |
| Transcriptomics |
CPM/TPM normalisation, differential expression, transcript quantification, GO/KEGG enrichment |
| Genomics / NGS |
Read trimming, read alignment, assembly, variant calling, structural-variant and CNV detection, epigenomics and ChIP-seq peak calling |
| Single cell |
scRNA-seq workflow (QC, normalisation, dimensionality reduction, clustering) via the optional scanpy stack |
| Population genetics |
Allele and genotype frequencies, Hardy–Weinberg testing, F-statistics, GWAS |
| Proteomics & structure |
Epitope prediction, structure handling and prediction, molecular docking, molecular-dynamics simulation |
| Metabolism |
Metabolic modelling, metabolomics, pathway visualisation |
| Machine learning |
Feature construction and model training helpers for biological data (bio_ml) |
| Molecular cloning |
Restriction digestion with 169 enzymes, PCR simulation, plasmid maps, virtual gel electrophoresis |
| Visualisation |
12 plotting modules, 105 public plotting functions, 40 plot types in the GUI catalogue; matplotlib and Plotly back ends |
| Workflows |
Declarative pipelines, batch processing across samples, report generation |
| Provenance |
Parameter/input capture and audit records for reproducible runs |
| Databases |
NCBI/Ensembl-style lookups and a local GO browser |
| Interfaces |
Python library, interactive CLI (117 menu options, 22 direct subcommands), CustomTkinter GUI (11 tabs), FastAPI REST API (45 endpoints under /api/v1/*, including persistent local sequence jobs) |
Installation
Requires Python 3.10, 3.11 or 3.12.
pip install biosuite-ultra
The base install covers the core scientific functionality. Optional extras add the other
interfaces and heavier scientific dependencies:
| Extra |
Install |
Adds |
api |
pip install "biosuite-ultra[api]" |
FastAPI, Uvicorn, JWT auth, rate limiting |
gui |
pip install "biosuite-ultra[gui]" |
CustomTkinter desktop application |
notebook |
pip install "biosuite-ultra[notebook]" |
IPython magics and ipywidgets |
bio |
pip install "biosuite-ultra[bio]" |
goatools, gseapy, scanpy, scikit-bio, cobra and other domain packages |
dev |
pip install "biosuite-ultra[dev]" |
pytest, pytest-cov, Ruff and the test toolchain |
full |
pip install "biosuite-ultra[full]" |
All of the above |
Extras combine: pip install "biosuite-ultra[api,gui,notebook]".
The GUI also needs Tk, which cannot be installed from PyPI. On Debian/Ubuntu:
sudo apt-get install python3-tk. The gui extra provides CustomTkinter; Tk itself comes
from your operating system's Python packaging.
From source
git clone https://github.com/sahandtkod-byte/BioSuite-Ultra.git
cd BioSuite-Ultra
pip install -e ".[api,gui,notebook,dev]"
pytest tests/ -q
Quick start
from biosuite.core.sequence import gc_content, reverse_complement, translate
gc_content("ATCGATCG") # 50.0
reverse_complement("ATCG") # 'CGAT'
translate("ATGAAATTTTAA") # 'MKF*' (stop codon retained)
A slightly more scientific example — align two sequences and score the result with the exact
dynamic-programming implementation:
from biosuite.core.alignment import needleman_wunsch
aligned1, aligned2, score = needleman_wunsch("ACGTACGTAG", "ACGTTACGAG")
print(aligned1) # ACG-TACGTAG
print(aligned2) # ACGTTACG-AG
print(score) # 5
Differential expression over a counts matrix returns a tidy pandas.DataFrame:
import pandas as pd
from biosuite.core.expression import differential_expression
counts = pd.read_csv("counts.csv", index_col=0) # genes x samples
res = differential_expression(counts, conditions=["ctrl", "ctrl", "treat", "treat"])
print(res.columns.tolist()) # ['gene', 'log2FC', 'pvalue', 'padj']
print(res.nsmallest(10, "padj"))
Interfaces
BioSuite Ultra is one platform with four ways to use it. They share the same core functions, so
results are identical whichever you choose.
| Interface |
Best for |
| Python library |
Scripting, notebooks, integration into an existing pipeline |
| CLI |
Quick one-off calculations and shell pipelines |
| GUI |
Interactive exploration, teaching, and users who prefer not to write code |
| REST API |
Serving analyses to other applications or over a network |
Command line
The biosuite console script runs an interactive menu with 117 options, or executes a
subcommand directly:
biosuite # interactive menu
biosuite gc ATCGATCG # GC content
biosuite translate ATCGATCG # translate DNA
biosuite nw AGTACGCA TATGC # Needleman-Wunsch alignment
biosuite --version
Available subcommands: api, blast, crispr, digest, doctor, epitope, gc, gui, gwas,
hwe, manhattan, manifest, nw, pca, primers, revcomp, stats, sw, theme,
translate, volcano.
Desktop GUI
biosuite-gui # console script
biosuite --gui # or via the main CLI
python run.py --gui # from a source checkout
A CustomTkinter application organised into 11 tabs (sequence analysis, transcriptomics,
genomics, visualisation, cloning, metabolomics, survival, databases, workflow, advanced, help),
with a plot catalogue of 40 chart types and three colour themes.
REST API
pip install "biosuite-ultra[api]"
python -m biosuite.api.server # or: biosuite api --port 8000
The API exposes 38 endpoints under /api/*, plus an unauthenticated /health liveness
probe. It will not start without credentials configured — see Security.
curl -X POST "http://localhost:8000/api/v1/sequence/gc-content" \
-H "X-API-Key: $BIOSUITE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sequence": "ATCGATCG"}'
Endpoint groups: sequence, alignment, blast, phylogeny, expression, popgen, gwas,
crispr, epitope, metagenomics, database, file, plotting, provenance, workflow,
modules, admin. Full details in API_GUIDE.md.
Notebooks
pip install "biosuite-ultra[notebook]"
biosuite.notebook provides IPython magics and ipywidgets helpers. Five worked notebooks are
in examples/, alongside eight standalone tutorial scripts.
Molecular cloning
A restriction table of 169 enzymes with recognition sites and cut positions drives
digestion, fragment prediction and virtual gel electrophoresis:
from biosuite.core.cloning import simulate_digestion
result = simulate_digestion(plasmid_sequence, enzyme="EcoRI")
print(result["fragments"], result["sizes"], result["cuts"])
Plasmid maps are drawn from a PlasmidMap object:
from biosuite.plotting.plasmid_map import create_sample_plasmid, draw_plasmid
plasmid = create_sample_plasmid()
fig = draw_plasmid(plasmid)
fig.savefig("plasmid_map.png", dpi=150)
Architecture
biosuite/
├── core/ 47 analysis modules (44 domain modules + core/workflow/)
│ ├── sequence, alignment, msa, phylogeny, blast, crispr, cloning, ...
│ ├── provenance.py run-level audit records
│ └── workflow/ pipeline.py, batch.py, report.py
├── plotting/ 12 modules, 105 public plotting functions (matplotlib + Plotly)
├── cli/ menu.py — interactive menu and subcommand dispatch
├── gui/ CustomTkinter application: main_window.py, themes.py, tabs/ (11)
├── api/ FastAPI app, auth.py, security.py, server.py
└── notebook/ IPython magics and widgets
The dependency direction is one-way: core → plotting → interfaces. Analysis modules never
import from gui, cli or api, so the scientific code is usable headless and the GUI is an
optional layer. GUI and notebook imports are lazy, so importing biosuite does not require Tk
or IPython.
Reproducibility and provenance
biosuite.core.provenance records the parameters, inputs and environment of an analysis so a
result can be traced back to the call that produced it. Pipelines in biosuite.core.workflow
accept explicit random seeds and keep per-run state isolated, so repeated execution of the same
pipeline with the same seed produces the same output. The REST API exposes provenance records
through its /api/v1/provenance/* endpoints.
Security
The API is designed to fail closed.