Skip to main content

pybio: basic genomics toolset

pybio is a comprehensive Python framework designed to streamline genomics operations. It offers a direct interface to Ensembl genome assemblies and annotations, while also accommodating custom genomes via FASTA/GTF inputs. The primary objective of pybio is to simplify genome management. It achieves this by providing automatic download of Ensembl genome assemblies and annotation, provides Python genomic feature search and sequence retrieval from the managed genomes, STAR indexing and mapping and more.

Quick Start

Install and download + prepare human genome:

# Option 1: install over PyPi
pip install pybio

# Option 2: install from this repository
pip install git+https://github.com/grexor/pybio.git@master

# Option 3: use over singularity / apptainer / Docker (only if you don't need python imports)
singularity run docker://ghcr.io/grexor/pybio:master pybio

# Download and process homo sapiens genome
pybio genome homo_sapiens

Search genome features (exons, transcripts, genes) from Python:

import pybio
result = pybio.core.genomes.annotate("homo_sapiens", "1", "+", 11012344)
genes, transcripts, exons, UTR5, UTR3 = result

Retrieve genomic sequences from Python:

import pybio
seq = pybio.core.genomes.seq("homo_sapiens", "1", "+", 450000, -20, 20)

Check documentation for more examples.

Documentation

Authors

pybio is developed and supported by Gregor Rot.

Issues and Suggestions

Use the issues page to report issues and leave suggestions.

Change log

0.8.4: 28 October 2025

  • moved os.system to subprocess
  • fixed direct calling of python3 to sys.executable

0.8: May 2025

  • aimux: added short-read paired end sequencing demultiplexing tool

0.7: February 2025

  • alignIntronMax for STAR
  • other small fixes

v0.6.3: December 2024

  • updated setup.py to use an entry point instead of a script
  • removed pybio scripts

v0.6: November 2024

  • updated Ensembl search and genome versioning offline
  • updated custom genome interface

v0.5: May 2024

  • refreshed Ensembl (112) and Ensembl Genomes (58) database

v0.4: April 2024

  • refreshed Ensembl (111) and Ensembl Genomes (58) database

v0.3.12: released in November 2023

  • updated docs

Citation

If you are using pybio in your research, please cite:

Rot, G., Wehling, A., Schmucki, R., Berntenis, N., Zhang, J. D., & Ebeling, M. (2024)
splicekit : an integrative toolkit for splicing analysis from short-read RNA-seq
Bioinformatics Advances, 4(1). https://doi.org/10.1093/bioadv/vbae121

Metadata

Release files for pybio 0.8.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 pybio 0.8.7
File Size Uploaded
pybio-0.8.7.tar.gz 426.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pybio 0.8.7
File Interpreter ABI Platform
pybio-0.8.7-py3-none-any.whl Python 3 none any Details

Total release size: 470.6 kB

Release files / pybio-0.8.7.tar.gz

Download URL pybio-0.8.7.tar.gz
Size 426.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b50bfc39fd31b6676236e20df2cd0022764d67f13c16b1746be8e8b5b68a804d
BLAKE2b-256 checksum
How to use checksums
57e040b3d124732541f3d871825b207c4ae54c8614bbed067803dab691beed48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / pybio-0.8.7-py3-none-any.whl

Download URL pybio-0.8.7-py3-none-any.whl
Size 44.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bcca9ed79c6a7ca9e72d687e9e129525efe8522958dfb29605eb9790cc6e5cfc
BLAKE2b-256 checksum
How to use checksums
d9462579c930c079ba85b2d4d506b5c38d73461b920f1934d1c085d8f719225d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release history Release notifications | RSS feed

0.8.8

2 release files

This release

0.8.7 This release

2 release files

0.8.6

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8

2 release files

0.7

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6

2 release files

0.5

2 release files

0.3.13

2 release files

0.3.12

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 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