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:
object
Configuration for saving
movement poses
dataset 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 givenmovement
dataset.- nwbfile_kwargs#
Keyword arguments for
pynwb.file.NWBFile
.If
nwbfile_kwargs
is a single dictionary, the same keyword arguments will be applied to all NWBFile objects except foridentifier
.If
nwbfile_kwargs
is a dictionary of dictionaries, the outer keys should correspond to individual names in themovement
dataset, and the inner dictionaries will be passed as keyword arguments to thepynwb.file.NWBFile
constructor.The following arguments cannot be overwritten:
subject
:pynwb.file.Subject
created 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
identifier
will be set in the following order of precedence:identifier
in the inner dictionarynwbfile_kwargs["identifier"]
(single-individual dataset only)individual name in the
movement
dataset
- processing_module_kwargs#
Keyword arguments for
pynwb.base.ProcessingModule
.If
processing_module_kwargs
is a single dictionary, the same keyword arguments will be applied to all ProcessingModules.If
processing_module_kwargs
is a dictionary of dictionaries, the outer keys should correspond to individual names in themovement
dataset, and the inner dictionaries will be passed as keyword arguments to thepynwb.file.ProcessingModule
constructor.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_kwargs
is a single dictionary, the same keyword arguments will be applied to all Subjects except forsubject_id
.If
subject_kwargs
is a dictionary of dictionaries, the outer keys should correspond to individual names in themovement
dataset, and the inner dictionaries will be passed as keyword arguments to thepynwb.file.Subject
constructor.subject_id
will be set in the following order of precedence:subject_id
in the inner dictionarysubject_kwargs["subject_id"]
(single-individual dataset only)individual name in the
movement
dataset
- pose_estimation_series_kwargs#
Keyword arguments for
ndx_pose.PoseEstimationSeries
[1].If
pose_estimation_series_kwargs
is a single dictionary, the same keyword arguments will be applied to all PoseEstimationSeries objects.If
pose_estimation_series_kwargs
is a dictionary of dictionaries, the outer keys should correspond to keypoint names in themovement
dataset, and the inner dictionaries will be passed as keyword arguments to thendx_pose.PoseEstimationSeries
constructor.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 …”
name
will be set in the following order of precedence:name
in the inner dictionarypose_estimation_series_kwargs["name"]
(single-keypoint dataset only)keypoint name in the
movement
dataset
- pose_estimation_kwargs#
Keyword arguments for
ndx_pose.PoseEstimation
[1].If
pose_estimation_kwargs
is a single dictionary, the same keyword arguments will be applied to all PoseEstimation objects.If
pose_estimation_kwargs
is a dictionary of dictionaries, the outer keys should correspond to individual names in themovement
dataset, and the inner dictionaries will be passed as keyword arguments to thendx_pose.PoseEstimation
constructor.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_software
attribute from themovement
datasetdescription
: “Estimated positions of <keypoints> for <individual> using <source_software>.”
If specified,
name
will be set in the following order of precedence:name
in the inner dictionarypose_estimation_kwargs["name"]
(single-individual dataset only)individual name in the
movement
dataset
- skeleton_kwargs#
Keyword arguments for
ndx_pose.Skeleton
[1].If
skeleton_kwargs
is a single dictionary, the same keyword arguments will be applied to all Skeleton objects.If
skeleton_kwargs
is a dictionary of dictionaries, the outer keys should correspond to individual names in themovement
dataset, and the inner dictionaries will be passed as keyword arguments to thendx_pose.Skeleton
constructor.The following arguments cannot be overwritten:
subject
:pynwb.file.Subject
created 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
name
will be set in the following order of precedence:name
in the inner dictionaryskeleton_kwargs["name"]
(single-individual dataset only)individual name in the
movement
dataset
References
See also
movement.io.save_poses.to_nwb_file
Example usage of this class to save a
movement
dataset to an NWB file.