IDG/McGovern Institute for Brain Research Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Yes Beijing Normal University NITRC A Pipeline for fNIRS Data Analysis in Naturalistic Paradigms MATLAB MATLAB analysis code for preprocessing and quality control of fNIRS data from naturalistic and hyperscanning experiments (the analysis pipeline used in the associated study). It (1) estimates heart rate from raw fNIRS and validates it against ECG; (2) provides a cardiac signal-to-noise-ratio (SNR) framework to objectively evaluate and optimize preprocessing pipelines, benchmarking seven motion-correction schemes and the global-PCA threshold; and (3) compares interpersonal neural synchronization across preprocessing schemes using wavelet transform coherence (WTC), with two parallel WTC analyses — a main analysis and a 0.1-Hz notch-filtered control analysis. 2026-6-17 5 - Production/Stable/Mature 1.0 A Pipeline for fNIRS Data Analysis in Naturalistic Paradigms Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International, Optical Imaging, 5 - Production/Stable/Mature, MATLAB http://www.nitrc.org/projects/naturalfnirs/, http://www.nitrc.org/projects/naturalfnirs/