Skip to content

Conversation

@kushaangupta
Copy link
Collaborator

  • Updated preprocessSession.m to incorporate behavior-only mode, skipping XML file requirements and adjusting session metadata creation (no amplifier.dat, no spike sorting).
  • manual_trackerjumps function now supports overlaying tracking coordinates on top of video frames, making it much easier to visually identify and remove tracking errors or outliers.
  • Introduced sessionTemplate_behaviorOnly.m to create minimal session metadata for behavior-only recordings, including detection of digital and analog channels.
  • 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.
  • Improved read_Intan_RHD2000_file_bz.m for cross-platform file discovery and handling multiple .rhd files.

- 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.
Copy link

Copilot AI left a 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.dat files as reference instead of amplifier.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]>
@kushaangupta kushaangupta changed the title Add behavior-only session processing and add optional video background for tracking processing Make linux compatible, add behavior-only session processing and add optional video background for tracking processing Oct 14, 2025
@ryanharvey1
Copy link
Member

Can you format all with MBeautifier?

https://github.com/davidvarga/MBeautifier

@kushaangupta
Copy link
Collaborator Author

This works fine now for Ephys Intan/Openephys sessions

@kushaangupta kushaangupta requested a review from Copilot October 15, 2025 15:49
Copy link

Copilot AI left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants