easydecon
easydecon uses marker genes to deconvolve and assign cell types in spatial transcriptomics data.
Installation
python -m pip install easydecon
For development and testing:
python -m pip install -e ".[test]"
Optional extras:
python -m pip install -e ".[spatial]" # SpatialData support
python -m pip install -e ".[deseq]" # pseudobulk PyDESeq2 markers
python -m pip install -e ".[docs]" # build the documentation
Quickstart
Start with a spatial AnnData table (or a SpatialData object) and a CSV or
Excel marker file. The file needs group and names columns: group is the
cell type and names is the marker gene. Gene names in the file must match
the spatial table's var_names.
import easydecon as ed
result = ed.run_easydecon(
sdata=sdata,
filename="markers.csv",
return_result_object=True,
verbose=False,
)
print(result.posterior_df.head())
print(result.assigned_labels.head())
print(result.diagnostics)
posterior_df shows the relative support for each tested cell type. It is not
necessarily an absolute cell-fraction estimate. assigned_labels gives a
single label per location, so it does not retain that uncertainty. Review the
diagnostics before using the assignments downstream.
Documentation
Begin with docs/index.rst. Useful guides include:
Metadata
Release files for easydecon 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| easydecon-0.1.7.tar.gz | 1.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| easydecon-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.6 MB
Release files / easydecon-0.1.7.tar.gz
| Download URL | easydecon-0.1.7.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e288bb373ad9313ee7c1166a93a44c6f97516a1fc27c20d7f167a269488fa41f
|
|
BLAKE2b-256 checksum How to use checksums |
5df45586adf44d5a2045dbaf13ad9dc154931cf63d306ddd622c7ddb032cb02a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.7
|
Release files / easydecon-0.1.7-py3-none-any.whl
| Download URL | easydecon-0.1.7-py3-none-any.whl |
|---|---|
| Size | 98.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a744d4ad50df26504e98de53171ea90a3c108e539640afc7320fae3076c76350
|
|
BLAKE2b-256 checksum How to use checksums |
68f9cee60cbb841cc9a76c47029cc0b99f3bbc42c53cb3c6b8b52ee358ada257
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.7
|