Skip to content

ruijunfeng/A-knowledge-integrated-deep-learning-framework-for-cellular-image-analysis-in-parasite-microbiology

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A knowledge-integrated deep learning framework for cellular image analysis in microbiology: specialized for parasite classification, detection, and out-of-focus reconstruction

This repository includes Python codes and datasets used in our paper. A detailed description of how to use this repository is provided in our paper, for review purposes, the preview version of this paper is not available right now. These codes are based on the previous publications of our group, including three different tasks: classification (DCTL), detection (GFS-ExtremeNet), and reconstruction (COMI). All the codes have been refactored and abundant code comments for better readability, it is recommended to use this repository instead of the original one. The corresponding datasets for these codes are available at https://www.scidb.cn/anonymous/bWUyMm15.

Dependencies

To run the codes, install the Anaconda and create the virtual environment using the following command, if you are using a GPU then use the command 1 to create a GPU-compatible virtual environment, otherwise, use command 2:

  1. conda create -n microscopy_image_analysis cudatoolkit=10.0.130 cudnn=7.6.5 python=3.7.16
  2. conda create -n microscopy_image_analysis python=3.7.16

After installing the needed virtual environment, the next step is to set up the package dependencies. Simply open the command prompt under the previously installed virtual environment and use the "pip install packagename==version" to install the needed package. For example, if you want to install pandas with a version of 1.3.5, you should use this command: "pip install pandas==1.3.5". For pytorch and torchvision, it is recommended to use the command provided by the official website. The following are the needed packages:

File Structure

To run this repository, it is important to keep an identical file structure for each template as follows, the pretrained models used in COMI are available at (https://drive.google.com/drive/folders/13R9fZ45IyPdJrq-ATHatPc_j_977qsT3?usp=sharing):

DCTL          GFS-ExtremeNet    COMI
├─checkpoints ├─checkpoints     ├─dataset
├─dataset     ├─config          │  └─BPAEC
│  ├─X        ├─dataset         │      ├─actin
│  └─Y        │  ├─Babesia      │      ├─mitochondria
├─evaluate    │  ├─Toxoplasma   │      └─nucleus
│  └─plot_til │  └─Trypanosoma  ├─pretrained
├─lib         ├─db              ├─results
├─models      ├─external        └─utils
└─results     ├─models          train.py
    ├─auc_roc │  └─py_utils     test.py
    └─tsne    ├─nnet
train.py      ├─results
test.py       ├─sample
              ├─testing
              ├─tools
              └─utils
              config.py
              train.py
              test.py

Code Running

When running these codes, open the Spyder IDE (use Spyder 5.3.3 for best compatibility) under the installed virtual environment and switch the file directory to the needed one. Open the "train.py" file and click the run button. If all the settings are correct, the IPython console will keep scrolling up with the training information. The trained model weights will be saved under the "models" folder. To test the trained model, open the "test.py" and configure the settings.

Contact Us

If you have any problems in running this repository, do not hesitate to contact us with this email fengruijuan558@gmail.com.

About

This repository is the summation of the previous works of our group in microscopy image analysis.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published