-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_memOrder.m
63 lines (44 loc) · 1.14 KB
/
test_memOrder.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
%% Clear
clear;
clc;
%% Add path
addpath('C:\Users\Kevin_Tyner\Documents\MATLAB\matnwb-2.6.0.2');
%% Set properties
freq = [4;8]; % 4;8 8;12
boundary = ["SB"]; % "SB", "HB", "NB"
region = ["anterior hippocampus"];
hemi = ["L"];
method = ["granger"]; % "granger", "coherence"
lfreq = 0.5;
%% Test folder
folderDir = 'Z:\Tyner_K_Projects\MEM_ORDER\DataFolder\MW19\'; % 30, 27, 26, 25, 24, 23, 22, 21, 20, 19
%% Construct object
obj = memOrder(folderDir);
%% Select channels
selectChannels(obj,region,hemi);
%% Identify bad channels
identifyBads(obj);
%% High pass filter
dataFilter(obj,lfreq);
%% Bipolar referencing
bipolarReference(obj);
%% Identify TTLs
identifyTTLs(obj);
%% Identify the boundaries for the individual trials
identifyBoundaries(obj);
%% Break the data up into sections and epochs
allocateData(obj);
%% Baseline correction
baselineCorrection(obj);
%% Plot LFPs for each task
%plotPhases(obj);
%% Compute power
computePower(obj,freq);
%% Compute statistics
computeStats(obj);
%% Functional connectivity
%functionalConnectivity(obj,method);
%% Analyze significant changes in FC
%analyzeFC(obj,boundary);
%% SPOOOF
SPOOOF(obj,0.5,250);