Controls Open Ephys recording and stimulation. Outputs MATLAB struct and records experiment video for offline analysis.
dev-record Anaconda Environment: https://drive.google.com/file/d/1jDtlvcnChtuyR-nHQDAhDg8elKqCbgwa/view?usp=sharing
dev_cam.py
Handles experiment recordings using OpenCV, updated 20Dec22 to include clock
To be run on rig machine and corresponding outputs be transferred to another computer for analysis. File asks for log_file.mat created by Python.
Very similar to create_ds_data - Takes accelerometry data from Intan board and prepares it for further analysis.
File once again asks for log_file.mat from Python. Appends clean data to same .mat files.
File once again asks for log_file.mat from Python. creates a TFR.mat and coh.mat file.
File once again asks for log_file.mat from Python. creates plots of coh vs freq for pre stim, post stim, and difference between the two. Also plots theta distribution and Z-score theta coherence.
Takes in cleaned time series data created from create_ds_data() and clean_timeseries() to calculate multitaper coherence values and plots the spectrogram. Uses functions from FieldTrip
Calls func_ConfirmNode_quick_check.m, func_cleandsgen.m, mtmcoh_rescaled_lowfreqpwr_clean_AvgThetaOutputs.m - outputs power, coherence, effect size plots and saves data into excel sheets. On the server, run it in Z:\projmon\virginia-dev\03_CODE\EPHYSDATA Analysis Scripts\