added data for example cells
This commit is contained in:
parent
923982d43f
commit
5c2ee9f7b2
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,6 +1,12 @@
|
|||||||
# backup files
|
# backup files
|
||||||
*~
|
*~
|
||||||
|
|
||||||
|
# pdf files
|
||||||
|
*.pdf
|
||||||
|
|
||||||
|
# python
|
||||||
|
__pycache__/
|
||||||
|
|
||||||
# ---> TeX
|
# ---> TeX
|
||||||
## Core latex/pdflatex auxiliary files:
|
## Core latex/pdflatex auxiliary files:
|
||||||
*.aux
|
*.aux
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
import sys
|
|
||||||
sys.path.insert(0, 'ephys') # for analysing data
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
@ -13,9 +11,14 @@ cell_name = '2012-05-15-ac'
|
|||||||
run1 = 3 # 4
|
run1 = 3 # 4
|
||||||
run2 = 1
|
run2 = 1
|
||||||
|
|
||||||
base_path = Path('ephys')
|
example_cells = [
|
||||||
data_path = base_path / 'data'
|
['2010-11-26-an', 0],
|
||||||
results_path = base_path / 'results'
|
['2011-10-25-ac', 0],
|
||||||
|
['2011-02-18-ab', 1],
|
||||||
|
['2014-01-16-aj', 5],
|
||||||
|
]
|
||||||
|
|
||||||
|
data_path = Path('data')
|
||||||
|
|
||||||
|
|
||||||
def plot_isih(ax, s, rate, cv, isis, pdf):
|
def plot_isih(ax, s, rate, cv, isis, pdf):
|
||||||
@ -152,13 +155,13 @@ if __name__ == '__main__':
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
print('Example Ampullary cell:', cell_name)
|
print('Example Ampullary cell:', cell_name)
|
||||||
eodf, rate, cv, isis, pdf, freqs, prr = load_baseline(results_path, cell_name)
|
eodf, rate, cv, isis, pdf, freqs, prr = load_baseline(data_path, cell_name)
|
||||||
print(f' baseline firing rate: {rate:.0f}Hz')
|
print(f' baseline firing rate: {rate:.0f}Hz')
|
||||||
print(f' baseline firing CV : {cv:.2f}')
|
print(f' baseline firing CV : {cv:.2f}')
|
||||||
contrast1, time1, stimulus1, spikes1 = load_noise(data_path, cell_name, run1)
|
contrast1, time1, stimulus1, spikes1 = load_noise(data_path, cell_name, run1)
|
||||||
contrast2, time2, stimulus2, spikes2 = load_noise(data_path, cell_name, run2)
|
contrast2, time2, stimulus2, spikes2 = load_noise(data_path, cell_name, run2)
|
||||||
fcutoff1, contrast1, freqs1, gain1, chi21 = load_spectra(results_path, cell_name, run1)
|
fcutoff1, contrast1, freqs1, gain1, chi21 = load_spectra(data_path, cell_name, run1)
|
||||||
fcutoff2, contrast2, freqs2, gain2, chi22 = load_spectra(results_path, cell_name, run2)
|
fcutoff2, contrast2, freqs2, gain2, chi22 = load_spectra(data_path, cell_name, run2)
|
||||||
|
|
||||||
s = plot_style()
|
s = plot_style()
|
||||||
s.cell_color1 = s.ampul_color1
|
s.cell_color1 = s.ampul_color1
|
||||||
@ -201,15 +204,9 @@ if __name__ == '__main__':
|
|||||||
fig.tag([axg, axc1, axc2, axd], xoffs=-3, yoffs=2)
|
fig.tag([axg, axc1, axc2, axd], xoffs=-3, yoffs=2)
|
||||||
|
|
||||||
print('Additional example cells:')
|
print('Additional example cells:')
|
||||||
example_cells = [
|
|
||||||
['2010-11-26-an', 0],
|
|
||||||
['2011-10-25-ac', 0],
|
|
||||||
['2011-02-18-ab', 1],
|
|
||||||
['2014-01-16-aj', 5],
|
|
||||||
]
|
|
||||||
for k, (cell, run) in enumerate(example_cells):
|
for k, (cell, run) in enumerate(example_cells):
|
||||||
eodf, rate, cv, _, _, _, _ = load_baseline(results_path, cell)
|
eodf, rate, cv, _, _, _, _ = load_baseline(data_path, cell)
|
||||||
fcutoff, contrast, freqs, gain, chi2 = load_spectra(results_path, cell, run)
|
fcutoff, contrast, freqs, gain, chi2 = load_spectra(data_path, cell, run)
|
||||||
dfreqs, diag = diag_projection(freqs, chi2, 2*fcutoff)
|
dfreqs, diag = diag_projection(freqs, chi2, 2*fcutoff)
|
||||||
nli, nlif = peakedness(dfreqs, diag, rate, median=False)
|
nli, nlif = peakedness(dfreqs, diag, rate, median=False)
|
||||||
print(f' {cell:<22s}: run={run:2d}, fbase={rate:3.0f}Hz, CV={cv:.2f}, SI={nli:3.1f}')
|
print(f' {cell:<22s}: run={run:2d}, fbase={rate:3.0f}Hz, CV={cv:.2f}, SI={nli:3.1f}')
|
||||||
|
BIN
data/cells/2010-11-26-an-baseline.npz
Normal file
BIN
data/cells/2010-11-26-an-baseline.npz
Normal file
Binary file not shown.
BIN
data/cells/2010-11-26-an-spectral-100-s00.npz
Normal file
BIN
data/cells/2010-11-26-an-spectral-100-s00.npz
Normal file
Binary file not shown.
BIN
data/cells/2010-11-26-an-spectral-s00.npz
Normal file
BIN
data/cells/2010-11-26-an-spectral-s00.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-02-18-ab-baseline.npz
Normal file
BIN
data/cells/2011-02-18-ab-baseline.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-02-18-ab-spectral-050-s01.npz
Normal file
BIN
data/cells/2011-02-18-ab-spectral-050-s01.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-02-18-ab-spectral-100-s00.npz
Normal file
BIN
data/cells/2011-02-18-ab-spectral-100-s00.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-02-18-ab-spectral-s00.npz
Normal file
BIN
data/cells/2011-02-18-ab-spectral-s00.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-02-18-ab-spectral-s01.npz
Normal file
BIN
data/cells/2011-02-18-ab-spectral-s01.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-10-25-ac-baseline.npz
Normal file
BIN
data/cells/2011-10-25-ac-baseline.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-10-25-ac-spectral-025-s00.npz
Normal file
BIN
data/cells/2011-10-25-ac-spectral-025-s00.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-10-25-ac-spectral-025-s04.npz
Normal file
BIN
data/cells/2011-10-25-ac-spectral-025-s04.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-10-25-ac-spectral-050-s01.npz
Normal file
BIN
data/cells/2011-10-25-ac-spectral-050-s01.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-10-25-ac-spectral-050-s05.npz
Normal file
BIN
data/cells/2011-10-25-ac-spectral-050-s05.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-10-25-ac-spectral-100-s02.npz
Normal file
BIN
data/cells/2011-10-25-ac-spectral-100-s02.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-10-25-ac-spectral-100-s06.npz
Normal file
BIN
data/cells/2011-10-25-ac-spectral-100-s06.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-10-25-ac-spectral-200-s03.npz
Normal file
BIN
data/cells/2011-10-25-ac-spectral-200-s03.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-10-25-ac-spectral-s00.npz
Normal file
BIN
data/cells/2011-10-25-ac-spectral-s00.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-10-25-ac-spectral-s01.npz
Normal file
BIN
data/cells/2011-10-25-ac-spectral-s01.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-10-25-ac-spectral-s02.npz
Normal file
BIN
data/cells/2011-10-25-ac-spectral-s02.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-10-25-ac-spectral-s03.npz
Normal file
BIN
data/cells/2011-10-25-ac-spectral-s03.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-10-25-ac-spectral-s04.npz
Normal file
BIN
data/cells/2011-10-25-ac-spectral-s04.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-10-25-ac-spectral-s05.npz
Normal file
BIN
data/cells/2011-10-25-ac-spectral-s05.npz
Normal file
Binary file not shown.
BIN
data/cells/2011-10-25-ac-spectral-s06.npz
Normal file
BIN
data/cells/2011-10-25-ac-spectral-s06.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-03-30-ah-baseline.npz
Normal file
BIN
data/cells/2012-03-30-ah-baseline.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-03-30-ah-spectral-025-s00.npz
Normal file
BIN
data/cells/2012-03-30-ah-spectral-025-s00.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-03-30-ah-spectral-025-s01.npz
Normal file
BIN
data/cells/2012-03-30-ah-spectral-025-s01.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-03-30-ah-spectral-025-s02.npz
Normal file
BIN
data/cells/2012-03-30-ah-spectral-025-s02.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-03-30-ah-spectral-025-s03.npz
Normal file
BIN
data/cells/2012-03-30-ah-spectral-025-s03.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-03-30-ah-spectral-025-s04.npz
Normal file
BIN
data/cells/2012-03-30-ah-spectral-025-s04.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-03-30-ah-spectral-050-s05.npz
Normal file
BIN
data/cells/2012-03-30-ah-spectral-050-s05.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-03-30-ah-spectral-s00.npz
Normal file
BIN
data/cells/2012-03-30-ah-spectral-s00.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-03-30-ah-spectral-s01.npz
Normal file
BIN
data/cells/2012-03-30-ah-spectral-s01.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-03-30-ah-spectral-s02.npz
Normal file
BIN
data/cells/2012-03-30-ah-spectral-s02.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-03-30-ah-spectral-s03.npz
Normal file
BIN
data/cells/2012-03-30-ah-spectral-s03.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-03-30-ah-spectral-s04.npz
Normal file
BIN
data/cells/2012-03-30-ah-spectral-s04.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-03-30-ah-spectral-s05.npz
Normal file
BIN
data/cells/2012-03-30-ah-spectral-s05.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-baseline-data.npz
Normal file
BIN
data/cells/2012-05-15-ac-baseline-data.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-baseline.npz
Normal file
BIN
data/cells/2012-05-15-ac-baseline.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-metadata.npz
Normal file
BIN
data/cells/2012-05-15-ac-metadata.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-025-s00.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-025-s00.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-050-s01.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-050-s01.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-050-s02.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-050-s02.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-100-s03.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-100-s03.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-100-s04.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-100-s04.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-200-s05.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-200-s05.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-200-s06.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-200-s06.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-data-s00.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-data-s00.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-data-s01.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-data-s01.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-data-s02.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-data-s02.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-data-s03.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-data-s03.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-data-s04.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-data-s04.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-data-s05.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-data-s05.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-data-s06.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-data-s06.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-s00.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-s00.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-s01.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-s01.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-s02.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-s02.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-s03.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-s03.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-s04.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-s04.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-s05.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-s05.npz
Normal file
Binary file not shown.
BIN
data/cells/2012-05-15-ac-spectral-s06.npz
Normal file
BIN
data/cells/2012-05-15-ac-spectral-s06.npz
Normal file
Binary file not shown.
BIN
data/cells/2014-01-16-aj-baseline.npz
Normal file
BIN
data/cells/2014-01-16-aj-baseline.npz
Normal file
Binary file not shown.
BIN
data/cells/2014-01-16-aj-spectral-025-s00.npz
Normal file
BIN
data/cells/2014-01-16-aj-spectral-025-s00.npz
Normal file
Binary file not shown.
BIN
data/cells/2014-01-16-aj-spectral-025-s01.npz
Normal file
BIN
data/cells/2014-01-16-aj-spectral-025-s01.npz
Normal file
Binary file not shown.
BIN
data/cells/2014-01-16-aj-spectral-025-s06.npz
Normal file
BIN
data/cells/2014-01-16-aj-spectral-025-s06.npz
Normal file
Binary file not shown.
BIN
data/cells/2014-01-16-aj-spectral-025-s07.npz
Normal file
BIN
data/cells/2014-01-16-aj-spectral-025-s07.npz
Normal file
Binary file not shown.
BIN
data/cells/2014-01-16-aj-spectral-050-s02.npz
Normal file
BIN
data/cells/2014-01-16-aj-spectral-050-s02.npz
Normal file
Binary file not shown.
BIN
data/cells/2014-01-16-aj-spectral-050-s03.npz
Normal file
BIN
data/cells/2014-01-16-aj-spectral-050-s03.npz
Normal file
Binary file not shown.
BIN
data/cells/2014-01-16-aj-spectral-050-s04.npz
Normal file
BIN
data/cells/2014-01-16-aj-spectral-050-s04.npz
Normal file
Binary file not shown.
BIN
data/cells/2014-01-16-aj-spectral-050-s05.npz
Normal file
BIN
data/cells/2014-01-16-aj-spectral-050-s05.npz
Normal file
Binary file not shown.
BIN
data/cells/2014-01-16-aj-spectral-s00.npz
Normal file
BIN
data/cells/2014-01-16-aj-spectral-s00.npz
Normal file
Binary file not shown.
BIN
data/cells/2014-01-16-aj-spectral-s01.npz
Normal file
BIN
data/cells/2014-01-16-aj-spectral-s01.npz
Normal file
Binary file not shown.
BIN
data/cells/2014-01-16-aj-spectral-s02.npz
Normal file
BIN
data/cells/2014-01-16-aj-spectral-s02.npz
Normal file
Binary file not shown.
BIN
data/cells/2014-01-16-aj-spectral-s03.npz
Normal file
BIN
data/cells/2014-01-16-aj-spectral-s03.npz
Normal file
Binary file not shown.
BIN
data/cells/2014-01-16-aj-spectral-s04.npz
Normal file
BIN
data/cells/2014-01-16-aj-spectral-s04.npz
Normal file
Binary file not shown.
BIN
data/cells/2014-01-16-aj-spectral-s05.npz
Normal file
BIN
data/cells/2014-01-16-aj-spectral-s05.npz
Normal file
Binary file not shown.
BIN
data/cells/2014-01-16-aj-spectral-s06.npz
Normal file
BIN
data/cells/2014-01-16-aj-spectral-s06.npz
Normal file
Binary file not shown.
BIN
data/cells/2014-01-16-aj-spectral-s07.npz
Normal file
BIN
data/cells/2014-01-16-aj-spectral-s07.npz
Normal file
Binary file not shown.
BIN
data/cells/2018-08-24-ak-baseline.npz
Normal file
BIN
data/cells/2018-08-24-ak-baseline.npz
Normal file
Binary file not shown.
BIN
data/cells/2018-08-24-ak-spectral-050-s01.npz
Normal file
BIN
data/cells/2018-08-24-ak-spectral-050-s01.npz
Normal file
Binary file not shown.
BIN
data/cells/2018-08-24-ak-spectral-100-s00.npz
Normal file
BIN
data/cells/2018-08-24-ak-spectral-100-s00.npz
Normal file
Binary file not shown.
BIN
data/cells/2018-08-24-ak-spectral-s00.npz
Normal file
BIN
data/cells/2018-08-24-ak-spectral-s00.npz
Normal file
Binary file not shown.
BIN
data/cells/2018-08-24-ak-spectral-s01.npz
Normal file
BIN
data/cells/2018-08-24-ak-spectral-s01.npz
Normal file
Binary file not shown.
BIN
data/cells/2020-10-27-ag-invivo-1-baseline-data.npz
Normal file
BIN
data/cells/2020-10-27-ag-invivo-1-baseline-data.npz
Normal file
Binary file not shown.
BIN
data/cells/2020-10-27-ag-invivo-1-baseline.npz
Normal file
BIN
data/cells/2020-10-27-ag-invivo-1-baseline.npz
Normal file
Binary file not shown.
BIN
data/cells/2020-10-27-ag-invivo-1-metadata.npz
Normal file
BIN
data/cells/2020-10-27-ag-invivo-1-metadata.npz
Normal file
Binary file not shown.
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-001-s05.npz
Normal file
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-001-s05.npz
Normal file
Binary file not shown.
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-005-s04.npz
Normal file
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-005-s04.npz
Normal file
Binary file not shown.
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-010-s03.npz
Normal file
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-010-s03.npz
Normal file
Binary file not shown.
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-050-s02.npz
Normal file
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-050-s02.npz
Normal file
Binary file not shown.
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-100-s01.npz
Normal file
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-100-s01.npz
Normal file
Binary file not shown.
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-200-s00.npz
Normal file
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-200-s00.npz
Normal file
Binary file not shown.
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-data-s00.npz
Normal file
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-data-s00.npz
Normal file
Binary file not shown.
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-data-s01.npz
Normal file
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-data-s01.npz
Normal file
Binary file not shown.
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-data-s02.npz
Normal file
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-data-s02.npz
Normal file
Binary file not shown.
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-data-s03.npz
Normal file
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-data-s03.npz
Normal file
Binary file not shown.
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-data-s04.npz
Normal file
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-data-s04.npz
Normal file
Binary file not shown.
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-data-s05.npz
Normal file
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-data-s05.npz
Normal file
Binary file not shown.
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-s00.npz
Normal file
BIN
data/cells/2020-10-27-ag-invivo-1-spectral-s00.npz
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user