allensdk.brain_observatory.behavior.data_objects.metadata.subject_metadata.driver_line module¶
- class allensdk.brain_observatory.behavior.data_objects.metadata.subject_metadata.driver_line.DriverLine(driver_line: List[str] | None)[source]¶
Bases:
DataObject
,LimsReadableInterface
,JsonReadableInterface
,NwbReadableInterface
the genotype name(s) of the driver line(s)
- classmethod from_json(dict_repr: dict) DriverLine [source]¶
Populates a DataFile from a JSON compatible dict (likely parsed by argschema)
- Returns:
- DataObject:
An instantiated DataObject which has name and value properties
- classmethod from_lims(behavior_session_id: int, lims_db: PostgresQueryMixin, allow_none: bool = True) DriverLine [source]¶
- Parameters:
- behavior_session_id: int
- lims_db: PostgresQueryMixin
- allow_none: bool
if True, allow None as a valid result
- Returns:
- An instance of DriverLine with the value resulting
- from a query to the LIMS database
- classmethod from_nwb(nwbfile: NWBFile) DriverLine [source]¶
Populate a DataObject from a pyNWB file object.
- Parameters:
- nwbfile:
The file object (NWBFile) of a pynwb dataset file.
- Returns:
- DataObject:
An instantiated DataObject which has name and value properties