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

class allensdk.brain_observatory.behavior.data_objects.metadata.subject_metadata.full_genotype.FullGenotype(full_genotype: Optional[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 name of the subject’s genotype

classmethod from_json(dict_repr: dict) → 'FullGenotype'[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) → 'FullGenotype'[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: pynwb.file.NWBFile) → 'FullGenotype'[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

parse_cre_line(self, warn=False) → Union[str, NoneType][source]
Parameters:
warn

Whether to output warning if parsing fails

Returns:
cre_line

just the Cre line, e.g. Vip-IRES-Cre, or None if not possible to parse