Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sorting properties for propagation to units table #19

Open
alejoe91 opened this issue May 2, 2024 · 2 comments
Open

Add sorting properties for propagation to units table #19

alejoe91 opened this issue May 2, 2024 · 2 comments

Comments

@alejoe91
Copy link
Member

alejoe91 commented May 2, 2024

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
Copy link
Member Author

alejoe91 commented May 9, 2024

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 alejoe91 changed the title Add ACG ad sorting properties for propagation to units table Add sorting properties for propagation to units table May 9, 2024
@alejoe91
Copy link
Member Author

alejoe91 commented May 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant