Skip to content

Communications Biology 2025 - Mapping human cerebral blood flow with high-density, multi-channel speckle contrast optical spectroscopy

Notifications You must be signed in to change notification settings

BUNPC/2025-SCOS

Repository files navigation

Multi-channel SCOS data processing

Communications Biology 2025 - Mapping human cerebral blood flow with high-density, multi-channel speckle contrast optical spectroscopy

We have created a data analysis pipeline for multi-channel SCOS under photon starved conditions. This repository contains:

  1. SCOS control board C++ code to perform temporal multiplexing using a galvanometer for multi-channel SCOS data aquisition (./Arduino).
  2. An example preprocessing script to demonstrate the preprocessing pipeline (./ Analysis and Preprocessing).
  3. An example analysis script to demonstrate the analysis pipeline (./ Analysis and Preprocessing).

To run the code:

  1. Clone this repository onto a folder.
  2. Clone the fbLSC-library github repository (https://github.com/BUNPC/fbLSC-library). Add it's directory to the path using Matlab's "pathtool" GUI. The analysis and preprocessing scripts rely on functions in the fbLSC-library, and the scripts will not run if Matlab cannot access those functions.
  3. Download the raw camera frame data from Zenodo (10.5281/zenodo.15857987). Ensure that the folder hierarchy matches the structure on Zenodo. The preprocessing script will save files to the correct directory to be accessed by the analysis code. DOI
  4. Run preprocess_script_example.m
  5. Run analyze_preprocessed_local_example.m

The preprocess_script_example.m outputs:

  1. Preprocessed data files (section1_preprocessed.mat, dark_preprocessed.mat) in ./Analysis and Preprocessing/preprocessed/run1/camera2
  2. Raw standard deviation and mean intensity time courses for each 7x7 pixel window. Alt text
  3. Indexing and processing metadata to simplify bookkeeping and aid downstream analysis.

The analyze_preprocessed_local_example.m outputs:

  1. Analyzed data files(run1camera2.mat) in ./Analysis and Preprocesssing/analyzed/run1
  2. The window averaged mean intensity time course separated by source. Alt text
  3. The window averaged raw contrast squared before noise subtraction. Alt text
  4. The window averaged contrast squared due to read noise, shot noise, and spatial heterogineity. Alt text
  5. The fundemental contrast squared after noise correction, which is used to calculate rDb-1. Alt text
  6. Indexing and processing metadata.

For any issue reporting or suggestions, please contact Alexander Howard, [email protected]

DOI

About

Communications Biology 2025 - Mapping human cerebral blood flow with high-density, multi-channel speckle contrast optical spectroscopy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published