Save and write SingleCellExperiments in Python
Introduction
The dolomite-sce package is the Python counterpart to the alabaster.sce R package,
providing methods for saving/reading SingleCellExperiment objects within the dolomite framework.
Quick start
Let's mock up a SingleCellExperiment that contains reduced dimensions and alternative experiments,
from singlecellexperiment import SingleCellExperiment
import biocframe
import numpy
sce = SingleCellExperiment(
assays={"counts": numpy.random.rand(1000, 200)},
row_data=biocframe.BiocFrame(
{"foo": numpy.random.rand(1000), "bar": numpy.random.rand(1000)}
),
column_data=biocframe.BiocFrame(
{"whee": numpy.random.rand(200), "stuff": numpy.random.rand(200)}
),
reduced_dims={"tsnooch": numpy.random.rand(200, 4)},
alternative_experiments={
"very_useful_modality": SummarizedExperiment(
{"counts": numpy.random.rand(100, 200)}
)
},
)
Now we can save it:
from dolomite_base import save_object
import dolomite_sce
import os
from tempfile import mkdtemp
path = os.path.join(mkdtemp(), "test")
save_object(se, path)
And load it again, e,g., in a new session:
from dolomite_base import read_object
roundtrip = read_object(path)
## Class SingleCellExperiment with 1000 features and 200 cells
## assays: ['counts']
## row_data: ['foo']
## column_data: ['whee']
Metadata
Release files for dolomite-sce 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| dolomite_sce-0.3.0.tar.gz | 22.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dolomite_sce-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.9 kB
Release files / dolomite_sce-0.3.0.tar.gz
| Download URL | dolomite_sce-0.3.0.tar.gz |
|---|---|
| Size | 22.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0ea6bac61def80be194ad79c73f1fd2f6d0dc6dc732880ca5508550be7b74a8
|
|
BLAKE2b-256 checksum How to use checksums |
b5e897bb932fd43c87902ccbee6b265d426b1c475197b9f0d3c5d6d48782e040
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / dolomite_sce-0.3.0-py3-none-any.whl
| Download URL | dolomite_sce-0.3.0-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2ef604454546f71c7a3440b5034bf947800fa472e1c4b4b42e540e03c0c93cb
|
|
BLAKE2b-256 checksum How to use checksums |
ac7f88e56d9aa30b1528d445db17b4571f7df29378522caa4e65a4c66d0082f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for dolomite-sce 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.