Skip to content

Commit

Permalink
Analyzed more data
Browse files Browse the repository at this point in the history
  • Loading branch information
ycanerol committed Jun 15, 2017
1 parent f2e91c7 commit 3d8f01f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 15 deletions.
4 changes: 2 additions & 2 deletions checkerflicker_analysis_dimos.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
import lnp

main_dir = '/Users/ycan/Documents/official/gottingen/lab rotations/\
LR3 Gollisch/data/Experiments/Mouse/2017_01_17/'
LR3 Gollisch/data/Experiments/Mouse/2016_10_21/'

cells_classified = main_dir+'sorting_info.mat'
cells_classified = main_dir+'clusters.mat'

frames_path = 'frametimes/2_checkerflicker10x10bw2blinks_frametimings.mat'
stimulus_type = frames_path.split('/')[-1].split('_')[0]
Expand Down
4 changes: 2 additions & 2 deletions fff_analysis_dimos.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
import lnp_checkerflicker as lnpc

main_dir = '/Users/ycan/Documents/official/gottingen/lab rotations/\
LR3 Gollisch/data/Experiments/Mouse/2017_01_17/'
LR3 Gollisch/data/Experiments/Mouse/2016_10_21/'

cells_classified = main_dir+'sorting_info.mat'
cells_classified = main_dir+'clusters.mat'
#%%
stimulus_path = '/Users/ycan/Documents/official/gottingen/\
lab rotations/LR3 Gollisch/data/fff2h.npy'
Expand Down
7 changes: 4 additions & 3 deletions onoffplotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import matplotlib.pyplot as plt

main_dir = '/Users/ycan/Documents/official/gottingen/lab rotations/\
LR3 Gollisch/data/Experiments/Salamander/2014_01_21/analyzed/'
LR3 Gollisch/data/Experiments/Salamander/2014_02_25/analyzed/'

exp_name = main_dir.split('/')[-4]+'_'+main_dir.split('/')[-3]

Expand Down Expand Up @@ -81,6 +81,8 @@
spikenr_c = spikenrc_c
onoffindices_c = onoffindicesc_c

outliers = np.where(np.abs(onoffindices_c - onoffindices_f) > .6)[0]

# %%
plt.figure(figsize=(8, 16), dpi=200)

Expand All @@ -106,8 +108,7 @@

plt.tight_layout()
plt.savefig('/Users/ycan/Documents/official/gottingen/lab rotations/\
LR3 Gollisch/figures/{}'.format(exp_name)
, dpi=200)
LR3 Gollisch/figures/{}'.format(exp_name), dpi=200)
plt.show()

for i in outliers:
Expand Down
7 changes: 2 additions & 5 deletions onoffplotter_dimos.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
import matplotlib.pyplot as plt

main_dir = '/Users/ycan/Documents/official/gottingen/lab rotations/\
LR3 Gollisch/data/Experiments/Mouse/2017_01_17/analyzed/'
LR3 Gollisch/data/Experiments/Mouse/2016_10_21/analyzed/'

#main_dir = '/Users/ycan/Documents/official/gottingen/lab rotations/\
#LR3 Gollisch/data/Experiments/Salamander/2014_02_20/analyzed/'

exp_name = main_dir.split('/')[-4]+'_'+main_dir.split('/')[-3]

Expand Down Expand Up @@ -111,8 +109,7 @@

plt.tight_layout()
plt.savefig('/Users/ycan/Documents/official/gottingen/lab rotations/\
LR3 Gollisch/figures/Mouse_2017_01_17.png'
, dpi=200)
LR3 Gollisch/figures/{}'.format(exp_name), dpi=200)
plt.show()

for i in outliers:
Expand Down
5 changes: 2 additions & 3 deletions plotall_dimos.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import matplotlib.pyplot as plt

main_dir = '/Users/ycan/Documents/official/gottingen/lab rotations/\
LR3 Gollisch/data/Experiments/Mouse/2017_01_17/analyzed/'
LR3 Gollisch/data/Experiments/Mouse/2017_02_14/analyzed/'

exp_name = main_dir.split('/')[-4]+' '+main_dir.split('/')[-3]

Expand Down Expand Up @@ -120,8 +120,7 @@

plt.subplot(3, 3, 8)
f_size = 5
plt.imshow(c['sta_unscaled'][c['max_i'][0]-f_size:c['max_i
'][0]+f_size+1,
plt.imshow(c['sta_unscaled'][c['max_i'][0]-f_size:c['max_i'][0]+f_size+1,
c['max_i'][1]-f_size:c['max_i'][1]+f_size+1,
int(c['max_i'][2])],
cmap='Greys',
Expand Down

0 comments on commit 3d8f01f

Please sign in to comment.