cortex-lab / Suite2P

Tools for processing 2P recordings
Other
120 stars 65 forks source link

Merging ROIs in suite2P matlab version #176

Closed suyashh94 closed 4 years ago

suyashh94 commented 4 years ago

Hi!

I have made a UI that would allow user to select rois that user would want to merge. It works well for 1 day. However, there comes an issue with merged rois during registration. In registers2p, for some reason, all the merged rois are seen as 1 cell. So, the main question is, which parameters need to updated in dat struct of proc file ? I am updating the iscell parameter for the cells in merged cluster. I am also updating the xpix,ypix,ipix,lam and lambda in dat.stat too. I am also updating the dat.res.clust and dat.F.chosen. Please let me know what else is there to be updated. I will be happy to share the 2 days proc files with merged rois and the merging rois scripts.

suyashh94 commented 4 years ago

Solved it by myself!