common_subject.py
Subject
¶
Bases: SpyglassMixin
, Manual
Source code in src/spyglass/common/common_subject.py
insert_from_nwbfile(nwbf, config=None)
classmethod
¶
Get the subject info from the NWBFile, insert into the Subject.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
nwbf |
NWBFile
|
The NWB file with subject information. |
required |
config |
dict
|
Dictionary read from a user-defined YAML file containing values to replace in the NWB file. |
None
|
Returns:
Name | Type | Description |
---|---|---|
subject_id |
string
|
The id of the subject found in the NWB or config file, or None. |