Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion tests/data/cpac_rbc_divergences.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Findings from cross-referencing C-PAC source code and actual RBC pipeline run logs.

**Sources:**
- C-PAC code: `CPAC/anat_preproc/anat_preproc.py`, `CPAC/anat_preproc/ants.py`, `CPAC/pipeline/cpac_pipeline.py`, `CPAC/func_preproc/func_preproc.py`, `CPAC/alff/alff.py`
- C-PAC code: `CPAC/anat_preproc/anat_preproc.py`, `CPAC/anat_preproc/ants.py`, `CPAC/pipeline/cpac_pipeline.py`, `CPAC/func_preproc/func_preproc.py`, `CPAC/alff/alff.py`, `CPAC/qc/xcp.py`
- C-PAC RBC run logs (ds000001, sub-01_ses-1)

---
Expand Down Expand Up @@ -62,6 +62,16 @@ This bug affects all outputs downstream of the frequency filter: cleaned BOLD, R

---

## 5. DVFinal metrics computed from pre-regression BOLD (same as DVInit)

The XCP-style QC file reports `meanDVFinal` and `motionDVCorrFinal` as post-regression DVARS metrics (per the XCP dictionary: "correlation of RMS and DVARS after regression"). However, inspecting the C-PAC source code (`xcp.py`) reveals that both `DVInit` and `DVFinal` are computed from the same pre-nuisance regression BOLD input.

Comment thread
jpillai00 marked this conversation as resolved.
This was confirmed empirically: `meanDVInit = meanDVFinal` and `motionDVCorrInit = motionDVCorrFinal` for every subject across all three datasets (HBN, PNC, NKI) during the small benchmarking study.

In contrast, RBC correctly computes `DVFinal` from the post-regression bandpass-filtered BOLD (`cleaned_bold`), as intended.

---

## Notes

### Two parallel motion correction paths
Expand Down
Loading