help > CONN 25.b - NaN values during denoising and second-level analysis
6 hours ago | Remas Alsaadi
CONN 25.b - NaN values during denoising and second-level analysis

Hello,


I am using CONN Toolbox version 25.b for resting-state fMRI study.


Study design:
- 19 subjects
- 2 conditions:
  - Quran
  - Speaker
- Seed-to-Voxel analysis


I am experiencing persistent NaN-related errors.


Error during second-level analysis:
"Null design matrix (all subjects have missing data or all selected covariates have zero or NaN values)"


Error during denoising:
"Input matrix must not contain NaN or Inf values"


I recreated the project from scratch and reran preprocessing.


I also noticed that some QC covariates contain NaN values. For example:


QC_meanFC = NaN for all subjects 
QC_StdFC = NaN for all subjects
QC_outlierScore = NaN for all subjects 


I tried:
- Removing age covariate
- Excluding one subject that showed 0 value on QC_validsubjects 
- Removing "Effect of Quran" and "Effect of speaker" from denoising


After removing the condition effects, denoising completed successfully, but second-level analyses still produce NaN-related errors.


Could you please advise how to identify the source of these NaN values and whether the issue is related to denoising, QC covariates, ROI data, or project setup?


Thank you very much.