Code Monkey home page Code Monkey logo

heritable-highco2-response's Introduction

Heritable response to high CO2

This repository contains the code to reproduce the results on the article

Links to Arabidopsis raw images:

Dataset 1: https://doi.org/10.5281/zenodo.7688927
Dataset 2: https://doi.org/10.5281/zenodo.7693935
Dataset 3: https://doi.org/10.5281/zenodo.7693946

Segmentation of individual plants

Instance segmentation labels for individual plants were obtained from the RGB images using the package Plant Segmentation with Graph Cuts. The region of interest for the images on each camera (tray containing 24 plants) was defined right around the edge of the tray on a single time point. The scale was set to 50% per side, which reduces the resolution to 25% of the original. All the Graph Cuts segmentation parameters were left as default.

Area and shape analysis

The plant segmentation file for each tray contains the labels for all the image time points in the form of a 3D Numpy array. For better compatibility with the PlantCV parallelization we process the labels file to generate a 2D array file per image time point using the script split_labels.py.

We analyze the cropped RGB images and the corresponding labels jointly using the PlantCV workflow in Analyze_from_labels_workflow.py. We obtain area and shape measurement per individual plant at all the different time points.

Data processing

We consolidate and process the resulting area data in R using the script ROL_r3_shape_plots.R. There we discard outlier data points that are outside of two standard deviations from the mean computed for each day.

Area analysis

First we used the script ChamberVariabilityfactors.R to calculate the chamber variability factors to perform batch correction and normalize the data in different rounds of growth. The input for the R script is AT_areas.tsv containting the area of individual plants as mentioned above. This step must be done before the other R scripts to generate the figures.

After performing the batch correction, we used the script Figure1C-D.R to generate the plant growth figures in Figure 1C and 1D of the manuscript.

To generate the plant growth figures for the mutants in Figure 5B and 5D, we used the script Figure5B-C.R

and finally we used the script Figure6F.R to generate the differential plant growth plots in Figure 6F of the manuscript.

heritable-highco2-response's People

Contributors

jorgegtz avatar kaushikpanda1 avatar

Stargazers

 avatar

Watchers

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