Skip to main content

STIFMaps predicts the local stiffness of breast tissue using the morphology of collagen

Project description

Spatially Transformed Inferential Force Maps (STIFMaps)

Contents

-Overview
-Repo Contents
-System Requirements
-Installation Guide
-Reproducing Manuscript Results
-License
-Contact

Overview

Code from the manuscript: "STIFMap employs a convolutional neural network to reveal spatial mechanical heterogeneity and tension-dependent activation of an epithelial to mesenchymal transition within human breast cancers"

Repo Contents

-env.yml: yml file for creating the conda environment to run the STIFMaps code out of a Jupyter notebook
-network_training.ipynb: Jupyter notebook for training the model presented in the manuscript
-stiffnesses.csv: The table of positional stiffness values used for model training
-STIFMaps.ipynb: Jupyter notebook for creating STIFMaps out of an input image using trained networks

Additional data is available via https://data.mendeley.com/datasets/vw2bb5jy99/2
-raw_squares: The images used for training the neural networks
-trained_models: The completed, trained models for use with STIFMaps.ipynb to predict elasticity values on an unknown tissue
-output: Statistics regarding the training and accuracy for the trained models

System Requirements

'STIFMaps' should run on any standard computer capable of running Jupyter and PyTorch, though 16 GB of RAM is required to enable CUDA optimization. Note that the computer must have enough RAM to support in-memory operations and the extent of memory usage depends on the size of the image that the user is trying to characterize using 'STIFMaps'. Within 'STIFMaps.ipynb', the user may downsample the image prior to stiffness predictions to reduce memory consumption.

Typical install time to create the conda environment is about 15 minutes. The runtime to reproduce the network training should take several hours. These runtimes were generated using a linux computer with 64 GB of RAM, 16 cores@3.60 GHz, and running Ubuntu 18.04.

Installation Guide

To generate STIFMaps, create a virtual environment using the 'env.yml' file. Then, refer to the Jupyter notebook 'STIFMaps.ipynb' to create STIFMaps using paired GFP and DAPI images. Additional staining images may optionally be included to evaluate the overlap between stain intensity and STIFMaps.

Reproducing Manuscript Results

To reproduce manuscript results, the Jupyter notebook used for building the neural networks is available via 'network_training.ipynb'. As inputs, the Jupyter notebook needs the elasticity values contained in 'stiffnesses.csv' as well as the image files available at data.mendeley.com with reserved DOI: 10.17632/vw2bb5jy99.2

25 completed models are available at https://data.mendeley.com/datasets/vw2bb5jy99/2 via 'trained_models' and output plots can be found in the 'output' directory.

License

This project is covered under the MIT License.

Contact

Please direct any questions to cstashko@berkeley.edu

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

stifmaps-0.0.7.tar.gz (9.2 MB view details)

Uploaded Source

Built Distribution

stifmaps-0.0.7-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file stifmaps-0.0.7.tar.gz.

File metadata

  • Download URL: stifmaps-0.0.7.tar.gz
  • Upload date:
  • Size: 9.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for stifmaps-0.0.7.tar.gz
Algorithm Hash digest
SHA256 360e055743417b8724c38b4abc02771cdd2f1943f951180e299f3198aa68e03e
MD5 16c61eadfe9a364f1bb09784b38df5c1
BLAKE2b-256 6e6c709c8a61d6c36441896e099f90137a685d72186147febca68479f21ab55e

See more details on using hashes here.

File details

Details for the file stifmaps-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: stifmaps-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for stifmaps-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 74edbde8c2f49346859617599a5c0d65780bc68263a87e875fcc0993a50e0dec
MD5 9aa86ddf96f7ce79bdc1ec6ef6d26f15
BLAKE2b-256 d30e3d5d76ced6b318e9f4a2c538258f401ea0af5b5123232c901697aa6091be

See more details on using hashes here.

Supported by

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