AllenInstitute / AllenInstitute/np_codeocean

Upload split recordings

Open
#19 0 comments 0 reactions 1 assignee View on GitHub

@bjhardcastle is already working on this.

Since Jul 29, 2026.

Dominant language
Python
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Description

  • rearrange folders before upload
    • in experiment1 folder, make consecutive recordingN folders
    • normal behavior of deleting all but the largest recording folder must be skipped
  • adjust timestamps / sync messages as necessary, to appear as if all recordings are from one session
  • Needs a processing script prior to upload for recordings resumed after software restart:
    • samples numbers and timestamps need to appear under the same global clock
    • adjust sync_messages.txt, sample_numbers.npy, timestamps.npy, and potentially other files, based on time separation between recordings https://open-ephys.github.io/gui-docs/User-Manual/Recording-data/Binary-format.html
    • separation between recordings could be found to nearest 1 ms from sync_messages.txt, but it should be possible to find it more precisely with barcodes and sync.h5 (using npc_ephys)- [ ]
  • upload without sorting, if possible
  • sorting job must be triggered with concatenate/split-segments parameter set to True (see https://github.com/AllenNeuralDynamics/spikesorting-trigger-capsule/blob/main/code/main.py)
  • keep a record of "unobserved" intervals - ensure in npc_sessions they're detected from the raw or sorted asset and recorded in the units table correctly (add via pynwb.misc.Units.add_unit(obs_intervals=...) and use with nwb.get_unit_spike_times() + nwb.get_unit_obs_intervals() )

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.