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 DynamicTableRegion column as a link? #175

Open
weiglszonja opened this issue Jun 4, 2024 · 5 comments
Open

Show DynamicTableRegion column as a link? #175

weiglszonja opened this issue Jun 4, 2024 · 5 comments

Comments

@weiglszonja
Copy link

The EventsTable is from ndx-events extension which has a DynamicTableRegion column named event_type that links to the EventTypesTable containing the id and description for each event. Currently the view of this table is showing the event_type as integer value, would it be possible to show it as a link to the other table?

Screenshots:
Screenshot 2024-06-04 at 11 16 54

Screenshot 2024-06-04 at 11 09 39

File:
https://neurosift.app/?p=/nwb&url=https://api.dandiarchive.org/api/assets/a07e739d-6246-4f76-8649-9a345cfbdda7/download/&dandisetId=001038&dandisetVersion=draft&tab=neurodata-item:/processing/behavior/WheelEvents|EventsTable

@weiglszonja
Copy link
Author

Might be connected to #168

@magland
Copy link
Collaborator

magland commented Jun 4, 2024

I'm trying to wrap my head around how neurosift would know to do this in this particular case. Would it need to look at the specification for ndx-events extension? That's gets somewhat tricky.

@weiglszonja
Copy link
Author

Can it just access the table the DynamicTableRegion references? @bendichter any ideas here?

@bendichter
Copy link
Contributor

This is not specific to the ndx-events extension. It happens all over NWB. All DynamicTableRegion columns have an attribute table, which is a reference to the table that it is indexing. The same thing happens when you have a units table that points to an electrodes table.

@bendichter
Copy link
Contributor

This also comes up a lot in intracellular electrophysiology tables

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

3 participants