diff --git a/pyproject.toml b/pyproject.toml index e66a7b8..bae7ce5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ classifiers = [ ] dependencies = [ - "neuroconv", + "neuroconv[spikegadgets,video]", "nwbinspector", "pre-commit", "ipykernel", diff --git a/src/jadhav_lab_to_nwb/olson_2024/olson_2024_convert_session.py b/src/jadhav_lab_to_nwb/olson_2024/olson_2024_convert_session.py index 2c51755..949c04a 100644 --- a/src/jadhav_lab_to_nwb/olson_2024/olson_2024_convert_session.py +++ b/src/jadhav_lab_to_nwb/olson_2024/olson_2024_convert_session.py @@ -5,7 +5,6 @@ import shutil from neuroconv.utils import load_dict_from_file, dict_deep_update -from neuroconv.datainterfaces import SpikeGadgetsRecordingInterface from jadhav_lab_to_nwb.olson_2024 import Olson2024NWBConverter @@ -29,6 +28,11 @@ def session_to_nwb(data_dir_path: str | Path, output_dir_path: str | Path, stub_ source_data.update(dict(Recording=dict(file_path=file_path))) conversion_options.update(dict(Recording=dict(stub_test=stub_test))) + # Add Video + file_paths = [data_dir_path / f"{data_dir_path.name}.1.h264"] + source_data.update(dict(Video=dict(file_paths=file_paths))) + conversion_options.update(dict(Video=dict())) + converter = Olson2024NWBConverter(source_data=source_data) # Add datetime to conversion diff --git a/src/jadhav_lab_to_nwb/olson_2024/olson_2024_metadata.yaml b/src/jadhav_lab_to_nwb/olson_2024/olson_2024_metadata.yaml index 1fc4a24..3934249 100644 --- a/src/jadhav_lab_to_nwb/olson_2024/olson_2024_metadata.yaml +++ b/src/jadhav_lab_to_nwb/olson_2024/olson_2024_metadata.yaml @@ -40,3 +40,8 @@ Ecephys: ElectricalSeries: - name: ElectricalSeries description: Raw acquisition of extracellular electrophysiology data recorded by SpikeGadgets. + +Behavior: + Videos: + - name: Video SL18_D19_S01_F01_BOX_SLP_20230503_112642.1 + description: Video of the rat in the box. diff --git a/src/jadhav_lab_to_nwb/olson_2024/olson_2024_nwbconverter.py b/src/jadhav_lab_to_nwb/olson_2024/olson_2024_nwbconverter.py index 296efef..ef5de6b 100644 --- a/src/jadhav_lab_to_nwb/olson_2024/olson_2024_nwbconverter.py +++ b/src/jadhav_lab_to_nwb/olson_2024/olson_2024_nwbconverter.py @@ -1,5 +1,6 @@ """Primary NWBConverter class for this dataset.""" from neuroconv import NWBConverter +from neuroconv.datainterfaces import VideoInterface from jadhav_lab_to_nwb.olson_2024 import Olson2024BehaviorInterface, Olson2024SpikeGadgetsRecordingInterface @@ -9,4 +10,5 @@ class Olson2024NWBConverter(NWBConverter): data_interface_classes = dict( Recording=Olson2024SpikeGadgetsRecordingInterface, + Video=VideoInterface, )