Coder Social home page Coder Social logo

fucci_ml's Introduction

Kourosh Hayatigolkhatmi, Chiara Soriani, Emanuel Soda, Elena Ceccacci, Oualid El Menna, Sebastiano Peri, Ivan Negrelli, Giacomo Bertolini, Gian Martino Franchi, Roberta Carbone, Saverio Minucci, Simona Rodighiero

Pipeline overview

0. Model Creation

The pipeline is created using the tidymodels framework. The random forest model trained and stored as docker container can be found here .

The model stored as .rds file can be found here.

The Machine Learning pipeline followed to create the quality model. Using timetk time-series associated features are extracted from the list of manually annotated tracks. A random forest model is then trained to predict whether a track is cycling or not.

NB: If the provided model does not yield satisfactory results for your data, we recommend provided pipeline to train a new model tailored to your specific dataset. While this process involves some data annotation, tidymodels offers a variety of models that are not data-intensive and perform well on a low amount of data.

1. Inference

To extract the time series feature the function timetk_feature_extraction(). We suggest to have a look to the official time_tk page.

An unannotated track can be fed to the model to predict whether it is cycling or not

After training the model, making predictions is straightforward. Simply load the trained model and utilize either the parsnip::predict() function or, alternatively, parsnip::augment(). The latter not only provides predictions but also includes the associated predicted probabilities.

rf_model_quality <- 
  readr::read_rds("models/random_forest_model.rds")
  
parsnip::augment(rf_model_quality, tsfeature_tbl)

2. Phase assignment

The normalized HUE intensity value for cycling cells serves as a basis for assigning the cell cycle phase according to the FUCCI construct. Various threshold values can be employed, but based on empirical testing, we recommend considering the following threshold:

Phase Lower threshold Upper threshold
G1 0 0.65
G2/M 0.65 0.85
S 0.85 1

Assigning the cell cycle phase to the tracks that have passed the filter is straightforward, involving the addition of a new column to the table. This can be achieved, for example, using dplyr::mutate() and dplyr::case_when() as follows:

data_table <- data_table %>%  
  dplyr::mutate(phase = dplyr::case_when(
    HUE >= 0 & HUE < 0.65 ~ "G1",
    HUE >= 0.65 & HUE <= 0.85 ~ "G2/M",
    HUE >= 0.85 ~ "S"
  ))

3. Result

The filtered tracks offer a valuable avenue for assessing differences among treatments. Specifically, by enumerating the number of frames each cell persists in a given phase and then dividing by the number of acquisitions per hour, we can compute the time spent (in hours) in each phase for each experimental condition. The subsequent plots depict the time spent in each phase for individual cells across various conditions

Waterfall plot of the "sorted" and "splitted" cells. Each row corresponds to a cell.

Boxplot of the cell phase duration of the first cell cycle. A total of 1116 cells were analysed, obtaining a mean (± SD) cell cycle duration of 24.5 ± 8.5 h.

fucci_ml's People

Contributors

emanuelsoda avatar

Watchers

Elena Ceccacci avatar  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.