cortex-lab / Suite2P

Tools for processing 2P recordings
Other
122 stars 66 forks source link

Too many ROIs detected #118

Closed MarioDipoppa closed 6 years ago

MarioDipoppa commented 6 years ago

Suite2p crashes at sourceryAddon (line 31): Usub = Ucell(:, ipix)+ codes(j, :)' * mLam(ipos,j)'; [in sourceryAddon, in sourcery] since it detects 21776 ROIs while mLam has size 10000 (its second dimension). I guess the issue is that there have been detected too many small ROIs. The number of ROIs grows quite quickly in the beginning: 848 total ROIs, err 0.5963, thresh 0.0408 1602 total ROIs, err 0.5919, thresh 0.0408 2303 total ROIs, err 0.5878, thresh 0.0408 3000 total ROIs, err 0.5835, thresh 0.0408 .... after 16 iterations: 10524 total ROIs, err 0.5383, thresh 0.0408 .... and at last: 21776 total ROIs, err 0.4854, thresh 0.0408

carsen-stringer commented 6 years ago

are the ROIs okay? did you try setting a threshold on the number of iterations or the convergence criterion?

carsen-stringer commented 6 years ago

is this still a problem Mario? if not please close the issue