MICA-MNI / BrainSpace

BrainSpace is an open-access toolbox that allows for the identification and analysis of gradients from neuroimaging and connectomics datasets | available in both Python and Matlab |
http://brainspace.readthedocs.io
BSD 3-Clause "New" or "Revised" License
185 stars 75 forks source link

[FIX] Fixed a bug that caused conncomp to error #71

Closed ReinderVosDeWael closed 2 years ago

ReinderVosDeWael commented 2 years ago

MATLAB's conncomp errors for some users. Although I have not been able to reproduce this bug, it's been reported often enough to be worth resolving. This PR switches from MATLAB's conncomp to a custom connected graph detection algorithm.