Maheswaranathan et al. 2023 Dataset
Primate and mouse retinal ganglion cell responses to natural scenes, originally published in Maheswaranathan et al. (2023): Interpreting the retinal neural code for natural scenes: From computations to neurons, Neuron.
Dataset: purl.stanford.edu/rk663dm5577
Stimuli
stimuli
Minimal stimulus loading utilities to train a model on the data used in Maheswaranathan et al. 2023
Paper: https://doi.org/10.1016/j.neuron.2023.06.007 Data: https://doi.org/10.25740/rk663dm5577
OpenRetina provides a mirror of the dataset on huggingface: https://huggingface.co/datasets/open-retina/open-retina/resolve/main/baccus_lab/maheswaranathan_2023/neural_code_data.zip
load_all_stimuli
load_all_stimuli(
base_data_path: str | PathLike,
stim_type: Literal[
"naturalscene", "whitenoise"
] = "naturalscene",
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://doi.org/10.25740/rk663dm5577 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. https://huggingface.co/datasets/open-retina/open-retina/resolve/main/baccus_lab/maheswaranathan_2023/neural_code_data.zip
Source code in openretina/data_io/maheswaranathan_2023/stimuli.py
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 67 68 69 70 | |
Responses
responses
Minimal responses loading utilities to train a model on the data used in Maheswaranathan et al. 2023
Paper: https://doi.org/10.1016/j.neuron.2023.06.007 Data: https://doi.org/10.25740/rk663dm5577
OpenRetina provides a mirror of the dataset on huggingface: https://huggingface.co/datasets/open-retina/open-retina/resolve/main/baccus_lab/maheswaranathan_2023/neural_code_data.zip
load_test_repeats_for_session
load_test_repeats_for_session(
session_path: str | PathLike,
response_type: Literal[
"firing_rate_5ms",
"firing_rate_10ms",
"firing_rate_20ms",
] = "firing_rate_20ms",
fr_normalization: float = 1,
) -> Float[ndarray, "repeats neurons test_time"]
Load test response repeats for a single session.
Source code in openretina/data_io/maheswaranathan_2023/responses.py
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 | |
load_all_responses
load_all_responses(
base_data_path: str | PathLike,
response_type: Literal[
"firing_rate_5ms",
"firing_rate_10ms",
"firing_rate_20ms",
] = "firing_rate_20ms",
stim_type: Literal[
"naturalscene", "whitenoise"
] = "naturalscene",
fr_normalization: float = 1,
) -> dict[str, ResponsesTrainTestSplit]
Load all neural responses from sessions within subfolders in a given base data path.
The base data path should point to the location of of the neural_code_data folder.
(See https://doi.org/10.25740/rk663dm5577 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. https://huggingface.co/datasets/open-retina/open-retina/resolve/main/baccus_lab/maheswaranathan_2023/neural_code_data.zip
Source code in openretina/data_io/maheswaranathan_2023/responses.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 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 | |