Skip to main content
easydecon logo

PyPI version

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:

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easydecon-0.1.7.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

easydecon-0.1.7-py3-none-any.whl (98.8 kB view details)

Uploaded Python 3

File details

Details for the file easydecon-0.1.7.tar.gz.

File metadata

  • Download URL: easydecon-0.1.7.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for easydecon-0.1.7.tar.gz
Algorithm Hash digest
SHA256 e288bb373ad9313ee7c1166a93a44c6f97516a1fc27c20d7f167a269488fa41f
MD5 b4a75b30154ab7d3303dc0301e31d47d
BLAKE2b-256 5df45586adf44d5a2045dbaf13ad9dc154931cf63d306ddd622c7ddb032cb02a

See more details on using hashes here.

File details

Details for the file easydecon-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: easydecon-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 98.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for easydecon-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a744d4ad50df26504e98de53171ea90a3c108e539640afc7320fae3076c76350
MD5 ceacf7748935258af9b3acddf99080b7
BLAKE2b-256 68f9cee60cbb841cc9a76c47029cc0b99f3bbc42c53cb3c6b8b52ee358ada257

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 files

0.1.3

1 file

0.1.2

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page