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 some metadata #20

Merged
merged 10 commits into from
Dec 19, 2024
Next Next commit
added session_description
  • Loading branch information
pauladkisson committed Dec 10, 2024
commit 7cad39c4e7daf638e58c61ddb6b5f64e9b825fd8
Original file line number Diff line number Diff line change
@@ -103,6 +103,12 @@ def session_to_nwb(
editable_metadata = load_dict_from_file(editable_metadata_path)
metadata = dict_deep_update(metadata, editable_metadata)

# Add session description to metadata
behavior_folder_name = behavior_file_path.parent.name
session_metadata = next(meta for meta in metadata["Session"] if meta["name"] == behavior_folder_name)
session_description = session_metadata["description"]
metadata["NWBFile"]["session_description"] = session_description

add_session_start_time_to_metadata(
behavior_file_path=behavior_file_path, ephys_folder_path=ephys_folder_path, metadata=metadata
)
Original file line number Diff line number Diff line change
@@ -25,6 +25,16 @@ BrainRegion:
electrode_group_location: Secondary Motor Cortex (M2)
optogenetic_stimulus_site_location: Secondary Motor Cortex (1.0-1.5 AP, 0.5-0.7 ML)

Session:
- name: A1_EphysBehavioralFiles
description: Mice performed the auditory guided task while electricophysiological neural activity was recorded in the primary auditory cortex (A1).
- name: A1_OptoBehavioralFiles
description: Mice performed the auditory guided task while optogenetic stimulation was delivered to the primary auditory cortex (A1).
- name: M2_EphysBehavioralFiles
description: Mice performed the auditory guided task while electricophysiological neural activity was recorded in the secondary motor cortex (M2).
- name: M2_OptoBehavioralFiles
description: Mice performed the auditory guided task while optogenetic stimulation was delivered to the secondary motor cortex (M2).

Ecephys:
Device:
- name: MasmanidisSiliconMicroprobe128AxN