-
Notifications
You must be signed in to change notification settings - Fork 0
/
getFeedbackDeliveryDelayAverages_Morgane.m
63 lines (37 loc) · 1.68 KB
/
getFeedbackDeliveryDelayAverages_Morgane.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
% get avg feedback delivery delay for each animal and brain region, Exp 23
% go to line ~35 to change computer =)
% Morgane September 2019
clear all
close all
% ---- ENTER REQS ---------------------------------------------------------
exp_ID = '23';
% VTA
animal_names = ["ALK068", "ALK070", "ALK071", "ALK084"]; %place comma between animal names
brain_region = 'VTA';
% NAC
% animal_names = ["ALK078", "MMM001", "MMM002", "MMM005"] ;
% brain_region = 'NAc';
% DMS
% animal_names = ["ALK074", "MMM003", "ALK083", "MMM009", "MMM010"];
% brain_region = 'DMS';
% -------------------------------------------------------------------------
load('MiceExpInfoPhotoM')
FeedbackDeliveryDelay = zeros(1, numel(animal_names));
totalSessions = 0;
c = 1;
for animal_name = animal_names(c);
[animal_ID, chan_order] = Salvatore_Get_chan_order(animal_name);
% path2data = ['D:\Raw data for striatal DA paper\',convertStringsToChars(animal_name)]; % morgane's oxford computer
path2data = ['D\\zubjects.cortexlab.net\Subjects\',convertStringsToChars(animal_name)]; % morgane's london computer
addpath(genpath(path2data))
[SessionList] = getSessionList_photoM(animal_name, exp_ID);
for iSession = SessionList
totalSessions = length(SessionList) + totalSessions;
ParamFileName = MiceExpInfo.mice(animal_ID).session(iSession).Paramname;
load(ParamFileName);
FeedbackDeliveryDelay(c) = parameters.feedbackDeliveryDelay + FeedbackDeliveryDelay(c);
end
FeedbackDeliveryDelay(c) = FeedbackDeliveryDelay(c)./length(SessionList);
c = c + 1;
end
PopFeedbackDeliveryDelay = mean(FeedbackDeliveryDelay);