NWBFileSaveConfig#
- class movement.io.nwb.NWBFileSaveConfig(*, nwbfile_kwargs=NOTHING, processing_module_kwargs=NOTHING, subject_kwargs=NOTHING, pose_estimation_series_kwargs=NOTHING, pose_estimation_kwargs=NOTHING, skeleton_kwargs=NOTHING)[source]#
Bases:
objectConfiguration for saving
movement posesdataset to NWBFile(s).This class is used with
movement.io.save_poses.to_nwb_file()to add custom metadata to the NWBFile(s) created from a givenmovementdataset.- nwbfile_kwargs#
Keyword arguments for
pynwb.file.NWBFile.If
nwbfile_kwargsis a single dictionary, the same keyword arguments will be applied to all NWBFile objects except foridentifier.If
nwbfile_kwargsis a dictionary of dictionaries, the outer keys should correspond to individual names in themovementdataset, and the inner dictionaries will be passed as keyword arguments to thepynwb.file.NWBFileconstructor.The following arguments cannot be overwritten:
subject:pynwb.file.Subjectcreated for the individual usingsubject_kwargs
The following arguments will have default values if not set:
session_description: “not set”session_start_time: current UTC time
identifierwill be set in the following order of precedence:identifierin the inner dictionarynwbfile_kwargs["identifier"](single-individual dataset only)individual name in the
movementdataset
- processing_module_kwargs#
Keyword arguments for
pynwb.base.ProcessingModule.If
processing_module_kwargsis a single dictionary, the same keyword arguments will be applied to all ProcessingModules.If
processing_module_kwargsis a dictionary of dictionaries, the outer keys should correspond to individual names in themovementdataset, and the inner dictionaries will be passed as keyword arguments to thepynwb.file.ProcessingModuleconstructor.The following arguments will have default values if not set:
name: “behavior”description: “processed behavioral data”
- subject_kwargs#
Keyword arguments for
pynwb.file.Subject.If
subject_kwargsis a single dictionary, the same keyword arguments will be applied to all Subjects except forsubject_id.If
subject_kwargsis a dictionary of dictionaries, the outer keys should correspond to individual names in themovementdataset, and the inner dictionaries will be passed as keyword arguments to thepynwb.file.Subjectconstructor.subject_idwill be set in the following order of precedence:subject_idin the inner dictionarysubject_kwargs["subject_id"](single-individual dataset only)individual name in the
movementdataset
- pose_estimation_series_kwargs#
Keyword arguments for
ndx_pose.PoseEstimationSeries[1].If
pose_estimation_series_kwargsis a single dictionary, the same keyword arguments will be applied to all PoseEstimationSeries objects.If
pose_estimation_series_kwargsis a dictionary of dictionaries, the outer keys should correspond to keypoint names in themovementdataset, and the inner dictionaries will be passed as keyword arguments to thendx_pose.PoseEstimationSeriesconstructor.The following arguments will be set based on the dataset and cannot be overwritten:
data: position data for the keypointconfidence: confidence data for the keypointtimestamps: time data for the keypoint
The following arguments will have default values if not set:
unit: “pixels”reference_frame: “(0,0,0) corresponds to …”
namewill be set in the following order of precedence:namein the inner dictionarypose_estimation_series_kwargs["name"](single-keypoint dataset only)keypoint name in the
movementdataset
- pose_estimation_kwargs#
Keyword arguments for
ndx_pose.PoseEstimation[1].If
pose_estimation_kwargsis a single dictionary, the same keyword arguments will be applied to all PoseEstimation objects.If
pose_estimation_kwargsis a dictionary of dictionaries, the outer keys should correspond to individual names in themovementdataset, and the inner dictionaries will be passed as keyword arguments to thendx_pose.PoseEstimationconstructor.The following arguments cannot be overwritten:
pose_estimation_series: list of PoseEstimationSeries objectsskeleton: Skeleton object
The following arguments will have default values if not set:
source_software:source_softwareattribute from themovementdatasetdescription: “Estimated positions of <keypoints> for <individual> using <source_software>.”
If specified,
namewill be set in the following order of precedence:namein the inner dictionarypose_estimation_kwargs["name"](single-individual dataset only)individual name in the
movementdataset
- skeleton_kwargs#
Keyword arguments for
ndx_pose.Skeleton[1].If
skeleton_kwargsis a single dictionary, the same keyword arguments will be applied to all Skeleton objects.If
skeleton_kwargsis a dictionary of dictionaries, the outer keys should correspond to individual names in themovementdataset, and the inner dictionaries will be passed as keyword arguments to thendx_pose.Skeletonconstructor.The following arguments cannot be overwritten:
subject:pynwb.file.Subjectcreated for the individual usingsubject_kwargs
The following arguments will have default values if not set:
name: “<individual>_skeleton”nodes: list of keypoint names in the dataset
namewill be set in the following order of precedence:namein the inner dictionaryskeleton_kwargs["name"](single-individual dataset only)individual name in the
movementdataset
References
See also
movement.io.save_poses.to_nwb_fileExample usage of this class to save a
movementdataset to an NWB file.