-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexperiment_parameters_default.py
More file actions
91 lines (76 loc) · 3.38 KB
/
experiment_parameters_default.py
File metadata and controls
91 lines (76 loc) · 3.38 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import numpy as np
import datetime
# Animal
# Base genotype Grik4Cre C57BL/6-Tg(Grik4-cre)G32-4Stl/J (Jax Stock No. 006474)
# NCBS Strain: Grik4Cre_2018
animalID = 'GXXX'
sex = 'X'
dateofBirth = datetime.date(2021, 5, 7)
dateofInj = datetime.date(2021, 6, 13)
dateofExpt = datetime.date(2021, 7, 30)
sliceThickness = 400 # um
# Virus Injection
site = {'RC':1.9, 'ML':2.0, 'DV':1.5} # from bregma, right hemisphere in rostrocaudal, mediolateral, and dorsoventral axes
injectionParams = {'Pressure':8, 'pulseWidth':15, 'duration':30} # picospritzer nitrogen pressure in psi, pulse width in millisecond, duration in minutes
virus = 'ChR2' # ChR2 (Addgene 18917) or ChETA (Addgene 35507)
virusTitre = 6e12 # GC/ml, after dilution
dilution = 0.5 # in PBS to make up the titre
volumeInj = 5e-4 # approx volume in ml
ageAtInj = (dateofInj - dateofBirth)
ageAtExp = (dateofExpt - dateofBirth)
incubation = (ageAtExp - ageAtInj)
# Polygon
objMag = 40 # magnification in x
frameSize = np.array([13433.6, 7296.8]) # frame size in um, with 1x magnification, 24Dec21 calibration
gridSize = 24 # corresponds to pixel size of 13x8 µm
squareSize = frameSize / (gridSize * objMag)
# Internal solution (is)
isBatch = datetime.date(2021, 7, 29)
ispH = 7.35
isOsm = 292 # mOsm/kg H2O
# Recording solution (aCSF)
aCSFpH = 7.40
aCSFOsm = 310 # mOsm/kg H2O
gabaConc = 2e-6 # mol/litre, if gabazine experiments were done
# Experiment
cellID = 'XXXN'
bathTemp = 32 # degree celsius
location = {'stim':'CA3',0:'',3:''} #usually, ch0: patch electrode, ch3: field electrode
clamp = ''
EorI = ''
unit = ''
clampPotential = ''
datafile = ''
polygonProtocol = ''
intensity = 100
pulseWidth = 2
stimFreq = 20 # in Hz
repeats = 3
numPulses = 8 # a fixed number for all frequencies
exptTypes = ['GapFree','IR','CurrentStep','1sq20Hz','FreqSweep','LTMSeq','LTMRand','convergence', 'surprise', 'SpikeTrain']
exptType = exptTypes[4]
conditions = ['Control','Gabazine']
condition = conditions[0]
# Signal parameters
Fs = 2e4
signalScaling = 1 # usually 1, but sometimes the DAQ does not save current values in proper units
baselineSubtraction = True
baselineCriterion = 0.1 # baseline fluctuations of 10% are allowed
DAQfilterBand = [0, 10000]
# Epochs (time in seconds)
sweepDuration = [0 , 2.0000]
sweepBaselineEpoch = [0 , 0.1999] # seconds, end of baseline time
opticalStimEpoch = [0.2, 1.6687]
singlePulseEpoch = [0.2, 0.4999]
pulseTrainEpoch = [0.5, 1.6687]
frameChangeforFreqSweep = 0.150
IRBaselineEpoch = [0 , 0.1999]
IRpulseEpoch = [1.6688, 1.9687]
IRchargingPeriod = [1.6688, 1.7188]
IRsteadystatePeriod = [1.7188, 1.9687]
interSweepInterval = 30 # seconds
# Analysis
# Filtering
filters = {0:'',1:'bessel',2:'butter',3:'decimate'}
filter = filters[0]
filterHighCutoff = 2e4