<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4.1/metadata.xsd"><identifier identifierType="Handle">21.15109/ARP/3FWR4W</identifier><creators><creator><creatorName nameType="Personal">Meszéna, Domokos</creatorName><givenName>Domokos</givenName><familyName>Meszéna</familyName><nameIdentifier nameIdentifierScheme="ORCID">0000-0003-4042-2542</nameIdentifier><affiliation>HUN-REN Research Centre for Natural Sciences</affiliation></creator><creator><creatorName nameType="Personal">Fadel, Ward</creatorName><givenName>Ward</givenName><familyName>Fadel</familyName><affiliation>HUN-REN Research Centre for Natural Sciences</affiliation></creator><creator><creatorName nameType="Personal">Tóth, Róbert</creatorName><givenName>Róbert</givenName><familyName>Tóth</familyName><nameIdentifier nameIdentifierScheme="ORCID">0000-0003-4531-3337</nameIdentifier><affiliation>HUN-REN Wigner Research Centre for Physics</affiliation></creator><creator><creatorName nameType="Personal">Paulk. Angelique C.</creatorName><givenName>Angelique</givenName><familyName>elique C.</familyName><affiliation>Massachusetts General Hospital, Harvard Medical School</affiliation></creator><creator><creatorName nameType="Personal">Cash, Sydney S.</creatorName><givenName>Sydney S.</givenName><familyName>Cash</familyName><affiliation>Massachusetts General Hospital, Harvard Medical School</affiliation></creator><creator><creatorName nameType="Personal">Williams, Ziv</creatorName><givenName>Ziv</givenName><familyName>Williams</familyName><affiliation>Massachusetts General Hospital, Harvard Medical School</affiliation></creator><creator><creatorName nameType="Personal">Kiss, Tamás</creatorName><givenName>Tamás</givenName><familyName>Kiss</familyName><affiliation>HUN-REN Wigner Research Centre for Physics</affiliation></creator><creator><creatorName nameType="Personal">Stippinger, Marcell</creatorName><givenName>Marcell</givenName><familyName>Stippinger</familyName><affiliation>HUN-REN Wigner Research Centre for Physics</affiliation></creator><creator><creatorName nameType="Personal">Wittner, Lucia</creatorName><givenName>Lucia</givenName><familyName>Wittner</familyName><affiliation>HUN-REN Research Centre for Natural Sciences</affiliation></creator><creator><creatorName nameType="Personal">Fiáth, Richárd</creatorName><givenName>Richárd</givenName><familyName>Fiáth</familyName><nameIdentifier nameIdentifierScheme="ORCID">0000-0001-8732-2691</nameIdentifier><affiliation>HUN-REN Research Centre for Natural Sciences</affiliation></creator><creator><creatorName nameType="Personal">Somogyvári, Zoltán</creatorName><givenName>Zoltán</givenName><familyName>Somogyvári</familyName><nameIdentifier nameIdentifierScheme="ORCID">0000-0002-4385-3025</nameIdentifier><affiliation>HUN-REN Wigner Research Centre for Physics</affiliation></creator></creators><titles><title>Dataset for the study "Optimal inter-electrode distances for maximizing single unit yield per electrode in neural recordings"</title></titles><publisher>ARP</publisher><publicationYear>2025</publicationYear><subjects><subject>Medicine, Health and Life Sciences</subject><subject>spike sorting</subject><subject>high-density electrophysiological recording</subject><subject>multielectrode array</subject><subject>neocortex</subject><subject>thalamus</subject><subject>single unit</subject></subjects><contributors><contributor contributorType="ContactPerson"><contributorName nameType="Personal">Fiáth, Richárd</contributorName><givenName>Richárd</givenName><familyName>Fiáth</familyName><affiliation>HUN-REN Research Centre for Natural Sciences</affiliation></contributor></contributors><dates><date dateType="Submitted">2024-07-23</date><date dateType="Updated">2025-11-10</date></dates><resourceType resourceTypeGeneral="Dataset">extracellular electrophysiological recordings from the neocortex and thalamus of rodents</resourceType><relatedIdentifiers><relatedIdentifier relationType="IsCitedBy" relatedIdentifierType="DOI">10.1016/j.jneumeth.2018.08.020</relatedIdentifier><relatedIdentifier relationType="IsCitedBy" relatedIdentifierType="DOI">10.1088/1741-2552/ac0f49</relatedIdentifier></relatedIdentifiers><sizes><size>427</size><size>384</size><size>250</size><size>6508265729</size><size>787002329</size><size>12845815396</size><size>1610542324</size><size>3276925369</size><size>5744800004</size><size>703208328</size><size>11397042285</size><size>1426098159</size><size>2908446906</size><size>3492701101</size><size>424255274</size><size>6949016098</size><size>861569466</size><size>1761037048</size><size>3532877815</size><size>436679372</size><size>7006643015</size><size>884582048</size><size>1795912037</size><size>4549076660</size><size>559485947</size><size>9073132982</size><size>1127323806</size><size>2296338755</size><size>6823159908</size><size>833206644</size><size>13568632150</size><size>1698662515</size><size>3474108069</size><size>8091660379</size><size>989585825</size><size>16078550015</size><size>2013289870</size><size>4109840453</size><size>7100</size><size>2627629808</size><size>262257575</size><size>261184301</size><size>260397880</size><size>263208922</size><size>261509172</size><size>263716450</size><size>262030610</size><size>263454589</size><size>262045080</size><size>263083663</size><size>532095924</size><size>532258248</size><size>533405086</size><size>532396398</size><size>533502999</size><size>675673992</size><size>668960223</size><size>675922510</size><size>668597314</size><size>900509064</size><size>900939412</size><size>900723585</size><size>1395602468</size><size>1383250554</size><size>3161803613</size><size>316455240</size><size>315380715</size><size>314522925</size><size>316616330</size><size>315188056</size><size>316738593</size><size>315348963</size><size>316603911</size><size>315077954</size><size>316576915</size><size>642036993</size><size>641421367</size><size>641777333</size><size>641915851</size><size>641974195</size><size>813144529</size><size>806946215</size><size>812706572</size><size>806813091</size><size>1086168145</size><size>1085446038</size><size>1085866014</size><size>1655281469</size><size>1648872800</size><size>4823176881</size><size>602421715</size><size>9562045907</size><size>1212408421</size><size>2456748066</size><size>3488384502</size><size>3459001840</size><size>422125793</size><size>419450453</size><size>6927864123</size><size>6874161846</size><size>871102993</size><size>861211244</size><size>1751288376</size><size>1735427125</size><size>4921623916</size><size>614145532</size><size>9737063189</size><size>1238084855</size><size>2505801542</size><size>3412452562</size><size>418620968</size><size>6824094929</size><size>838623689</size><size>1712344115</size><size>4827691048</size><size>607962294</size><size>9557184137</size><size>1221679853</size><size>2462638944</size><size>4551717907</size><size>4584790634</size><size>562642149</size><size>563941372</size><size>9082987105</size><size>9152093150</size><size>1127057150</size><size>1131656538</size><size>2291206862</size><size>2302634890</size><size>5013675870</size><size>4945840292</size><size>625082971</size><size>606214579</size><size>9898677030</size><size>9692451617</size><size>1257982568</size><size>1232383170</size><size>2543370064</size><size>2505055197</size><size>7135738301</size><size>876290920</size><size>14052535372</size><size>1781217130</size><size>3607155191</size><size>4389</size><size>2850</size><size>2141</size><size>2139</size></sizes><formats><format>text/csv</format><format>text/csv</format><format>text/csv</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>text/x-python</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>application/x-hdf5</format><format>text/csv</format><format>text/csv</format><format>text/csv</format><format>text/csv</format></formats><version>1.0</version><rightsList><rights rightsURI="info:eu-repo/semantics/openAccess"/><rights rightsURI="http://creativecommons.org/licenses/by/4.0">CC BY 4.0</rights></rightsList><descriptions><description descriptionType="Abstract">Abstract of the study "Optimal inter-electrode distances for maximizing
single unit yield per electrode in neural recordings": State-of-the-art high-density multielectrode arrays enable the recording of simultaneous spiking activity from hundreds of neurons. Although significant efforts have been dedicated to enhancing neural recording devices and developing more efficient sorting algorithms, there has been relatively less focus on the allocation of microelectrodes—a factor that undeniably affects spike sorting effectiveness and ultimately the total number of detected neurons. Here, we systematically examined the relationship between optimal electrode spacing and spike sorting efficiency by creating virtual sparser layouts from high-density recordings through spatial downsampling. We assessed spike sorting performance by comparing the quantity of well-isolated single units per electrode in sparse configurations across various brain regions (neocortex and thalamus), species (rat, mouse, and human) and various spike-sorting algorithms. Enabling the theoretical estimation of optimal electrode arrangements, we complement experimental results with a geometrical modeling framework. Contrary to the general assumption that higher electrode density inherently leads to more efficient sorting, both our theoretical and experimental results reveal a clear optimum for electrode spacing specific to species and regions. We demonstrate that carefully choosing optimal electrode distances could yield a total of 1.7 to 3.75 times increase in spike sorting efficiency. These findings emphasize the necessity of speciesand region-specific microelectrode design optimization.</description><description descriptionType="TechnicalInfo">Kilosort, 2.0</description><description descriptionType="TechnicalInfo">MATLAB, 2019b</description><description descriptionType="TechnicalInfo">Phy, 2</description><description descriptionType="TechnicalInfo">Spikeinterface, 0.100</description><description descriptionType="Other">&lt;h3>Dataset structure&lt;/h3>

