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.

Usage

Examples are provided in S3CIMA_example.ipynb. Further guidance to be added soon.

run_scima log file

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

• Best model validation accuracy

• std of validation accuracies across models

• multi-cell inputs size

• Accuracy score on the test set

• Anchor

• nset which is the number of anchor cell in each image.

plot_results output:

• clustered_filter_weights.pdf:

Filter weight vectors from all trained networks that pass a validation accuracy threshold, grouped in clusters via hierarchical clustering. Each row corresponds to a filter. The last column(s) indicate the weight(s) connecting each filter to the output class(es). Indices on the y-axis indicate the filter cluster memberships, as a result of the hierarchical clustering procedure. This plot generates from the CellCNN model.

• consensus_filter_weights.pdf : One representative filter per cluster is chosen (the filter with minimum distance to all other members of the cluster). This plot generates from the CellCNN model.

• best_net_weights.pdf :

Filter weight vectors of the network that achieved the highest validation accuracy. This plot generates from the CellCNN model.

• filter_response_differences.pdf :

Difference in cell filter response between classes for each consensus filter. To compute this difference for a filter, we first choose a filter-specific class, that's the class with highest output weight connection to the filter. Then we compute the average cell filter response (value after the pooling layer) for validation samples belonging to the filter-specific class (v1) and the average cell filter response for validation samples not belonging to the filter-specific class (v0). The difference is computed as v1 - v0. For regression problems, we cannot compute a difference between classes. Instead we compute Kendall's rank correlation coefficient between the predictions of each individual filter (value after the pooling layer) and the true response values. This plot helps decide on a cutoff (filter_diff_thres parameter) for selecting discriminative filters. This plot generates from the CellCNN model.

• cdf_filter_i.pdf :

Cumulative distribution function of cell filter response for filter i. This plot helps decide on a cutoff (filter_response_thres parameter) for selecting the responding cell population. This plot generates from the CellCNN model.

• g.txt

A one-column text File indicating the corresponding filter response for each cell of the input data.

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.6.tar.gz (19.3 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.6-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: s3cima-0.1.6.tar.gz
  • Upload date:
  • Size: 19.3 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.6.tar.gz
Algorithm Hash digest
SHA256 0d49e938c9c4a3b0610834abbc9a8e567c3531d1d6591916cbd94f6c2c10a04c
MD5 56cb2d3cefea97ace9c23b0f61611444
BLAKE2b-256 524b2cb80ed5405769d9b479c9eb4a842388aeaadbf6f0e4639bb694ac780b59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: s3cima-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 20.2 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e53e8d69c76bc473255f24c0cda8c5aaa6039d71f73d39a702128979a2fd26ff
MD5 9d50d2bf62bc5b25ade265a69d84fc61
BLAKE2b-256 1b77bc9d090373198ce11c7c34b0ef455c7044cdc1bbeccf6b0b0ef769270ff6

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