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

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.6
File Size Uploaded
biorazer-0.9.6.tar.gz 185.6 kB Details

Built distributions (wheels)

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

Total release size: 6.5 MB

Release files / biorazer-0.9.6.tar.gz

Download URL biorazer-0.9.6.tar.gz
Size 185.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9205b724a963ec6568a80f647e79c77be8dd921258ae63e2c7bc34ecdb345f4d
BLAKE2b-256 checksum
How to use checksums
525a7fc5b4779e14faed1e7b9d2a0a4d9d03fae1f8e16081bdea2cbbe0f12b9f
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.6-cp312-cp312-win_amd64.whl

Download URL biorazer-0.9.6-cp312-cp312-win_amd64.whl
Size 411.7 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
32543163d8222c069d0c7916b4594ce7673113dcc0c80b276a220758a41cf8ff
BLAKE2b-256 checksum
How to use checksums
c246397eb2087f5f32e7948ad23a16fe752649139249548ade398fb9010ea46c
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.6-cp312-cp312-musllinux_1_2_x86_64.whl

Download URL biorazer-0.9.6-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
1921fa04c6b8022a4df927884fcffb016f58ec3b6fb3bb3b66b69cdb1e027668
BLAKE2b-256 checksum
How to use checksums
2f6d177c5c7050ec7d60ce60ce956f4676d05cbb01d527032d0bed822459907f
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.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL biorazer-0.9.6-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
5a5631c22734de68ded7be5752e77af23ea5d0ecc13b0204a5b8f93c9556d137
BLAKE2b-256 checksum
How to use checksums
99aa613d03761407af8edfac3613f42a8eb9eeeddb004d4b2fa2ec7ee8a6e3da
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.6-cp312-cp312-macosx_11_0_arm64.whl

Download URL biorazer-0.9.6-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
2619383ba5833b0b0ace1e6b4a41c2a3a10bd4025ae8c15c14694fe829656fc4
BLAKE2b-256 checksum
How to use checksums
9c7bb8231d306b7704ed0dc661851ee9d4020b899d97d1eb49fbc0aef44a3a43
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.6-cp312-cp312-macosx_10_13_x86_64.whl

Download URL biorazer-0.9.6-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
4910ffdd12eb6c5233e125a63f377009e1753b254adbe8f1a5b4156c0b26fa38
BLAKE2b-256 checksum
How to use checksums
3587f713bc80e75108b0321ead6ec53e794f1ea15203b2e22e9fd5eb86738821
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.6-cp311-cp311-win_amd64.whl

Download URL biorazer-0.9.6-cp311-cp311-win_amd64.whl
Size 331.4 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
b95e086145b769b052d603aae2ab9a705d6a6579a181f3b517c1faa5f0dadfa4
BLAKE2b-256 checksum
How to use checksums
c3e62f2ebf04eb2bdb5bdd4f0b3929e73be81f7098038f1c402f3910cf71e704
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.6-cp311-cp311-musllinux_1_2_x86_64.whl

Download URL biorazer-0.9.6-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
4f78fb9e7ed112c640e658bdb75c701b523e5a37bc858e91185b25d688ff6e59
BLAKE2b-256 checksum
How to use checksums
93030fab8f4a09c60782f7c8deb66b7a11f100a0dab9eca298467eb8352aaaa6
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.6-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL biorazer-0.9.6-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
ea4d084e3b3702b148c11d1e445703dc170455a4af1402482834d31bb44a9612
BLAKE2b-256 checksum
How to use checksums
5dc2b155def89ecad8d7f82f88c3ab016f7adfa1da2b59dc48826d965f8e3b40
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.6-cp311-cp311-macosx_11_0_arm64.whl

Download URL biorazer-0.9.6-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
f635e47ce606f937c8febd3d35df2b69e906fc9a4be81654fdfe3b700a79a5d3
BLAKE2b-256 checksum
How to use checksums
fd0b3e7ad2b3095d76667e138b3ade08f776be3d7ab702ede4ea82937847b86d
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.6-cp311-cp311-macosx_10_9_x86_64.whl

Download URL biorazer-0.9.6-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
e52cc5df8dbfcb301cfa93a1cfeb635d90639b94b8e80d1df0c4640f47fb3a40
BLAKE2b-256 checksum
How to use checksums
3d1effe8635474485c811ca6357b45471ce5802be055ef52be2637b1a91d855a
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

This release

0.9.6 This release

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