This documentation serves to describe how the Machine Learning-Driven analysis of neurochemical signatures in the Rett Syndrome Mouse Brain was conducted.
This PDF file correspond to README file of the following GitHub Repository : https://github.com/Batmath/Rett_analysis
It is the latest version of the following HAL archive : https://hal.science/hal-05477655 (Currently not updated with the correct files)
It contains :
- A jupyter notebook (
rett_analysis.ipynb) detailing the feature preprocessing as well as the results obtained. - Another jupyter notebook (
iris_classification.ipynb) detailing benchmarks of the custom models on a known public dataset. - The python files of the developed model described in the analysis (
bagging_xgboost.pyandrandom_bagging_xgboost.pyas well asutils.pycontaining utilities for the classes) - The initial dataset
RETT_dataset.csv - A
requirements.txtfile detailing the python library versions used in the analysis (It contains a full freeze of the environment to ensure exact reproducibility). - A
pyproject.tomlfile describing the python's version used in the analysis.
In order to run the analysis, a python 3.11.9 environment has to be created on Windows.
First open a terminal inside the Rett_analysis directory. With python 3.11.9 installed, type :
python -m venv venvActivate the virtual environment by using:
./venv/Scripts/activateOnce in the virtual environment, the packages need to be installed with pip using the requirements.txt file.
pip install -r requirements.txtNow, rett_analysis.ipynb can be executed.
This codebase was developed and validated on a Windows operating system. While the analysis can be run on Linux, the results differ slightly from those presented in this jupyter notebook for the implemented custom models.
This behavior is likely caused by floating-point arithmetic differences or threading behavior that varies between Windows and Linux.
For full reproducibility, running the code on a Windows-based system is strongly recommended.
This codebase was executed on a single computer. However, the execution time will vary depending on the hardware specifications (RAM and CPU). Prallel processing can be manipulated using the n_jobs parameter of the CrossValidation method.
Rett syndrome is a genetic neurological disorder caused by mutations, usually in the MECP2 gene, affecting almost exclusively females, both in humans and in the mouse model used here. It is characterized by apparently normal early development followed by regression (impairments in language, coordination, and repetitive movements).
Mouse models carrying Mecp2 mutations are used widely to study the neurochemical underpinnings of Rett syndrome.
All samples were collected from mice (Mus musculus). Animals were assigned to either the Rett-affected group (carrying the KO Mecp2-/y mutation) or the wild-type control group. The mouse strain is consistent across the dataset independent from the groups (C57Bl/6).
Neurochemical concentrations were measured in the following brain structures :
- Entire Brainstem
- Striatum (STR) via the punch sampling method
- Cortex (punch sampling method)
- Midbrain (punch sampling method)
- Hypothalamus (punch sampling method)
The following compounds were quantified across the previously described brain regions (concentrations expressed in ng/structure) :
- DA : Dopamine
- DOPAC : 3,4-Dihydroxyphenylacetic acid (dopamine metabolite)
- HVA : Homovanillic acid (dopamine metabolite)
- 5-HT : Serotonin
- 5-HIAA : 5-Hydroxyindoleacetic acid (serotonin metabolite)
- NA : Noradrenaline
- GABA : Gamma-aminobutyric acid
- Glu : Glutamate
- Asp : Aspartate
Initially, the dataset is composed of 55 individuals and 58 features.
Each row corresponds to one animal. In the original dataset, two types of columns can be found.
Firstly, the columns corresponding to the neurochemical measurements in a specific brain region, named following the convention :
<Compound> sampled in <Region> (ng/structure)
Columns about the subject information can also be found (age, species, gender, strain). The species, gender, and strain were removed as they are invariant.
The target column is the variable genotype which encodes the disease status of the animal (RTT-KO vs WT control).
The following preprocessing steps were applied prior to analysis :
- String representations of missing values (
NaN,<NA>) were converted to standard missing value indicators. - Columns with all-missing values were removed (as well as columns and individuals originating from a secondary study which initially created patterns in missing values).
- No normalization or scaling was applied, as the dataset was used with tree-based models such as XGBoost, which are invariant to feature scaling (assuming values are missing at random).
Partial missingness remains in the dataset (for columns and individuals). Users should assess and handle remaining missing values according to their analytical needs.
This dataset is released under the European Union Public Licence (EUPL) v1.2.
You are free to use, share, and adapt this dataset under the terms of the EUPL. Any redistribution must retain this licence notice.
Full licence text: https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
For questions regarding this dataset, please contact PARROT Sandrine
- Contact email : sandrine.parrot@univ-lyon1.fr
Article title: Machine Learning–Driven Prediction of Neurochemical Signatures in the Rett Syndrome Mouse Brain
DOI: not yet, under review
Co-authors : Mathis Batanga Loko, Nicolas Panayotis, Jean-Christophe Roux, Frédéric Alexandre, Sandrine Parrot