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

Show values of ragged columns in table view #214

Open
rly opened this issue Nov 20, 2024 · 1 comment
Open

Show values of ragged columns in table view #214

rly opened this issue Nov 20, 2024 · 1 comment

Comments

@rly
Copy link

rly commented Nov 20, 2024

DynamicTable objects in NWB can contain ragged columns where each row has a different number of elements. This is represented as a VectorData object with an associated VectorIndex object in the same table that points to it (this index column almost always has the same name as the vectordata object plus a "_index" suffix. https://nwb-schema.readthedocs.io/en/stable/format_description.html#tables-and-ragged-arrays

The table view in Neurosift shows non-ragged column values, but not ragged column values or the column itself.

For example, this is a TimeIntervals table at path /intervals/test that has a custom ragged column that is not shown:
image

This is a Units table which has a "spike_times" column in the schema that is not shown:
image

It would be nice to show some of the values of each column, e.g., if the value is a 1D array: [value1, value2, ..., valueN]

@magland
Copy link
Collaborator

magland commented Nov 20, 2024

@rly

In the table, the columns come from the colnames attribute of the dynamic table. In your example, does the VectorData column appear in the colnames?

In one example Units table I was looking at:
https://neurosift.app/?p=/nwb&url=https://api.dandiarchive.org/api/assets/2b9e441b-56bc-4be2-893e-0e02d22d239d/download/&dandisetId=000582&dandisetVersion=draft&tab=view:Units|/units

The spike_times does not occur in the colnames.

Should we somehow detect these additional columns? What should be the rule here?

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

2 participants