Skip to main content

pybio genomics

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybio-0.8.6.tar.gz (425.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pybio-0.8.6-py3-none-any.whl (43.7 kB view details)

Uploaded Python 3

File details

Details for the file pybio-0.8.6.tar.gz.

File metadata

  • Download URL: pybio-0.8.6.tar.gz
  • Upload date:
  • Size: 425.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for pybio-0.8.6.tar.gz
Algorithm Hash digest
SHA256 5fcbc15932a1e002a778ee3a8775b3e577a18b7241f98357cf1c7f01e9158f4b
MD5 9a6d38b0a3fd03de1695d4d6cc4c2736
BLAKE2b-256 befa5fa8e6852d27b9c703a9ee2ed4d6623b96610032d4bc4343e5eec96e8f29

See more details on using hashes here.

File details

Details for the file pybio-0.8.6-py3-none-any.whl.

File metadata

  • Download URL: pybio-0.8.6-py3-none-any.whl
  • Upload date:
  • Size: 43.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for pybio-0.8.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c05ded17beded3657f9d5636284463ccb2cde99d502232da95e6c12cf5ade897
MD5 6509b8130b3edeb410857479300447d1
BLAKE2b-256 e91f0d21d6c084a608cf0b9230174f79901856ab82b2864c8fd30aa8bb1d3d87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page