MATLAB¶
MATLAB scripts currently provide the main preprocessing path for WILD recordings.
Scripts¶
| Script | Purpose |
|---|---|
WILD_PreProcess.m |
Generate corrected headers, timing files, and event outputs. |
WILD_PreProcessFolder.m |
Process multiple recordings. |
WILD_ReadHeader.m |
Read WILD parameter headers. |
WILD_processIMU.m |
Process IMU data. |
WILD_scaleIMU.m |
Scale IMU signals. |
WILD_genIntanHeader.m |
Generate Intan-compatible header output. |
Minimal Workflow¶
cd("C:\code\github\Neurologger\Code");
recording_path = "C:\WILD\example_recording";
WILD_PreProcess(fullfile(recording_path, "amplifier.dat"));
WILD_processIMU(fullfile(recording_path, "analogin.dat"), 100);
Adjust paths and sampling assumptions for your recording mode.
Expected Folder Layout¶
Input
Outputs generated by the public MATLAB path
example_recording/
time.dat
info.rhd
IMU.mat
device_event.d01.evt # if digital events are present
device_event.s01.evt # if stimulation-related event files are generated
Known-Good First Pass¶
- Run
WILD_PreProcessonamplifier.dat. - Confirm that
time.datandinfo.rhdappear. - Run
WILD_processIMUonanalogin.dat. - Confirm that
IMU.matis generated. - Keep the raw export unchanged and write downstream results into a separate analysis copy when reprocessing.