Jfortin1 / ComBatHarmonization

Harmonization of multi-site imaging data with ComBat
268 stars 107 forks source link

[Matlab code] NaN matrix returned when input has a row with batch-wise constant values #26

Closed Jfortin1 closed 3 years ago

Jfortin1 commented 3 years ago

Problematic row: [23 23 23 5 5 5] where batch = [1 1 1 2 2 2]

Jfortin1 commented 3 years ago

Fixed in https://github.com/Jfortin1/ComBatHarmonization/commit/48ec35493ef6227d3871ffa16cc36a408f74d972