Skip to content

Commit 585735f

Browse files
authored
Merge branch 'main' into promote_herd
2 parents e3c3cd3 + 6c49910 commit 585735f

2 files changed

Lines changed: 40 additions & 1 deletion

File tree

common/table.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,19 @@ groups:
136136
- data_type_inc: VectorData
137137
doc: Vector columns, including index columns, of this dynamic table.
138138
quantity: '*'
139+
groups:
140+
- name: meanings_tables
141+
doc: Group containing MeaningsTable objects that provide meanings for
142+
values in VectorData columns within this DynamicTable.
143+
quantity: '?'
144+
groups:
145+
- data_type_inc: MeaningsTable
146+
doc: MeaningsTable objects that provide meanings for values
147+
in VectorData columns within this DynamicTable. Tables should be named
148+
according to the column they provide meanings for with a "_meanings" suffix.
149+
e.g., if a VectorData column is named "stimulus_type", the corresponding
150+
MeaningsTable should be named "stimulus_type_meanings".
151+
quantity: '*'
139152

140153
- data_type_def: AlignedDynamicTable
141154
data_type_inc: DynamicTable
@@ -165,3 +178,25 @@ groups:
165178
container. The name of the category is given by the name of the DynamicTable
166179
and its description by the description attribute of the DynamicTable.
167180
quantity: '*'
181+
182+
- data_type_def: MeaningsTable
183+
data_type_inc: DynamicTable
184+
doc: A table to store information about the meanings of values in a linked VectorData object.
185+
All possible values of the linked VectorData object should be present in the 'value' column
186+
of this table, even if the value is not observed in the data. Additional columns may be
187+
added to store additional metadata about each value. The name of the MeaningsTable
188+
should correspond to the name of the linked VectorData object with a "_meanings" suffix.
189+
e.g., if the linked VectorData object is named "stimulus_type", the corresponding
190+
MeaningsTable should be named "stimulus_type_meanings".
191+
datasets:
192+
- name: value
193+
data_type_inc: VectorData
194+
doc: The value of a row in the linked VectorData object.
195+
- name: meaning
196+
data_type_inc: VectorData
197+
dtype: text
198+
doc: The meaning of the value in the linked VectorData object.
199+
links:
200+
- name: target
201+
target_type: VectorData
202+
doc: Link to the VectorData object for which this table provides meanings.

docs/source/hdmf_common_release_notes.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ hdmf-common Release Notes
55

66
1.9.0 (Upcoming)
77
----------------------
8-
- Change the dtype of `ElementIdentifiers` and `DynamicTableRegion` from "int" to "int32". Under HDMF
8+
- Changed the dtype of ``ElementIdentifiers`` and ``DynamicTableRegion`` from "int" to "int32". Under HDMF
99
schema language 2.x, "int" means "int32" so this change has no functional impact, except when displaying the
1010
spec, such as in error messages.
11+
- Added ``MeaningsTable``, a table for storing meanings for values in linked ``VectorData`` objects.
12+
This is useful for annotating categorical data stored in a ``DynamicTable``. Added a group named "meanings_tables"
13+
to ``DynamicTable`` to hold ``MeaningsTable`` objects that provide meanings for ``VectorData`` columns in the
14+
``DynamicTable``.
1115
- Minor changes to data type docstrings to improve clarity.
1216
- Promoted ``HERD`` from the HDMF-experimental namespace to a stable data type in the HDMF-common
1317
namespace.

0 commit comments

Comments
 (0)