BMQuant is a FIJI macro and a framework for basement membrane protein quantification in organoid samples.
- Object Segmentation: Use QuPath to annotate and segment the objects for quantification (e.g., Gloms and tubules).
- Export Annotations: Export the region of interest (ROI) using the provided script.
- Pixel Classification: Use Ilastik software to perform pixel classification on the channel of interest with a machine learning model.
- Measurement: Use the Fiji macro to measure the mean fluorescent intensity in the basement membrane and inside the objects by calculating the area.
We developed this macro to quantify collagen a5(IV) mean intensity in the basement membranes of our X-linked Alport syndrome (XLAS) kidney organoid model from male iPSCs after antisense oligonucleotide treatment.
-
Install QuPath Software: Download QuPath for object annotation and ROI extraction (available for macOS, Windows, and Linux OS).
-
Install FIJI: Download FIJI, a powerful and free image analysis tool.
-
Install Ilastik Software: Download Ilastik for pixel classification.
-
Create Conda Environment:
conda env create -f samapi_env.yml conda activate samapi
-
Create Conda Environment:
conda create -n samapi -y python=3.10 conda activate samapi
-
Install CUDA Toolkit (if using a CUDA-compatible GPU):
conda install -c conda-forge -y cudatoolkit=11.8
-
Install Torch with GPU Support (if using a CUDA-compatible GPU on Windows):
python -m pip install "torch>=2.3.1,<2.4" torchvision --index-url https://download.pytorch.org/whl/cu118
-
Install SAM API and Dependencies:
python -m pip install git+https://github.com/ksugar/samapi.git
-
Update
LD_LIBRARY_PATH
(if using WSL2):export LD_LIBRARY_PATH=/usr/lib/wsl/lib:$LD_LIBRARY_PATH
-
Start the SAM API Server:
export PYTORCH_ENABLE_MPS_FALLBACK=1 # Required for running on Apple silicon uvicorn samapi.main:app --workers 2
The command will launch a server at http://localhost:8000.
INFO: Started server process [21258] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
This pipeline is distributed under the MIT license. You can review the full license agreement in the license tab.
For non-commercial use, this product is available for free.
This macro is designed in collaboration with Nicolas Gaudin. For more information and help, you can write to:
- Nicolas Gaudin: [email protected]
- Hassan Saei: [email protected]
(Soon to be updated...)