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

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.7
File Size Uploaded
biorazer-0.9.7.tar.gz 186.3 kB Details

Built distributions (wheels)

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

Total release size: 5.3 MB

Release files / biorazer-0.9.7.tar.gz

Download URL biorazer-0.9.7.tar.gz
Size 186.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e6294a9494a872538c844f38fa143ef48db2cbdb8badc5dab4674b6f258582df
BLAKE2b-256 checksum
How to use checksums
4c274f97657ae2066f9afcb5891411f8dbb6b04f94ad297ebd4b8428db65681d
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.7-cp312-cp312-win_amd64.whl

Download URL biorazer-0.9.7-cp312-cp312-win_amd64.whl
Size 332.7 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
cebee32edec99163b85fdea1cb6918c939b5a16c95307fb820b0cdd8c9a2fefb
BLAKE2b-256 checksum
How to use checksums
ee59bba1169556578f379759d290c6329c733ca51323825fd95e5f8daed80b5e
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.7-cp312-cp312-musllinux_1_2_x86_64.whl

Download URL biorazer-0.9.7-cp312-cp312-musllinux_1_2_x86_64.whl
Size 764.9 kB
Tags CPython 3.12 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
fb171fe63243502fab562b6b78ea1d2e894eafb075292b7bc7df5fb2c23734cb
BLAKE2b-256 checksum
How to use checksums
895f4fb1d0a594aaf87edfc5ed397f3faee3dbab3f2c52e02c8b09c372337414
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.7-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL biorazer-0.9.7-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 766.4 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a56c01764eadf275fdbe4bbe27f28166429e7b05cdc09af29bba70599812dc99
BLAKE2b-256 checksum
How to use checksums
b01a33b7e861b2eba59cd50aea3aa9fd1614b96c07acf5cbba93ec91948295b3
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.7-cp312-cp312-macosx_11_0_arm64.whl

Download URL biorazer-0.9.7-cp312-cp312-macosx_11_0_arm64.whl
Size 338.5 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9ba2d2cfcea48888c58189627d4fb6103052354d00cba3810592b738ef7130fe
BLAKE2b-256 checksum
How to use checksums
48672b2b702745336fc0ce97c7482d72445b6676dac78f60b48e85b045efc096
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.7-cp312-cp312-macosx_10_13_x86_64.whl

Download URL biorazer-0.9.7-cp312-cp312-macosx_10_13_x86_64.whl
Size 338.3 kB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
9958879bd74deb73ea030001239825f8e7361edc48e72b9e86713a0329e28f52
BLAKE2b-256 checksum
How to use checksums
17e989c1b2d1c54d4cdcb13cc6160633e22e08f29272eb68f4d82235873ff0b1
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.7-cp311-cp311-win_amd64.whl

Download URL biorazer-0.9.7-cp311-cp311-win_amd64.whl
Size 331.9 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
d585c410ee4e8751f6f1ed61322abf348f98a2a90a3194d7625abdd8804e245c
BLAKE2b-256 checksum
How to use checksums
fbeda49f092bf385cc504a543a6de1e4b667c6f778ac7028b11436a8252cf64b
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.7-cp311-cp311-musllinux_1_2_x86_64.whl

Download URL biorazer-0.9.7-cp311-cp311-musllinux_1_2_x86_64.whl
Size 768.2 kB
Tags CPython 3.11 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
fffce3430813b26792af3b593ca02a3db3aa8ffc3b2282fa5137b440a16d9d3b
BLAKE2b-256 checksum
How to use checksums
689e1e82b095440c87a03640d4bbc47339bf6c1aed0dd5abf1bb55dcd1f2d085
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.7-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL biorazer-0.9.7-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 764.6 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
37bbd2f381ce1d52d46cef69ed54b9131fdf2b2131e4c42c4e54fc1205b7a642
BLAKE2b-256 checksum
How to use checksums
363db20231783a99f11463292d2dc8cbd98fbd2eb981f7a6885084b9625bf297
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.7-cp311-cp311-macosx_11_0_arm64.whl

Download URL biorazer-0.9.7-cp311-cp311-macosx_11_0_arm64.whl
Size 338.5 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
560ce4828761bfdc202375626e99e42b11b8fc62db9a4ae40f70b0c44daa4769
BLAKE2b-256 checksum
How to use checksums
ede6f47828ffcac531e073c705550225d75a08c17fd0b0e11ed1cdf856ed21c9
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.7-cp311-cp311-macosx_10_9_x86_64.whl

Download URL biorazer-0.9.7-cp311-cp311-macosx_10_9_x86_64.whl
Size 337.9 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
721c5bd9f381ae5fdc6c1b9c11f3c270bbe281724b0e9b681e3d8568d4622038
BLAKE2b-256 checksum
How to use checksums
46d70e35fecc0bab8c2b15f75b2e81dea502bbd45ce01e1d0901660331c52dec
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

This release

0.9.7 This release

11 release files

0.9.6

11 release files

0.9.5

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