Skip to main content

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.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for biorazer 0.9.5
File Size Uploaded
biorazer-0.9.5.tar.gz 185.5 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for biorazer 0.9.5
File
biorazer-0.9.5-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
biorazer-0.9.5-cp312-cp312-musllinux_1_2_x86_64.whl CPython 3.12 CPython 3.12 Linux musl 1.2+ x86-64 Details
biorazer-0.9.5-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.28+ x86-64, Linux glibc 2.17+ x86-64 Details
biorazer-0.9.5-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
biorazer-0.9.5-cp312-cp312-macosx_10_13_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.13+ x86-64 Details
biorazer-0.9.5-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
biorazer-0.9.5-cp311-cp311-musllinux_1_2_x86_64.whl CPython 3.11 CPython 3.11 Linux musl 1.2+ x86-64 Details
biorazer-0.9.5-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.28+ x86-64, Linux glibc 2.17+ x86-64 Details
biorazer-0.9.5-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
biorazer-0.9.5-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details

Total release size: 6.3 MB

Release files / biorazer-0.9.5.tar.gz

Download URL biorazer-0.9.5.tar.gz
Size 185.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fa84f8cc1998decc5eb74df407cd8fabf3cf5c033788c14618ba3f864299b8e1
BLAKE2b-256 checksum
How to use checksums
3342313c6cca64c1732d1366edc4ee0076dd6c651c4ce357aee55b20020b720f
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

Release files / biorazer-0.9.5-cp312-cp312-win_amd64.whl

Download URL biorazer-0.9.5-cp312-cp312-win_amd64.whl
Size 251.9 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
ffee100aeeeab1c083c5ec6ac7e7bbebb039f1de25d4249f382f090460194d4d
BLAKE2b-256 checksum
How to use checksums
7b27c5ab206560e284e8b86483423f8c7bb939739e1c7848c776dc39933834c7
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

Release files / biorazer-0.9.5-cp312-cp312-musllinux_1_2_x86_64.whl

Download URL biorazer-0.9.5-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
e54d4be16883a691cc5df4891f3f625b3e959819012c2a813fe99a530787927b
BLAKE2b-256 checksum
How to use checksums
30fa842148f36d8f08f89b217836fe4efec311f968ef9e546a6169e7bf323843
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

Release files / biorazer-0.9.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL biorazer-0.9.5-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
088359317279d1aed873bde2e8ad49c287179c9de91f9a4dbc9f16e6a23c051a
BLAKE2b-256 checksum
How to use checksums
70068cd285f58576a3759a9a7835f7d3075864b652616fa49e21335390985a78
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

Release files / biorazer-0.9.5-cp312-cp312-macosx_11_0_arm64.whl

Download URL biorazer-0.9.5-cp312-cp312-macosx_11_0_arm64.whl
Size 415.9 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cec3e669818c224c0ad597291404cfdd8a7e643b13834f1fd33ed036dfcfd3b6
BLAKE2b-256 checksum
How to use checksums
55c278b1343d8adffcab96b4387f84185b5cf18c84c41e92d3a8cb432d0336c7
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

Release files / biorazer-0.9.5-cp312-cp312-macosx_10_13_x86_64.whl

Download URL biorazer-0.9.5-cp312-cp312-macosx_10_13_x86_64.whl
Size 415.0 kB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
e81e2ed130de6395376846c22c049c05b2c76a534ad9e9a882eacd723f44776b
BLAKE2b-256 checksum
How to use checksums
928018d02744122523b523e13b16b95b2c4af55ac7ac5f9e134ac7da1bba2874
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

Release files / biorazer-0.9.5-cp311-cp311-win_amd64.whl

Download URL biorazer-0.9.5-cp311-cp311-win_amd64.whl
Size 251.9 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
9c75ed6bfd5c48c4eb3d3bc70dffefa26521c6aca17041e4088fb14427d61397
BLAKE2b-256 checksum
How to use checksums
27d8e3d3bb3742443a42f09519b988c96931b140669fee8b2d66f441c39924fd
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

Release files / biorazer-0.9.5-cp311-cp311-musllinux_1_2_x86_64.whl

Download URL biorazer-0.9.5-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
8aaed4d09d3f8e695cc94062cb03d6a0a6680628c42b8849cc069271e7379578
BLAKE2b-256 checksum
How to use checksums
061e0c6b81d4c8e3cea354dd09d769c41288e1e2e42363f17cf8edb4ea757223
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

Release files / biorazer-0.9.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL biorazer-0.9.5-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
0d903af6493c5d119ba8c8ae293dcdcf009996ed5239284745812b1e9b0449cd
BLAKE2b-256 checksum
How to use checksums
972cdee8fcdfdaa106bcbfb05b31968855d70bd9a7dec7998307954a87b2cbc3
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

Release files / biorazer-0.9.5-cp311-cp311-macosx_11_0_arm64.whl

Download URL biorazer-0.9.5-cp311-cp311-macosx_11_0_arm64.whl
Size 338.0 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6da52f5ea729cfd24f4761d87db1fc54960f5558425f80d9ebe1dc5a52d6863c
BLAKE2b-256 checksum
How to use checksums
725929acd2a0ce7ef7012851aa82b2f43a001d2627642cfda993490bc655540c
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

Release files / biorazer-0.9.5-cp311-cp311-macosx_10_9_x86_64.whl

Download URL biorazer-0.9.5-cp311-cp311-macosx_10_9_x86_64.whl
Size 337.4 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
a91ceb407a58be01f963ddd65fce6a5c4ac8f64b0b4929a8d2e9395b5d1b25a8
BLAKE2b-256 checksum
How to use checksums
b6fd93a22557669017671028b85305273a25b97d2c50fe9b6d56708b9bdd4e05
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

Release history Release notifications | RSS feed

0.9.7

11 release files

0.9.6

11 release files

This release

0.9.5 This release

11 release files

0.9.3

5 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page