allensdk.brain_observatory.behavior.data_files.dff_file module¶
- class allensdk.brain_observatory.behavior.data_files.dff_file.DFFFile(filepath: str | Path)[source]¶
Bases:
DataFileA DataFile which contains methods for accessing and loading DFF traces.
- classmethod from_json(dict_repr: dict) DFFFile[source]¶
Populates a DataFile from a JSON compatible dict (likely parsed by argschema)
- Returns:
- DataFile:
An instantiated DataFile which has data and filepath properties
- classmethod from_lims(db: PostgresQueryMixin, ophys_experiment_id: int | str) DFFFile[source]¶
Populate a DataFile from an internal database (likely LIMS)
- Returns:
- DataFile:
An instantiated DataFile which has data and filepath properties
- static load_data(filepath: str | Path) DataFrame[source]¶
Given a filepath (that is meant to by read by the DataFile type), load the contents of the file into a Python type. (dict, DataFrame, list, etc…)
- Parameters:
- filepathUnion[str, Path]
The filepath that the DataFile class should load.
- Returns:
- Any
A Python data type that has been parsed/loaded from the provided filepath.