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])[source]

Bases: allensdk.core._data_object_base.data_object.DataObject, allensdk.core._data_object_base.readable_interfaces.LimsReadableInterface, allensdk.core._data_object_base.readable_interfaces.JsonReadableInterface, allensdk.core._data_object_base.readable_interfaces.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: allensdk.internal.api.PostgresQueryMixin, allow_none: bool = False) → '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: pynwb.file.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