Giter Site home page Giter Site logo

hemaxin / interphasecellcyclestaging Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 4.77 MB

Official implementation of the paper: "Narotamo, H., Fernandes, M. S., Moreira, A. M., Melo, S., Seruca, R., Silveira, M., & Sanches, J. M. (2021). A machine learning approach for single cell interphase cell cycle staging. Scientific reports."

Python 100.00%

interphasecellcyclestaging's Introduction

InterphaseCellCycleStaging

Code developed to perform interphase cell cycle staging of nuclei stained with DAPI. If you are using this code in your research please cite the paper.

Overview

How to use

To run this code please change the following directories in the file classifier.py:

  • img_dir: directory containing the DAPI images

  • msk_dir: directory containing the segmentation masks corresponding to the DAPI images in directory img_dir (To obtain the segmentation masks for the DAPI images use the code available in https://github.com/HemaxiN/YOLO_UNET.)

  • save_dir: directory where the results will be saved

To perform cell cycle staging run the file classifier.py after changing the img_dir, msk_dir and save_dir. After performing classification nuclei classified as S/G2 will have a green bounding box and nuclei classified as G1 will have a red bounding box in the images present in save_dir, as shown in the following figure:

Additionally, a results.csv file containing detailed information regarding nuclei classification will be saved in save_dir. It has the following structure:

Image pred_G1 pred_S_G2
image1.tif 57 27
image2.tif 49 28
..... ....... .........

Each row contains the information for each image in img_dir. The first, second and third columns represent the image name, number of nuclei classified as G1 and number of nuclei classified as S/G2, respectively.

Requirements

This implementation requires the packages listed in requirements.txt.

How to cite

@article{narotamo2021machine,
  title={A machine learning approach for single cell interphase cell cycle staging},
  author={Narotamo, Hemaxi and Fernandes, Maria Sofia and Moreira, Ana Margarida and Melo, Soraia and Seruca, Raquel and Silveira, Margarida and Sanches, Jo{\~a}o Miguel},
  journal={Scientific Reports},
  volume={11},
  number={1},
  pages={1--13},
  year={2021},
  publisher={Nature Publishing Group}
}

interphasecellcyclestaging's People

Contributors

hemaxin avatar

Stargazers

Adrian Tschan avatar JayYC avatar Trung Huynh avatar A-Dr.Jz avatar Zulfa Varvani avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.