Skip to content
@BiocPy

BiocPy

Facilitate Bioconductor Workflows in Python

BiocPy logo

BiocPy: Facilitate Bioconductor Workflows in Python

BiocPy is an effort to develop core data structures and representations from Bioconductor to Python. These structures, including BiocFrame and GenomicRanges, serve as essential and foundational data structures, acting as the building blocks for extensive and complex representations. For example, container classes like SummarizedExperiment, SingleCellExperiment, and MultiAssayExperiment represent single or multi-omic experimental data and metadata.

Note

Selected packages

For complete list of all packages, visit the GitHub:BiocPy repository.

Core Representations:

  • BiocFrame: Bioconductor-like data frames in Python. (GitHub, Docs)
  • IRanges: Python implementation of the IRanges package to support interval arithmetic. (GitHub, Docs)
  • GenomicRanges: Container class to represent genomic locations and support genomic analysis. (GitHub, Docs, BioC)
  • SummarizedExperiment: Container class to represent genomic experiments, following Bioconductor's SummarizedExperiment. (GitHub, Docs)
  • SingleCellExperiment: Container class to represent single-cell experiments; follows Bioconductor’s SingleCellExperiment. (GitHub, Docs)
  • MultiAssayExperiment: Container class to represent multiple experiments and assays performed over a set of samples, following Bioconductor's MAE R/Bioc Package. (GitHub, Docs)

Analysis Packages

  • scranpy: Python bindings to single-cell analysis methods from libscran and related C++ libraries. (GitHub, Docs)
  • singler: Python bindings to the singleR algorithm to annotate cell types from known references. (GitHub, Docs)

Interoperability with R

  • rds2py: Read RDS files directly in Python, supporting Bioconductor's SummarizedExperiment and SingleCellExperiment, in addition to matrices, data frames, and vectors. (GitHub, Docs)

Utility Packages

  • BiocUtils: Common utilities for use across packages, mostly to mimic convenient aspects of base R. (GitHub, Docs)
  • mopsy: Helper functions to perform row or column operations over numpy and scipy matrices, providing an interface similar to base R matrix methods/MatrixStats methods. (GitHub, Docs)
  • pyBiocFileCache: File system-based cache for resources & metadata. (GitHub, Docs)

Installation

All packages in the BiocPy ecosystem are published to PyPI. Use the biocpy wrapper to install the core packages:

pip install biocpy

Individual packages can also be installed separately. Refer to package's documentation for more details.


Interested in contributing? Check out the developer guide.

Pinned Loading

  1. rds2py rds2py Public

    Read RDS files, in Python

    Python 14 3

  2. SummarizedExperiment SummarizedExperiment Public

    Container class for genomic experiments

    Python 5 2

  3. DelayedArray DelayedArray Public

    DelayedArrays, in Python

    Python

  4. SingleCellExperiment SingleCellExperiment Public

    Container class for single-cell experiments

    Python 5 1

  5. GenomicRanges GenomicRanges Public

    Container class to represent genomic locations and support genomic analysis

    Python 17 4

  6. MultiAssayExperiment MultiAssayExperiment Public

    Container class to represent and manage multi-omics genomic experiments

    Python 5 1

Repositories

Showing 10 of 30 repositories
  • BiocPy/GenomicArrays’s past year of commit activity
    Python 0 MIT 0 0 1 Updated Oct 31, 2024
  • cellarr Public

    Store collections of experimental data based on TileDB

    BiocPy/cellarr’s past year of commit activity
    Python 2 MIT 1 6 1 Updated Oct 29, 2024
  • .github Public
    BiocPy/.github’s past year of commit activity
    0 0 0 0 Updated Oct 29, 2024
  • BiocUtils Public

    Miscellaneous utilities for BiocPy, mostly to mimic base functionality in R.

    BiocPy/BiocUtils’s past year of commit activity
    Python 0 MIT 0 1 1 Updated Oct 28, 2024
  • pyBiocFileCache Public

    Python implementation of the BiocFileCache R package

    BiocPy/pyBiocFileCache’s past year of commit activity
    Python 1 MIT 2 1 1 Updated Oct 28, 2024
  • scrnaseq Public

    Collection of public single-cell RNA-seq datasets

    BiocPy/scrnaseq’s past year of commit activity
    Python 1 MIT 0 0 1 Updated Oct 28, 2024
  • rds2py Public

    Read RDS files, in Python

    BiocPy/rds2py’s past year of commit activity
    Python 14 MIT 3 1 (1 issue needs help) 1 Updated Oct 28, 2024
  • mopsy Public

    Matrix operations

    BiocPy/mopsy’s past year of commit activity
    Python 0 MIT 1 0 1 Updated Oct 28, 2024
  • celldex Public

    Collection of reference cell type datasets

    BiocPy/celldex’s past year of commit activity
    Python 0 MIT 0 0 1 Updated Oct 28, 2024
  • TileDBArray Public

    TileDB backed delayed arrays for Python

    BiocPy/TileDBArray’s past year of commit activity
    Python 0 MIT 0 0 1 Updated Oct 28, 2024