int-brain-lab / iblapps

pyqt5 dependent applications for IBL sessions
MIT License
25 stars 15 forks source link

firing rate & rm AP plot depth mismatched #81

Open takacsflora opened 1 year ago

takacsflora commented 1 year ago

Hi, When recording from bank 1, some image plots are not displaying the correct depth, I think (others do, like the amplitude plot). See screenshots: image image

mayofaulkner commented 1 year ago

Hi Flora, has this been happening for all your probes or just this one particular one? It looks like there is a mismatch between the spikes.depths coordinates and the channels.localCoordinates (the channels are from 0 - ~3000) whereas the spikes.depths start from ~ 3000. Can you confirm this is the case?

Thanks

takacsflora commented 1 year ago

Hi Mayo, Thanks for the fast reply! All of our probes I checked so far -- here is the histogram for both, so channel.localCoordinates seems fine image

Thanks for the help!

mayofaulkner commented 1 year ago

Hmmm, okay must be a bug in the code somewhere. I'll take a look and get back to you. Just to confirm this a 4 shank probe and you only see on this problem on shank 1 or all shanks?

takacsflora commented 1 year ago

Thanks! Yes, 4 shank probe and on all shanks. I only tested the individual shank configuration (so not when 720um is recorded from each).

mayofaulkner commented 1 year ago

Could you attach your channels.localCoordinates and channels.rawInd files and if possible the spikeglx*.ap.meta file for this probe. Thank you

takacsflora commented 1 year ago

Yes, I will email you in a sec. Thanks!

mayofaulkner commented 1 year ago

Hi Flora, I have fixed the problem and merged into master. Let me know if something still seems wrong.

takacsflora commented 1 year ago

Yes, fixed, thanks Mayo!

takacsflora commented 1 year ago

Actually, sorry, there is still a minor issue, which is at these heights if you are putting down a line, it is taking the wrong location on the image, so for example I was trying to put a line to where the arrow is here (ofc not major, as I can easily adjust it, just thought you might want to know) image