P-unit data in nixio format for the paper 'Beat encoding at mistuned octaves within single electrosensory neurons'

ABarayeu d16ead1c60 'README.md' ändern 1 year ago
2019-05-07-aq-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-05-07-as-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-05-07-au-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-05-07-az-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-05-07-bd-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-05-07-bh-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-05-07-bl-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-05-07-bp-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-05-07-bt-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-05-07-cc-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-09-23-ac-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-09-23-ad-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-09-23-aj-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-09-23-an-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-10-21-aa-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-10-21-ai-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-10-21-aj-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-10-21-ar-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-10-21-au-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-10-28-aa-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-10-28-ac-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-10-28-ag-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-10-28-ai-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-10-28-aj-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-10-28-ak-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-11-08-aa-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-11-08-ac-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-11-08-ae-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-11-08-ah-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-11-13-ab-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-11-13-ad-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-11-13-ae-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-11-18-aa-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-11-18-ac-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-11-18-ae-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-11-18-af-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-11-18-aj-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-11-18-ak-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-11-18-al-invivo-1.nix 1330f0b8c1 All cells 1 year ago
2019-11-18-am-invivo-1.nix 1330f0b8c1 All cells 1 year ago
LICENSE b279d52e98 Initial commit 1 year ago
README.md d16ead1c60 'README.md' ändern 1 year ago
datacite.yml a8f5245606 'datacite.yml' ändern 1 year ago

README.md

P-unit data in nixio format for the paper 'Beat encoding at mistuned octaves within single electrosensory neurons'

Summary

We provide electrophysiological datasets of primary sensory afferents (P-Units) of the Apteronotus leptorhynchus (Barayeu et al., 2023). The datasets contain intracellular recordings sampled at 40 kHz. It also includes the timing of stimulus-related events recorded along with the electrophysiological data. The datasets also provide the metadata structured in a nixio format. The datasets address contain information and can be analysed with the questions in mind: How are beats at high difference frequencies encoded in the electrosensory system in primary sensory afferents?

Repository structure

The repository contains the P-unit data sets. They are provided in the nixio format (.nix).

Example code to load the data of a cell:

  • import the nixo package

    import nixio as nix
    from matplotlib import pyplot as plt
    import numpy as np
    
  • load cell (works if you are in the cell folder)

    file = nix.File.open('2019-05-07-aq-invivo-1.nix', nix.FileMode.ReadOnly)
    b = file.blocks[0]
    
  • choice of a beat multi_tag

    mt_nr = 1
    mt = b.multi_tags[mt_nr]
    
  • load the array of interest: here the EOD of the fish and the spike times

    EOD = b.data_arrays['LocalEOD-1']
    spikes_all = b.data_arrays['Spikes-1']
    voltage = b.data_arrays['V-1']
    
  • slice the whole data array at the bignning and the extend of the multitag

    eod = EOD.get_slice([mt.positions[:][mt_nr]], [mt.extents[:][mt_nr]], nix.DataSliceMode.Data)[:]
    spikes = spikes_all.get_slice([mt.positions[:][mt_nr]], [mt.extents[:][mt_nr]], nix.DataSliceMode.Data)[:] - mt.positions[:][mt_nr]
    volt = voltage.get_slice([mt.positions[:][mt_nr]], [mt.extents[:][mt_nr]], nix.DataSliceMode.Data)[:]
    
  • get the sampling

    sampling = len(EOD.get_slice([0], [0.1], nix.DataSliceMode.Data)[:]) * 10
    
  • get the time array

    time_array = np.arange(0, mt.extents[:][mt_nr], 1 / sampling)
    
  • example plot of a beat and the P-unit response

    fig, ax = plt.subplots(2, 1, sharex = True)
    ax[0].set_ylabel('mV')
    ax[0].plot(time_array, eod)
    ax[1].plot(time_array, volt)
    ax[1].set_ylabel('mV')
    ax[1].set_xlabel('Time [s]')
    ax[1].set_xlim(0,0.1)
    ax[1].scatter(spikes, np.ones(len(spikes))*np.max(volt))
    plt.show()
    

See https://nixio.readthedocs.io/en/latest/getting_started.html#tutorials for more documentation examples.

datacite.yml
Title Beat encoding at mistuned octaves within single electrosensory neurons
Authors Barayeu,Alexandra;Neuroethology, Institute for Neurobiology, Eberhard Karls University, Tuebingen, Germany;ORCID:0000-0003-3653-5595
Schaefer,Ramona;Neuroethology, Institute for Neurobiology, Eberhard Karls University, Tuebingen, Germany
Grewe,Jan;Neuroethology, Institute for Neurobiology, Eberhard Karls University, Tuebingen, Germany
Benda,Jan;Neuroethology, Institute for Neurobiology, Eberhard Karls University, Tuebingen, Germany
Description Recordings of primary sensory afferents (P-Units) of the Apteronotus leptorhynchus.
License Creative Commons CC0 1.0 Public Domain Dedication (https://creativecommons.org/publicdomain/zero/1.0/)
References Barayeu A., Schaefer R., Grewe J. and Benda J.: Beat encoding at mistuned octaves within single electrosensory neurons, submitted. [doi:tba] (IsSupplementTo)
Funding DFG; BE3699
Keywords Electrosensory system
Beats
Aliasing
Resource Type Dataset