&lt;p>Details of collection, processing and analysis of recordings are described in the published article. Each recording and corresponding metadata, single unit properties and quality metrics were packaged in the
&lt;a href="https://www.nwb.org/">Neurodata Without Borders: Neurophysiology version 2.0 (NWB:N 2.0) data format&lt;/a> using the &lt;a href="https://neuroconv.readthedocs.io/en/main/">NeuroConv Python package&lt;/a>. A single NWB file was created from each recording. NWB files were placed in folders based on the brain area (Neocortex or Thalamus), the animal model (Rat, Mouse or Human) and the channel number (e.g., 256, 128, 64, 32 or 16). The filename of the NWB file (identifier) was constructed by concatenating the above information and the identifier of the animal (e.g., Rat01_Neocortex_256channel.nwb). In the case of multiple probe insertions being performed in a single animal, or recordings were carried out at multiple brain depths, this information was also incorporated in the NWB filename (e.g., Rat01_Thalamus_256ch_Insertion1.nwb). The original human Neuropixels recordings can be found in the &lt;a href="https://datadryad.org/stash/dataset/doi:10.5061/dryad.d2547d840">Dryad repository&lt;/a>. &lt;/p>

&lt;p>The CSV file named "Animal_characteristics_" contains information about the subjects (e.g., age, weight, sex). The "Recording_characteristics" CSV file lists several useful properties for each NWB file including the file size, the duration of the recording, the cortical or thalamic location and stereotaxic coordinates, the single unit yield or the average signal-to-noise ratio of single units.&lt;/p>
&lt;br>

&lt;h3>NWB file structure&lt;/h3>

&lt;p>Each NWB file contains several main groups which are similar to directories. The &lt;i>acquisition&lt;/i> group contains the continuous wideband multichannel data (‘ElectricalSeriesRaw’) in a compressed form, as well as several parameters related to the raw data such as the measurement unit or the data conversion number. The &lt;i>general&lt;/i> group contains metadata about the experiments and consists of several subgroups, related to the recording probe (‘general/devices’; ‘general/extracellular_ephys’) or the subjects of the experiments (‘general/subject’). Former subgroups carry information about the probe location (brain area and stereotaxic coordinates), while the latter contains metadata about the animal (e.g., sex, species, subject ID, or weight). Information about spike sorting and single units and corresponding data are available in the &lt;i>units&lt;/i> group. For each unit, we included here the mean and standard deviation of their spike waveform on all channels, calculated from the wideband data (‘waveform_mean’; ’waveform_sd’). Several single unit properties (e.g., half_width, unit_name, peak_channel) and cluster quality metrics (e.g., isolation_distance, amplitude_cutoff, presence ratio), as well as the spike times and spike count of each unit were saved in the units group.The structure of NWB files can be explored using the &lt;a href="https://www.hdfgroup.org/downloads/hdfview/">HDFView&lt;/a> software.&lt;p>
&lt;br>

&lt;h3>Interacting with the NWB files&lt;/h3>

&lt;p> After downloading, the structure of NWB files can be explored using the freely available &lt;a href="https://www.hdfgroup.org/downloads/hdfview/">HDFView&lt;/a> software. Users can import data from NWB files offline using the  &lt;a href="https://github.com/NeurodataWithoutBorders/pynwb/">PyNWB&lt;/a> and &lt;a href="https://github.com/NeurodataWithoutBorders/matnwb/">MatNWB&lt;/a> APIs, or using &lt;a href="https://github.com/SpikeInterface">SpikeInterface&lt;/a>. 
Loaded samples of the raw data have to be multiplied by a conversion number (e.g., 0.195 for multichannel recordings) to get the amplitudes in microvolts. Here we provide some examples how users can import data from NWB files using the MATLAB-based MatNWB API.&lt;/p>
&lt;br>
Loading a short segment (20.000 samples corresponding to 1 second of data) of the raw wideband recording on all channels (e.g., 128 in the example):
&lt;br>
&lt;br>
&lt;code>
1.	nwb = nwbRead('Rat01_Neocortex_128channel.nwb');
&lt;/code>
&lt;br>
&lt;code>
2.	dataChunk=nwb.acquisition.get('ElectricalSeriesRaw').data.load([1, 1], [128, 20000]);
&lt;/code>
&lt;br>
&lt;br>
It is important to note that TimeSeries data types in NWB files are stored with time in the first dimension and channels in the second, but dimensions are reversed in MatNWB.
&lt;br>
Loading and plotting the mean spike waveform of a specific single unit on the peak waveform channel:
&lt;br>
&lt;br>
&lt;code>
3.	peakChannels = nwb.units.vectordata.get('peak_waveform_channel').data.load();
&lt;/code>
&lt;br>
&lt;code>
4.	meanWaveforms = nwb.units.vectordata.get('mean_waveform_all_channels_filt').data.load();
&lt;/code>
&lt;br>
&lt;code>
5.	mySingleUnit = 11;
&lt;/code>
&lt;br>
&lt;code>
6.	singleUnitWaveform = meanWaveforms(peakChannels(mySingleUnit), :, mySingleUnit);
&lt;/code>
&lt;br>
&lt;code>
7.	plot(singleUnitWaveform);
&lt;/code>
&lt;br>
&lt;br>

Loading the isolation distance quality metric of all units found in a single NWB file:
&lt;br>
&lt;br>
&lt;code>
8.	IDvalues = nwb.units.vectordata.get('isolation_distance').data.load();
&lt;/code>
&lt;br>
&lt;br>

Spike times are stored in a special structure called ragged arrays consisting of two vectors. The spike_times vector contains all spike times of all single units concatenated one after the other, while the spike_times_index vector stores where the spike times of individual single units are located in the spike_index vector (see also &lt;a href="https://neurodatawithoutborders.github.io/matnwb/tutorials/html/ecephys.html#H_97F533F8">https://neurodatawithoutborders.github.io/matnwb/tutorials/html/ecephys.html#H_97F533F8&lt;/a>). 
&lt;br>
We can load the spikes times of a specific single unit (in seconds) the following way:
&lt;br>
&lt;br>
&lt;code>
9.	allSpikeTimes = nwb.units.spike_times.data.load();
&lt;/code>
&lt;br>
&lt;code>
10.	spikeTimesIndex = nwb.units.spike_times_index.data.load();
&lt;/code>
&lt;br>
&lt;code>
11.	spikesOfSingleUnit2 = allSpikeTimes(spikeTimesIndex(1)+1 : spikeTimesIndex(2));
&lt;/code>
&lt;br>
&lt;br>
SpikeInterface can also be used to load the wideband data and single unit properties (in Python, works only with version 0.13):
&lt;br>
&lt;br>
&lt;code>
1.	import spikeextractors as se
&lt;/code>
&lt;br>
&lt;code>
2.	nwbPath = 'Rat01_Neocortex_128channel'
&lt;/code>
&lt;br>
&lt;code>
3.	recording = se.NwbRecordingExtractor(nwbPath)
&lt;/code>
&lt;br>
&lt;code>
4.	sorting = se.NwbSortingExtractor(nwbPath)
&lt;/code>
&lt;br>
&lt;code>
5.	mySingleUnit = 2
&lt;/code>
&lt;br>
&lt;code>
6.	sorting.get_unit_property(mySingleUnit,'isolation_distance')
&lt;/code>
&lt;br>
&lt;br>
We also provide a Python script ("NWB_tutorial_script.py") which can be used to load, visualize and preprocess (e.g., filter) files in the dataset using pyNWB.</description></descriptions><geoLocations/><fundingReferences><fundingReference><funderName>Hungarian Brain Research Program</funderName><awardNumber>NAP2022-I-2/2022</awardNumber></fundingReference><fundingReference><funderName>Hungarian Academy of Sciences</funderName><awardNumber>Bolyai János Scholarship</awardNumber></fundingReference><fundingReference><funderName>National Research, Development, and Innovation Fund</funderName><awardNumber>STARTING_24 (150574)</awardNumber></fundingReference><fundingReference><funderName>National Research, Development, and Innovation Fund</funderName><awardNumber>2019-2.1.7-ERA-NET-2021-00023</awardNumber></fundingReference><fundingReference><funderName>Hungarian Research Network (HUN-REN)</funderName><awardNumber>SA-114/2021</awardNumber></fundingReference><fundingReference><funderName>Hungarian Research Network (HUN-REN)</funderName><awardNumber>TECH-2024-20</awardNumber></fundingReference><fundingReference><funderName>New National Excellence Program of the Ministry for Culture and Innovation</funderName><awardNumber>ÚNKP-23-5-PPKE-128</awardNumber></fundingReference><fundingReference><funderName>Hungarian National Research, Development, and Innovation Office</funderName><awardNumber>K135837</awardNumber></fundingReference><fundingReference><funderName>Hungarian National Research, Development, and Innovation Office</funderName><awardNumber>PD143582</awardNumber></fundingReference><fundingReference><funderName>Hungarian Research Network</funderName><awardNumber>ARP Ambassador Program</awardNumber></fundingReference></fundingReferences></resource>