Skip to main content

Supervised Spatial Single-Cell Image Analysis for identification of disease associated cell type composition in the tissue microenvironment

Project description

S3-CIMA

Supervised Spatial Single-Cell Image Analysis for identification of disease associated cell type composition in the tissue microenvironment

alt text

S3-CIMA implements a weakly supervised CNN model to identify cell subsets whose frequency distinguishes the considered phenotype labels (i.e., disease associated conditions). The model is adopted from the CellCNN model (Arvaniti and Claassen, 2017), comprising a single layer CNN, a pooling layer and a classification or regression output, and using groups of cell expression profiles (multi-cell inputs) as input.

Installation

S3-CIMA is available on PyPI and can be installed using the command:

pip install s3cima

If this does not work, you can clone the repo :

git clone https://github.com/claassenlab/S3-CIMA.git

and run the functions in a conda environment with the following packages :

conda create --name sc3cima 
conda activate s3cima
conda install python=3.11 numpy pandas scipy pytorch scikit-learn tqdm matplotlib plotly

Usage

Examples are provided in cima_example.ipynb. Further guidance and documentation to be added soon.

run_scima log file

The model training parameters and outputs is written in a log file including:

• Important parameters such as K, ncell and anchor celltype

• Balanced accuracy score on the train/validation/test set

plot_results output:

Plotting not yet added ! Will be done very soon.

Citation

If you use S3-CIMA in your research, please cite our paper:

Sepideh Babaei, Jonathan Christ, Vivek Sehra, Ahmad Makky, Mohammed Zidane, Kilian Wistuba-Hamprecht, Christian M. Schürch, Manfred Claassen, S3-CIMA: Supervised spatial single-cell image analysis for identifying disease-associated cell-type compositions in tissue, Patterns, Volume 4, Issue 9, 2023, 100829, ISSN 2666-3899, https://doi.org/10.1016/j.patter.2023.100829.

License

S3-CIMA is released under the MIT License. See the LICENSE file for more details.

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

s3cima-0.1.14.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

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

s3cima-0.1.14-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

Details for the file s3cima-0.1.14.tar.gz.

File metadata

  • Download URL: s3cima-0.1.14.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.3 Darwin/25.3.0

File hashes

Hashes for s3cima-0.1.14.tar.gz
Algorithm Hash digest
SHA256 ed6c433a069fb9ef8fb3e362ac92f902b16b7bae3d8195f1ec19363df5a4af69
MD5 4f4292b3c7b22f9f13280e8e67020e8b
BLAKE2b-256 a9c517676764d8b66ef0f971bf8659956dfdac6d645a08be93fa4a6b2f4de873

See more details on using hashes here.

File details

Details for the file s3cima-0.1.14-py3-none-any.whl.

File metadata

  • Download URL: s3cima-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 29.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.3 Darwin/25.3.0

File hashes

Hashes for s3cima-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 9f91ab862a5d69d4be332638edd0cfebe83ad81c4e1e31249e51cc744566bf90
MD5 f2a21d3764d5637b987fefb6be4bbe03
BLAKE2b-256 5d128c3c9cb0b360bd5f76b21fa2b6b327387eca11371dee09a912cc717b7899

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