The repository contains the data and jupyter notebook for the analysis and graphics of the paper "Pregnancy blood test dynamics resemble rejuvenation of some organs and aging of others" by Moran et al. (2025). For information about the data, please refer to this page on Dryad 🔗.
Jupyter notebook was used to run the analyses and to create the graphs. To re-run, install anaconda or miniconda and download the repository. Open the command prompt/terminal in the root directory of the repository and install the environment:
conda env create -f environment.yml
Start the conda environment and the jupyter server:
conda activate pregnancy
jupyter notebook
And run the notebooks from the new browser window. For support regarding running Jupyter notebooks, please refer to Jupyter's support page.
A more brief requirements file is provided in requirements.txt for installation of the packages necessary for the plots and analyses alone.
Use the requirements file if you have a working python environment with Jupyter installed. With the virtual environment activated, run the following from the root directory of the repository in the command line:
python -m pip install -r requirements.txt
jupyter notebook
The revisions folder contains data and an R script for computing some of the supplemental results, including variable selection using NHANES.