macrohet is a code repository designed to investigate Macrophage heterogeneity. It accompanies the aforementioned manuscript exploring single-cell heterogeneity in Mtb-infected macrophages using time-lapse microscopy, tracking, and single-cell growth rate analysis.
Interactive figures and plots for this project can be explored via GitHub Pages: nthndy.github.io/macrohet
Image description: A pseudocoloured timelapse image of Mtb, projected along the time axis visualise spatiotemporal evolution.notebooks/: Reproducible analysis notebooks for data loading, segmentation, tracking, and quantificationmacrohet/: Python module with core analysis functionsdata/: Subset of image data with associated segmentation and tracksmodels/: Bespoke segmentation model and btrack tracking parametersdocs/: HTML manuscript and supporting content (hosted via GitHub Pages)environment.yml: Conda environment specification.pre-commit-config.yaml: Code formatting and linting hooks
The following instructions are configured for an Ubuntu workstation.
Clone the repository:
git clone https://github.com/nthndy/macrohet.git
cd macrohetCreate, install and activate the environment:
mamba env create -f environment.yml
conda activate macrohetParts of the image tiling and stitching pipeline were adapted from Volker Hilsenstein’s DaskFusion project, used under the MIT License. Details of the hardware and software used to generate the analyses in this repository are provided in reproducibility.md.
For questions or access to underlying data/code, please contact:
Nathan J. Day
Host–Pathogen Interactions in Tuberculosis Laboratory
The Francis Crick Institute
nathan.day@crick.ac.uk
@nthndy.bsky.social
github.com/nthndy
