-
Notifications
You must be signed in to change notification settings - Fork 8
Make linux compatible, add behavior-only session processing and add optional video background for tracking processing #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
- Updated `acqID.m` to include support for 'digitalin.dat' files in folder listing. - Modified `concatenateDats.m` to handle behavior-only sessions, reading metadata from `info.rhd` or `settings.xml`, and skipping LFP, Kilosort, and SleepScore processing. - Enhanced `fillMissingDats.m` to use `digitalin.dat` as a reference for behavior-only sessions, adjusting channel calculations accordingly. - Updated `preprocessSession.m` to incorporate behavior-only mode, skipping XML file requirements and adjusting session metadata creation. - Improved `read_Intan_RHD2000_file_bz.m` for cross-platform file discovery and handling multiple `.rhd` files. - Introduced `sessionTemplate_behaviorOnly.m` to create minimal session metadata for behavior-only recordings, including detection of digital and analog channels.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds behavior-only session processing capabilities and enhances video background support for tracking data visualization. The main purpose is to enable processing of behavioral recordings that don't contain electrophysiology data (no amplifier.dat files) while also improving the manual tracking error detection workflow.
Key changes:
- Added behavior-only mode that skips electrophysiology processing and uses
digitalin.datfiles as reference instead ofamplifier.dat - Enhanced manual tracker jump detection with optional video frame overlay for easier visual identification of tracking errors
- Improved cross-platform file handling and video processing with better error handling and ffmpeg fallback support
Reviewed Changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| sessionTemplate_behaviorOnly.m | New template for creating minimal session metadata for behavior-only recordings |
| read_Intan_RHD2000_file_bz.m | Enhanced cross-platform file discovery and multi-file handling |
| preprocessSession.m | Added behavior-only mode support with conditional processing |
| fillMissingDats.m | Updated to use digitalin.dat as reference for behavior-only sessions |
| concatenateDats.m | Modified to handle behavior-only sessions with metadata from info.rhd/settings.xml |
| acqID.m | Added digitalin.dat support in folder listing |
| process_and_sync_dlc.m | Improved video frame rate extraction and TTL channel selection |
| manual_trackerjumps.m | Added video overlay functionality for tracking visualization |
| general_behavior_file.m | Added video overlay parameter and fixed file path separators |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
|
Can you format all with MBeautifier? |
…penephys format processing errors
|
This works fine now for Ephys Intan/Openephys sessions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 9 out of 10 changed files in this pull request and generated 7 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
preprocessSession.mto incorporate behavior-only mode, skipping XML file requirements and adjusting session metadata creation (noamplifier.dat, no spike sorting).sessionTemplate_behaviorOnly.mto create minimal session metadata for behavior-only recordings, including detection of digital and analog channels.acqID.mto include support for 'digitalin.dat' files in folder listing.concatenateDats.mto handle behavior-only sessions, reading metadata frominfo.rhdorsettings.xml, and skipping LFP, Kilosort, and SleepScore processing.fillMissingDats.mto usedigitalin.datas a reference for behavior-only sessions, adjusting channel calculations accordingly.read_Intan_RHD2000_file_bz.mfor cross-platform file discovery and handling multiple.rhdfiles.