Skip to content

Latest commit

 

History

History
125 lines (95 loc) · 15.7 KB

File metadata and controls

125 lines (95 loc) · 15.7 KB
graph LR
    Data_Management_Preprocessing["Data Management & Preprocessing"]
    DeepSpot_Models["DeepSpot Models"]
    Loss_Functions["Loss Functions"]
    Image_Processing_Module["Image Processing Module"]
    Core_Utilities["Core Utilities"]
    Data_Management_Preprocessing -- "provides data to" --> DeepSpot_Models
    DeepSpot_Models -- "uses" --> Loss_Functions
    DeepSpot_Models -- "utilizes" --> Core_Utilities
    Data_Management_Preprocessing -- "utilizes" --> Core_Utilities
    Image_Processing_Module -- "utilizes" --> Data_Management_Preprocessing
    Image_Processing_Module -- "provides predictions for" --> DeepSpot_Models
    click Data_Management_Preprocessing href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/DeepSpot/Data Management & Preprocessing.md" "Details"
    click DeepSpot_Models href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/DeepSpot/DeepSpot Models.md" "Details"
    click Loss_Functions href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/DeepSpot/Loss Functions.md" "Details"
    click Image_Processing_Module href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/DeepSpot/Image Processing Module.md" "Details"
    click Core_Utilities href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/DeepSpot/Core Utilities.md" "Details"
Loading

CodeBoardingDemoContact

Component Details

The DeepSpot project is designed for spatial transcriptomics analysis, focusing on both cell and spot level predictions from image data. The main flow involves loading and preprocessing spatial transcriptomics data and image features, feeding this data into specialized neural network models (DeepCell and DeepSpot), training these models using various loss functions, and finally, using the trained models to predict spatial transcriptomics from new image inputs. Utility modules support data handling, image processing, and general system functionalities.

Data Management & Preprocessing

This component is responsible for loading, preprocessing, and batching both cell-specific and spot-specific spatial transcriptomics data and corresponding image features. It handles tasks such as spatial upsampling, smoothing, normalization, balancing indices, and computing neighbor contexts for the DeepSpot models.

Related Classes/Methods:

DeepSpot Models

This component encapsulates the core neural network architectures for both cell and spot prediction (DeepCell and DeepSpot models). It defines their structures, handles the forward passes for individual entities and their neighbors, and manages the training and validation lifecycles, including functionalities for visualizing training progress.

Related Classes/Methods:

Loss Functions

This component provides a comprehensive suite of loss functions tailored for training both the DeepCell and DeepSpot models. These functions combine various metrics such as Mean Squared Error (MSE), Pearson correlation, L1, Huber, and Cosine similarity to accurately evaluate model predictions against ground truth.

Related Classes/Methods:

Image Processing Module

This component provides utility functions specifically for image manipulation and processing, particularly for generating spatial transcriptomics predictions from raw image paths. It includes functionalities for obtaining morphology models, cropping and computing mini-tiles, and handling data format conversions necessary for model inference.

Related Classes/Methods:

Core Utilities

This component contains general-purpose helper functions that are not specific to data loading or image processing. Its primary responsibility is to provide common helper functionalities, such as fixing random seeds for reproducibility across the entire system.

Related Classes/Methods: