SpikeInterface / spikeinterface-pipelines

Collection of standardized analysis pipelines based on SpikeInterface
MIT License
3 stars 0 forks source link

Add sorting properties for propagation to units table #19

Open alejoe91 opened 4 months ago

alejoe91 commented 4 months ago

This should work and needs to be run before the write_waveforms:

ccgs, bins = we.load_extension("correlograms").get_data()

acgs = []
acg_bin_edges = []
for unit_index, unit_id in enumerate(we.unit_ids):
    acgs.append(ccgs[unit_index, unit_index, :])
    acg_bin_edges.append(acg_bin_edges)
we.sorting.set_property("acg", acgs)
we.sorting.set_property("acg_bin_edges", acg_bin_edges)
alejoe91 commented 4 months ago

along the same lines, we could add a unit_location column:

unit_locations = we.load_extension("unit_locations").get_data()

we.sorting.set_property("unit_location", unit_locations)
alejoe91 commented 4 months ago

We should also add the pass QC with a bool of whether the unit passes or not the curation query.

The curation query should be the description of this additional column.