Container class for single-cell experiments
Project description
SingleCellExperiment
This package provides container class to represent single-cell experimental data as 2-dimensional matrices. In these matrices, the rows typically denote features or genomic regions of interest, while columns represent cells. In addition, a SingleCellExperiment (SCE) object may contain low-dimensionality embeddings, alternative experiments performed on same sample or set of cells. Follows Bioconductor's SingleCellExperiment.
Install
To get started, install the package from PyPI
pip install singlecellexperiment
Usage
The SingleCellExperiment extends RangedSummarizedExperiment and contains additional attributes:
reduced_dims: Slot for low-dimensionality embeddings for each cell.alternative_experiments: Manages multi-modal experiments performed on the same sample or set of cells.row_pairsorcolumn_pairs: Stores relationships between features or cells.
Readers are available to parse h5ad or AnnData objects to SCE:
import singlecellexperiment
sce = singlecellexperiment.read_h5ad("tests/data/adata.h5ad")
## output
class: SingleCellExperiment
dimensions: (20, 30)
assays(3): ['array', 'sparse', 'X']
row_data columns(5): ['var_cat', 'cat_ordered', 'int64', 'float64', 'uint8']
row_names(0):
column_data columns(5): ['obs_cat', 'cat_ordered', 'int64', 'float64', 'uint8']
column_names(0):
main_experiment_name:
reduced_dims(0): []
alternative_experiments(0): []
row_pairs(0): []
column_pairs(0): []
metadata(2): O_recarray nested
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 RangedSummarizedExperiment, most methods especially slicing and accessors are inherited from the parent classes.
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/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file singlecellexperiment-0.6.1.tar.gz.
File metadata
- Download URL: singlecellexperiment-0.6.1.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a1312d425f034f02c0a6b098527eb0e090920667d47d3e5620cf009b77d5117
|
|
| MD5 |
9ef2839088f60a4cb2a49a0ba79994fa
|
|
| BLAKE2b-256 |
dfaf1b8fc5bc3e267ad7185bacd92646b686483e5a39e6d47a703be207455b43
|
Provenance
The following attestation bundles were made for singlecellexperiment-0.6.1.tar.gz:
Publisher:
publish-pypi.yml on BiocPy/SingleCellExperiment
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
singlecellexperiment-0.6.1.tar.gz -
Subject digest:
9a1312d425f034f02c0a6b098527eb0e090920667d47d3e5620cf009b77d5117 - Sigstore transparency entry: 790258230
- Sigstore integration time:
-
Permalink:
BiocPy/SingleCellExperiment@5116d379890e0d22923163e8cc430ca0721c72b6 -
Branch / Tag:
refs/tags/0.6.1 - Owner: https://github.com/BiocPy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@5116d379890e0d22923163e8cc430ca0721c72b6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file singlecellexperiment-0.6.1-py3-none-any.whl.
File metadata
- Download URL: singlecellexperiment-0.6.1-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
629ab317bad9a5bda37c849dd76ed2278eb451ad6cf1caa9d0bdeb2722b3531a
|
|
| MD5 |
117855a386a26c02be408f194d1b9ccd
|
|
| BLAKE2b-256 |
5ce694a0d9e0022fe4e13b069164412ea9e87ae2bee03ca910dbb494586f8890
|
Provenance
The following attestation bundles were made for singlecellexperiment-0.6.1-py3-none-any.whl:
Publisher:
publish-pypi.yml on BiocPy/SingleCellExperiment
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
singlecellexperiment-0.6.1-py3-none-any.whl -
Subject digest:
629ab317bad9a5bda37c849dd76ed2278eb451ad6cf1caa9d0bdeb2722b3531a - Sigstore transparency entry: 790258231
- Sigstore integration time:
-
Permalink:
BiocPy/SingleCellExperiment@5116d379890e0d22923163e8cc430ca0721c72b6 -
Branch / Tag:
refs/tags/0.6.1 - Owner: https://github.com/BiocPy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@5116d379890e0d22923163e8cc430ca0721c72b6 -
Trigger Event:
push
-
Statement type: