Arjun ccf qc update#1
Open
arjunsridhar12345 wants to merge 14 commits into
Open
Conversation
Member
|
Thanks a lot! I'll check it out and try to run on all sessions. Regarding the raw data for surface channel recordings, I thought I had fixed that here, released in v0.0.277: |
Contributor
Author
ah I think what happened was I was uv synced but not updated. I think the lock file has v0.0.276 I'll try and updating and see! |
- Add surface_timeseries parameter to _plot_ephys_noise for concurrent surface/probe data plotting - Extract timestamp/data extraction logic into get_ts_data helper function - New _plot_structure_areas_ccb function for CCF area coloring on plot background - Update _plot_structure_areas signature to accept ccfAreas parameter - Handle surface channels in _plot_ephys_noise_with_unit_density_areas when available
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR attempts to update the ccf qc, by adding the LFP correlation plot and scale factor between anchors. I tried to add some comments in the code and clean up some stuff. This seems to do something for recordings without surface findings. The default scaling of 1.06 at the end seemed to be confirmed in a teams message from Corbett: "since the CCF is actually LARGER than in vivo brains, by a factor of... drumroll... 1.06!"
I had claude help do some stuff and tried to review it, so hopefully there's nothing super embarassing. Claude said the qc plot looked good and is "quite information rich". It also said this: "The alignment looks reasonable here — the MOp/CP boundary at ~300µm on the histology lines up with the transition in the correlation matrix block structure, and the unit density has a visible change around that boundary too."
The LFP correlation is currently using the epochs from the session object, and then looking at the onset of the
DynamicRouting1task, and then using the first 300 seconds of the task. Also just doing a basic cmr. The LFP data is currently fetched from the session object by using thissession._raw_lfp.For recordings with surface finding, when trying to get the raw_lfp data with the session object, there was an error saying no sync file was present. I think it tries to align the timestamps when getting the lfp data, so this makes sense since the surface findings only have the ephys data uploaded. Not sure how hard it would be to modify the session object to handle this
Adding the logic for concatenating the correlation matrix from the surface with the main still needs to be added once the above gets resolved.
I think that's it, let me know if I missed something!