forked from abhishekde95/Code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BatchTests.jl
37 lines (27 loc) · 967 Bytes
/
BatchTests.jl
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
includet("Batch.jl")
## Prepare Param and Metadata
param = Dict{Any,Any}(
:dataroot => "../Data",
:dataexportroot => "../DataExport",
:resultroot => "../Result",
:stimuliroot => "../NaturalStimuli")
meta = readmeta(joinpath(param[:dataexportroot],"metadata.mat"))
## Query Tests
tests = select!(filter(meta) do r
startswith(r.Subject_ID, "AF5") &&
r.RecordSite == "ODL1" &&
r.ID == "HartleySubspace" &&
r.sourceformat == "SpikeGLX"
end,
[:ID,:UUID,:files,:sourceformat])
## Batch Condition Tests
batchtests(tests,param,plot=true)
## Batch HartleySubspace Tests
param[:model] = [:STA]
batchtests(tests,param,plot=true)
param[:cell] = load(joinpath(param[:resultroot],"cell.jld2"),"cell")
param[:model] = [:ePPR]
param[:eppr_ndelay]=1
param[:eppr_nft]=[3,3,3]
param[:eppr_lambda]=64000
batchtests(tests[1:1,:],param,plot=true)