DiDeoxy / SingleCellExperiment

Container class for single-cell experiments

Home Page:https://biocpy.github.io/SingleCellExperiment/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project generated with PyScaffold PyPI-Server Unit tests

SingleCellExperiment

Container class to represent single-cell experiments; follows Bioconductor's SingleCellExperiment.

Install

Package is published to PyPI

pip install singlecellexperiment

Usage

Readers are available to read AnnData, H5AD or 10x (MTX, H5) V3 formats as SingleCellExperiment objects.

import singlecellexperiment

sce = singlecellexperiment.read_h5ad("tests/data/adata.h5ad")

OR construct one from scratch

from singlecellexperiment import SingleCellExperiment

tse = SingleCellExperiment(
    assays={"counts": counts}, row_data=df_gr, col_data=col_data,
    reduced_dims={"tsne": ..., "umap": ...}, alternative_experiments={"atac": ...}
)

Since SingleCellExperiment extends SummarizedExperiment, most methods especially slicing and accessors are applicable here. Checkout the documentation for more info.

Note

This project has been set up using PyScaffold 4.5. For details and usage information on PyScaffold see https://pyscaffold.org/.

About

Container class for single-cell experiments

https://biocpy.github.io/SingleCellExperiment/

License:MIT License


Languages

Language:Python 100.0%