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

Add demo notebook #13

Merged
merged 8 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9,325 changes: 9,325 additions & 0 deletions src/cai_lab_to_nwb/zaki_2024/tutorials/zaki_2024_tutorial.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/cai_lab_to_nwb/zaki_2024/zaki_2024_convert_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ def session_to_nwb(

if __name__ == "__main__":

subject_id = "Ca_EEG2-1"
session_type = "FC" #
subject_id = "Ca_EEG3-4"
session_type = "OfflineDay1Session16" #
session_id = subject_id + "_" + session_type
stub_test = True
stub_test = False
verbose = True
yaml_file_path = Path(__file__).parent / "utils/conversion_parameters.yaml"
conversion_parameter_dict = load_dict_from_file(yaml_file_path)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@ def session_to_nwb(

nwbfile.add_epoch(start_time=start_time, stop_time=stop_time, session_ids=session_id)

session_description = (
"Week long of continuous recording with HD-X02 wireless telemetry probe of EEG, EMG, Temperature and Activity signals. "
"Conditioning and Offline sessions, as described in the experiment_description, were performed during the week. "
"The output of cell registration across conditioning and offline sessions are reported in this nwb file. "
)
metadata["NWBFile"]["session_description"] = session_description

# Run conversion
configure_and_write_nwbfile(nwbfile=nwbfile, backend="hdf5", output_filepath=nwbfile_path)

Expand All @@ -163,7 +170,7 @@ def session_to_nwb(
# Parameters for conversion
data_dir_path = Path("D:/")
output_dir_path = Path("D:/cai_lab_conversion_nwb/")
subject_id = "Ca_EEG2-1"
subject_id = "Ca_EEG3-4"
stub_test = False
session_to_nwb(
data_dir_path=data_dir_path,
Expand Down
4 changes: 2 additions & 2 deletions src/cai_lab_to_nwb/zaki_2024/zaki_2024_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Subject:
description: Adult C57BL/6J wild-type mice from Jackson Laboratories were used.
Mice ordered from Jackson arrived group-housed in cages of 4 mice/cage and were singly housed for the experiment.
Mice were ordered to arrive at 8-9 weeks of age and underwent behavioral testing about 4-6 weeks after the arrival date.
All experimental procedures were approved by the Icahn School of Medicine at Mount Sinais IACUC.
All experimental procedures were approved by the Icahn School of Medicine at Mount Sinai's IACUC.
age: P12W/P18W
sex: M
strain: C57BL/6J
Expand All @@ -79,7 +79,7 @@ Ophys:
location: CA1
device: Microscope
optical_channel:
- name: OpticalChannel
- name: GreenChannel
description: Green channel of the microscope.
emission_lambda: 513.0
indicator: GCaMP6f