Coder Social home page Coder Social logo

ecuracosta / dorsal-ventral_gene_expression_in_the_regenerating_axolotl_spinal_cord Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 37.28 MB

Jupyter notebooks for the analysis and visualization of data from the manuscript "Lineage tracing of Shh+ floor plate cells and dynamics of dorsal-ventral gene expression in the regenerating axolotl spinal cord". The notebooks include data preprocessing, data modeling, statistical analysis and plotting scripts used in the study.

License: MIT License

Jupyter Notebook 100.00%
regeneration spinalcord stem-cells axoltol floor-plate

dorsal-ventral_gene_expression_in_the_regenerating_axolotl_spinal_cord's Introduction

DOI

Lineage tracing of Shh+ floor plate cells and dynamics of dorsal-ventral gene expression in the regenerating axolotl spinal cord

This project involves the analysis, modeling and visualization of gene expression data from multiple genes, conditions and replicas using a piecewise constant fitting approach.

Prerequisites

The following Python packages are required:

  • pandas
  • numpy
  • scipy
  • matplotlib
  • seaborn

You can install these packages using pip:

pip install pandas numpy scipy matplotlib seaborn

Data preprocessing

Loading data

The data is loaded from an Excel file (quantifications_all-n.xlsx). Each sheet in the Excel file contains distance and expression data for various genes, conditions and replicas.

Normalizing and binning data

Distances are normalized to a range of 0 to 100 and binned into specified intervals. The average expression within each bin is calculated.

Categorizing data by gene and condition

Data is organized into dictionaries based on genes and conditions, and statistical metrics are computed.

Visualizing data

  • Expression profiles: plots of gene expression profiles along the distance axis for each gene and condition.
  • Piecewise constant fitting: fitting the data using two-step and three-step piecewise constant functions to identify changes in expression levels.

Piecewise constant fitting

Two-step piecewise constant fitting

The two-step piecewise constant function fits the data with one switchpoint for most of the genes. The best fit is determined by evaluating the SSE for all potential switchpoints.

Three-step piecewise constant fitting

The three-step piecewise constant function is used to fit the data with two switchpoints for Pax6. The function evaluates different pairs of switchpoints to minimize the sum of squared errors (SSE).

Visualizing fitting results

  • SSE plots: scatter plots showing the SSE values for different switchpoints.
  • Expression plots: scatter plots of the data with the fitted piecewise constant function overlaid.

Statistical comparison

  • Intensity and size comparison: box plots comparing the corrected HCR signal intensity and domain size between conditions for each gene.

Statistical annotations

Statistical tests (Mann-Whitney and t-test) are performed to compare the differences between conditions, and the results are annotated on the plots.

Summary statistics

Summary statistics for gene expression data, including mean, median and std of intensity and size, are calculated and saved to a CSV file (summary_stats.csv).

Running the analysis

To run the analysis, execute the script in a Python notebooks with the necessary packages installed. The script will generate visualizations and save the results to the specified output files.

Contact

For questions or further information, please contact [email protected].

dorsal-ventral_gene_expression_in_the_regenerating_axolotl_spinal_cord's People

Contributors

ecuracosta avatar

Stargazers

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