Skip to main content

Container class for single-cell experiments

Project description

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.readH5AD("tests/data/adata.h5ad")

OR construct one from scratch

from singlecellexperiment import SingleCellExperiment

tse = SingleCellExperiment(
    assays={"counts": counts}, rowData=df_gr, colData=colData,
    reducedDims={"tsne": ..., "umap": ...}, altExps={"atac": ...}
)

SingleCellExperiment extends SummarizedExperiment, so most methods from there are applicable here. checkout the documentation.

Note

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

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

SingleCellExperiment-0.2.2.tar.gz (1.1 MB view hashes)

Uploaded Source

Built Distribution

SingleCellExperiment-0.2.2-py3-none-any.whl (8.4 kB view hashes)

Uploaded Python 3

Supported by

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