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.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 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/.
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
Close
Hashes for SingleCellExperiment-0.4.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62855f6ce42287b48d54143750ec20500467f9ca02bd269a61de8559d0074d36 |
|
MD5 | c86ee2fcaa1ebf68bf5a2ea4a6117cb6 |
|
BLAKE2b-256 | 2586bb5c68bf674bff2059090bcced08f9ac12256f78e259579783fc92e7904c |
Close
Hashes for SingleCellExperiment-0.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7abb9b14eed54a5b4c3b2030d772d8416e0e235fd67271256fe5ebb9bea822bf |
|
MD5 | 17a0f43e414f862cb1d8aa1f0869d8ac |
|
BLAKE2b-256 | 81668d1ebb369e1cd63ca795ab22b66a1080832239fadce127623561b42a4877 |