Skip to content

duration of sessions #1713

@bendichter

Description

@bendichter

I am involved in a project where it is useful to estimate the number of hours of publicly available data across the archive for different modalities (ephys, ca imaging, etc.). This currently requires examination of the contents of (all) NWB files individually, but I think this is a good candidate for pulling more metadata into the asset metadata. This would help a lot of anyone interested in filtering neurophysiology recordings by the duration of the session. We could also provide a total duration attribute in the assets summary, which might be of interest to data users. At the very least it will help us communicate the volume of data available in the archive.

I think it would be possible to represent this without modification to the schema using the wasGeneratedBy Activity, which has fields for startDate and endDate (which are in fact datetimes).

This would just involve creating a new "acquisition" activity where the start date is taken directly from the NWB session_start_time and the end date is calculated by the getting the max duration of all the time series and time intervals tables.

If there is interest in this, I can put together a few functions that could plug into the DANDI CLI to accomplish this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions