gankLei-X / dc-DeepMSI

Divide-and-conquer: a flexible deep learning strategy for exploring metabolic heterogeneity from mass spectrometry imaging data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dc-DeepMSI

dc-DeepMSI provides a deep learning-based method to identify underlying metabolic heterogeneity from high-dimensional mass spectrometry imaging data. Developer is Lei Guo from Laboratory of Biomedical Network, Department of Electronic Science, Xiamen University of China.

Overview of dc-DeepMSI


Architecture of dc-DeepMSI model. The upper half part is dimensionality reduction module which reduces a high-dimensional MSI data to a low-dimensional feature map. The dimension reduction module is implemented by an autoencoder which consists of two fully connection layers in both encoder and decoder blocks. The lower half part is feature clustering module which is consisted of two CNN networks and two ensemble CNN networks. Each CNN network consists of a feature extraction (FE) block and an argmax classification. The cluster label from one ensemble CNN network is feed into its counterpart CNN network by loss function to stabilize the segmentation result. When dc-DeepMSI reaches convergence, the four CNN networks will also converge to a similar cluster label.

Requirement

python == 3.5, 3.6 or 3.7

pytorch == 1.8.2

opencv == 4.5.3

matplotlib == 2.2.2

numpy >= 1.8.0

umap == 0.5.1

Quick start

Input

  • The input is the preprocessed MSI data with two-dimensional shape [X*Y,P], where X and Y represent the pixel numbers of horizontal and vertical coordinates of MSI data, and P represents the number of ions.

Run dc-DeepMSI model

If you want to perfrom dc-DeepMSI model with "spat-contig" mode, taking fetus mouse data as an example, run:

python run.py --input_file ./data/fetus_mouse_data.txt --input_shape 202 107 1237 --mode spat-contig --output_file output

If you want to perfrom dc-DeepMSI model with "spat-spor" mode, taking fetus mouse data as an example, run:

python run.py --input_file ./data/fetus_mouse_data.txt --input_shape 202 107 1237 --mode spat-spor --output_file output

Contact

Please contact me if you have any help: gl5121405@gmail.com

About

Divide-and-conquer: a flexible deep learning strategy for exploring metabolic heterogeneity from mass spectrometry imaging data


Languages

Language:Python 100.0%