BioRazer
A Python package for analyzing various biological information, built from practical lab experience. Install with pip and you're ready for common bioinformatics analysis work.
Features
- Protein sequences — Translation, reverse translation, codon/protein dictionaries
- Multiple Sequence Alignment (MSA) — Generate MSA via ColabFold MMseqs2 API, visualize coverage, analyze amino acid frequencies
- Structure analysis — Static analysis (contacts, hydrogen bonds, surface selection), dynamic trajectory analysis (MD trajectory view, XVG/XPM plots)
- Database access — Query AFDB, RCSB PDB, UniProt, Ensembl
- Rotamer libraries — Read external side-chain rotamer databases: PyMOL's bundled Dunbrack pickles (
sc_bb_ind/sc_bb_dep) and Rosetta's Dunbrack 2002 / Shapovalov 2010 text libraries - Protein design — Sequence design, library generation, single test entries
Installation
pip install biorazer
Dependencies
- Python >= 3.11
- biotite, numpy, scipy, matplotlib, hydride, umap-learn, rcsb-api
- tabulate (for formatted output)
Development
# Install with dev and test dependencies
poetry install --with dev,test
# Or using pip with test dependencies
pip install biorazer
pip install pytest pytest-cov
Usage
ColabFold MSA via MMseqs2 API
Generate protein MSA by calling the ColabFold public API — zero additional dependencies, pure stdlib:
from biorazer.sequence.protein.analysis.alignment.query import run_search
# Single-chain MSA (unpaired, default)
files, _ = run_search(
["MTSENLYFQGAMG..."],
out_dir="msa_out/",
)
# Multi-chain paired MSA (for AF3 multimers)
files, _ = run_search(
["CHAIN1_SEQUENCE", "CHAIN2_SEQUENCE"],
out_dir="msa_out/",
pair_mode="paired",
pair_strategy="greedy", # or "complete"
)
Output: A3M files (uniref.a3m, bfd.mgnify30.*.a3m, pair.a3m) ready for downstream folding pipelines. Supports template search (--templates) and custom MMseqs2 server URLs.
MSA Visualization
from biorazer.sequence.protein.analysis.alignment import plot_msa
fig, ax = plot_msa(
sequences=["MTSENLYFQG", "MTSENLXFQG"],
labels=["Wild-type", "Mutant"],
)
fig.savefig("msa_plot.png")
Testing
pytest tests/ -v
Tests cover: FASTA parsing, sequence validation, A3M merging, and module constants. All tests are pure (no network required).
Project Structure
biorazer/
├── access/ # External database APIs (AFDB, RCSB, UniProt, Ensembl)
├── database/ # Reference data & external-library readers
│ └── molecule/ # per-molecule data
│ ├── atom/ # vdW radii, charges
│ ├── bond/ # bond length / angle / dihedral
│ ├── icoor/ # internal-coordinate topology & templates
│ └── rotamer/ # external rotamer readers, split by source
│ ├── rosetta/ # Dunbrack 2002 / Shapovalov 2010 text libraries
│ └── pymol/ # PyMOL's bundled Dunbrack pickles
├── design/ # Protein design tools
├── sequence/ # Sequence analysis
│ ├── nucleotide/
│ ├── protein/
│ ├── analysis/alignment/ # MSA analysis & plotting
│ │ └── scripts/ # MSA visualizer, analyzer
│ └── translation/
├── structure/ # Structure analysis & I/O
└── util/ # Utility modules (dictionaries)
License
This project is licensed under the MIT License.
This project is intended for academic and research use.
Release files for biorazer 0.9.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| biorazer-0.9.3.tar.gz | 185.3 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| biorazer-0.9.3-cp312-cp312-musllinux_1_2_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux musl 1.2+ x86-64 | Details |
| biorazer-0.9.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 | Details |
| biorazer-0.9.3-cp311-cp311-musllinux_1_2_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux musl 1.2+ x86-64 | Details |
| biorazer-0.9.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 | Details |
Total release size: 4.3 MB
Release files / biorazer-0.9.3.tar.gz
| Download URL | biorazer-0.9.3.tar.gz |
|---|---|
| Size | 185.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d236b3ccbe049dec307d7da689e9be908eb27aafa7126f16371842680b7caf7b
|
|
BLAKE2b-256 checksum How to use checksums |
a804de860188303afede149ddf5bc024b59ac0cfef65cc8bf3ceb93b73f60374
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.
Transparency logRelease files / biorazer-0.9.3-cp312-cp312-musllinux_1_2_x86_64.whl
| Download URL | biorazer-0.9.3-cp312-cp312-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
d13f8d97660a3e1475dd368a6496c67f345658b4b6d38755663fdc8847576e14
|
|
BLAKE2b-256 checksum How to use checksums |
a1e319a16dfff1403979725143e034a39c3c455f5cc4987d9efcab7e2bf16fb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.
Transparency logRelease files / biorazer-0.9.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | biorazer-0.9.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
c80b6bd95a574246245e1d2f2867bb3a4bd1507919090b5234adda0c18e81085
|
|
BLAKE2b-256 checksum How to use checksums |
f1ae9229073c55351e3af3105827858077f4dacf77da0f7829d8ea5474568afd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.
Transparency logRelease files / biorazer-0.9.3-cp311-cp311-musllinux_1_2_x86_64.whl
| Download URL | biorazer-0.9.3-cp311-cp311-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 767.7 kB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
2770935c37c0ca1b856f869debfa1a5af05ec7592e7e0b4d19a69b0ff8f6ce73
|
|
BLAKE2b-256 checksum How to use checksums |
847aef0e3870a01973c45ce2416d111cbf0aed3bfef5f7d195d2bba464a01ae7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.
Transparency logRelease files / biorazer-0.9.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | biorazer-0.9.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 764.0 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
d48f24b2979edfb19d605837f9d37e5c4fbfce0bafce4d6a572a9ec8ff678db4
|
|
BLAKE2b-256 checksum How to use checksums |
6b60d47ec86c2354bf4fe2a4cc5df659921f27e6e677586a7e98a1fa6564c957
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.
Transparency log