Goldin et al. 2022 Dataset
Mouse retinal ganglion cell responses under varying visual contexts, originally published in Goldin et al. (2022): Context-dependent selectivity to natural images in the retina, Nature Communications.
Dataset: zenodo.org/records/6868362
Stimuli
stimuli
Minimal stimulus loading utilities to train a model on the data used in Goldin et al. 2022.
Paper: https://doi.org/10.1038/s41467-022-33242-8 Data: https://zenodo.org/record/6868362#.YtgeLoxBxH4 [Unformatted]
OpenRetina provides a mirror of the dataset on huggingface: https://huggingface.co/datasets/open-retina/open-retina/tree/main/marre_lab/goldin_2022
load_all_stimuli
load_all_stimuli(
base_data_path: str | PathLike,
stim_type: Literal["naturalscene"] = "naturalscene",
specie: Literal["mouse", "axolotl"] = "mouse",
normalize_stimuli: bool = True,
) -> dict[str, MoviesTrainTestSplit]
Load all stimuli from sessions within subfolders in a given base data path.
The base data path should point to the location of the neural_code_data folder.
(See https://zenodo.org/record/6868362#.YtgeLoxBxH4 [Unformatted] for dataset download).
Alternatively, base_data_path can point directly to our huggingface mirror of the dataset, which will then be downloaded and extracted automatically to the openretina cache directory.
Source code in openretina/data_io/goldin_2022/stimuli.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | |
Responses
responses
Minimal stimulus loading utilities to train a model on the data used in Goldin et al. 2022.
Paper: https://doi.org/10.1038/s41467-022-33242-8 Data: https://zenodo.org/record/6868362#.YtgeLoxBxH4 [Unformatted]
OpenRetina provides a mirror of the dataset on huggingface: https://huggingface.co/datasets/open-retina/open-retina/tree/main/marre_lab/goldin_2022
load_all_responses
load_all_responses(
base_data_path: str | PathLike,
response_type: Literal[
"firing_rate_300ms"
] = "firing_rate_300ms",
stim_type: Literal["naturalscene"] = "naturalscene",
specie: Literal["mouse", "axolotl"] = "mouse",
fr_normalization: float = 1,
) -> dict[str, ResponsesTrainTestSplit]
Load all stimuli from sessions within subfolders in a given base data path.
The base data path should point to the location of the neural_code_data folder.
(See https://zenodo.org/record/6868362#.YtgeLoxBxH4 [Unformatted] for dataset download).
Alternatively, base_data_path can point directly to our huggingface mirror of the dataset, which will then be downloaded and extracted automatically to the openretina cache directory.
Source code in openretina/data_io/goldin_2022/responses.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | |
load_test_repeats_for_session
load_test_repeats_for_session(
session_path: str | PathLike,
fr_normalization: float = 1,
) -> ndarray | None
Load repeated test responses stored under /test/repeats/cell_{idx}.
Returns repeats x neurons x time or None if no repeats are present.
Source code in openretina/data_io/goldin_2022/responses.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | |