MouseLand / suite2p

cell detection in calcium imaging recordings
http://www.suite2p.org
GNU General Public License v3.0
334 stars 239 forks source link

How to estimate the registration quality on subgroup frames? #788

Open WeijianZong opened 2 years ago

WeijianZong commented 2 years ago

Thank you for providing this wonderful tool! In a recent project, I need to estimate the motion correction quality in different recording periods, such as locomotion, jumping, rooming. etc. If I understand correctly, RegDX is the average for 5000 frames that are used to calculate PC, right? Is that any way to estimate the registration score for selected frames in one recording? Many thanks!

carsen-stringer commented 2 years ago

it is not possible to specify the frames, this would require some implementation, but if you have the frames loaded from the binary you can call this function: https://github.com/MouseLand/suite2p/blob/53eae961d08134dfb3cd0591dbad17c40905a02e/suite2p/registration/metrics.py#L18