allensdk.brain_observatory.behavior.data_objects.metadata.subject_metadata.mouse_id module

class allensdk.brain_observatory.behavior.data_objects.metadata.subject_metadata.mouse_id.MouseId(mouse_id: str)[source]

Bases: DataObject, LimsReadableInterface, JsonReadableInterface, NwbReadableInterface

the LabTracks ID

classmethod from_json(dict_repr: dict) MouseId[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) MouseId[source]

Populate a DataObject from an internal database (likely LIMS)

Returns:
DataObject:

An instantiated DataObject which has name and value properties

classmethod from_nwb(nwbfile: NWBFile) MouseId[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