Skip to content

Reading Allen Cell Types files #275

@nicain

Description

@nicain

Problem/Use Case

Implement backwards-compatible read capability for Allen Cell Types Database files:


from allensdk.core.cell_types_cache import CellTypesCache
ctc = CellTypesCache(manifest_file='boc/manifest.json')
cell_specimen_id = 464212183
data_set = ctc.get_ephys_data(cell_specimen_id)

legacy_map = pynwb.legacy.get_type_map()
io2 = pynwb.NWBHDF5IO(data_set.file_name, extensions=legacy_map, mode='r')
nwb_data = io2.read()

Checklist

  • Have you ensured the feature or change was not already reported ?
  • Have you included a brief and descriptive title?
  • Have you included a clear description of the problem you are trying to solve?
  • Have you included a minimal code snippet that reproduces the issue you are encountering?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions