Skip to main content

easydecon

Project description

Logo

PyPI version
A package to analyze celltypes on high definition spatial profiling assays

Installation

It is recommended to install the package in a virtual environment or a Conda environment. To create a Conda environment, run the following command:

conda create -n easydecon python=3.10.14
conda activate easydecon

You can install from PyPi:

pip install easydecon

To install directly from GitHub using pip into the active environment, run the following command:

pip install git+https://github.com/sinanugur/easydecon.git

Overview

Worfklow Overview

Absolute Minimal Example

from easydecon.easydecon import *
from easydecon.config import *
from easydecon.extra import *

#read your DESeq table into a markers_df
#sdata is your VisiumHD file in SpatialData format or segmented AnnData object, assumed you QC and etc.
markers_df=read_markers_dataframe(sdata,filename="scanpy_deseq_table.csv")

#run easydecon
ph1, ph2, assigned_labels, posterior_df, proportions_df= easydecon_workflow(sdata,markers_df=markers_df)

#or setting prior genes
ph1, ph2, assigned_labels, posterior_df, proportions_df= easydecon_workflow(sdata,markers_df=markers_df,marker_genes=["gene1","gene2","gene3"])

`assigned_labels` will be added to sdata.obs and contain the celltype assignments
`proportions_df` will contain the estimated proportions for each celltype

Usage and Documentation

You may find our example notebooks in the notebooks folder.

  • Demo notebook for a single-cell Anndata object (demo)[https://github.com/sinanugur/easydecon/blob/main/notebooks/demo.ipynb]
  • Demo notebook for macrophage markers (demo_macrophage)[https://github.com/sinanugur/easydecon/blob/main/notebooks/demo_macrophage.ipynb]
  • Minimal example notebook (minimal)[https://github.com/sinanugur/easydecon/blob/main/notebooks/demo_minimal_example.ipynb]

Segmentation Example

  • Segmentation with bin2cell example [https://github.com/sinanugur/easydecon/blob/main/notebooks/demo_bin2cell_minimal.ipynb]

Project details


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.3.tar.gz (1.4 MB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for easydecon-0.1.3.tar.gz
Algorithm Hash digest
SHA256 cc077402edffe56685a725034aef0945a3c42fe06613ddf3880d65f91cb33461
MD5 4e95ca5721873a9ddd54c84dc7e4116f
BLAKE2b-256 86a388d69854bc62b92984ae51f07bb073b20fc8149b3a7e367d195c7b165412

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page