Subunit-specific behavioral modulation of sensory tuning in the visual cortex.
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 531 lines · 20 KB · no license
- import math
- import os
- import matplotlib as mpl
- import matplotlib.pyplot as plt
- import numpy as np
- import pandas as pd
- import seaborn as sns
- from alive_progress import alive_it
- from matplotlib.ticker import MaxNLocator
- os.chdir('/Users/mayerj/repos/behavioral-visual-tuning')
- import src.globals as g
- import src.utils as ut
- from src.data_pipeline import tuning_data
- def buffer_array_with_nans(original_array, target_length):
- """
- Buffers an array with NaNs to a target length.
- :param original_array:
- :param target_length:
- :return:
- """
- original_array = np.asarray(original_array)
- buffered_array = np.full(target_length, np.nan)
- original_length = original_array.shape[0]
- if target_length < original_length:
- warnings.warn(f"Target length {target_length} is less than original length {original_length}")
- return
- else:
- buffered_array[:original_length] = original_array[:]
- return buffered_array
- def get_xticks(nan_buffer, num_traces=3):
- x_ticks_all = []
- for i in range(num_traces):
- x_ticks = list(np.arange(0, 121, 30) + (120 * i) + (nan_buffer * i))
- x_ticks = np.append(x_ticks, np.nan)
- x_ticks_all += list(x_ticks)
- return x_ticks_all
- def get_ax_vspan(nan_buffer, num_traces=3):
- ax_vspan_all = []
- for i in range(num_traces):
- span = np.asarray([30, 90]) + (120 * i) + (nan_buffer * i)
- ax_vspan_all.append(span)
- return ax_vspan_all
- def compute_nan_std_pos_from_sweeps(sweeps):
- """
- Compute the std of non-negative values across all sweeps for one cell.
- """
- arrays = [np.asarray(v, dtype=float).ravel() for v in sweeps if v is not None]
- if not arrays:
- return np.nan
- all_vals = np.concatenate(arrays)
- all_vals_pos = np.where(all_vals < 0, 0, all_vals)
- return np.nanstd(all_vals_pos)
- def prepare_raw_traces_from_sweeps(
- sweeps,
- dx,
- stim_table,
- conditions=None,
- num_conditions=3,
- nan_buffer=10,
- random_state=None,
- ):
- """
- Args:
- sweeps: sequence/Series of dF/F arrays per sweep for one cell.
- dx: sequence/Series of dx arrays aligned to sweeps.
- stim_table: DataFrame aligned to sweeps with temporal_frequency/orientation columns.
- conditions: optional DataFrame or list of dicts with temporal_frequency/orientation and optional trial.
- num_conditions: number of random conditions to sample when conditions is None.
- nan_buffer: number of NaNs to append between concatenated traces.
- random_state: seed for reproducible sampling.
- Returns:
- raw_dffs, transformed_dff, raw_dxs, condition_info
- """
- sweeps_series = pd.Series(sweeps).reset_index(drop=True)
- dx_series = pd.Series(dx).reset_index(drop=True)
- stim_df = stim_table.reset_index(drop=True)
- required_cols = {"temporal_frequency", "orientation"}
- missing = required_cols - set(stim_df.columns)
- if missing:
- raise ValueError(f"stim_table is missing required columns: {sorted(missing)}")
- df = pd.concat(
- [
- sweeps_series.rename("dff"),
- dx_series.rename("dx"),
- stim_df,
- ],
- axis=1,
- )
- rng = np.random.default_rng(random_state)
- if conditions is None:
- if "blank_sweep" in df.columns:
- cond_df = df.query("blank_sweep == 0")[["temporal_frequency", "orientation"]]
- else:
- cond_df = df[["temporal_frequency", "orientation"]]
- cond_df = cond_df.sample(num_conditions, random_state=random_state).reset_index(drop=True)
- use_trial_col = False
- else:
- cond_df = pd.DataFrame(conditions)
- use_trial_col = "trial" in cond_df.columns
- nan_std_pos = compute_nan_std_pos_from_sweeps(sweeps_series)
- raw_dffs = []
- raw_dxs = []
- condition_info = []
- for _, row in cond_df.iterrows():
- cond_rows = df.query(
- "temporal_frequency == @row.temporal_frequency and orientation == @row.orientation"
- )
- if cond_rows.empty:
- continue
- if use_trial_col:
- trial_idx = int(row.trial)
- trial_idx = max(0, min(trial_idx, len(cond_rows) - 1))
- else:
- trial_idx = int(rng.integers(0, len(cond_rows)))
- dff = np.asarray(cond_rows["dff"].iloc[trial_idx], dtype=float)
- dff = np.append(dff, [np.nan] * nan_buffer)
- raw_dffs.append(dff)
- dx_vals = np.asarray(cond_rows["dx"].iloc[trial_idx], dtype=float)
- dx_vals = np.append(dx_vals, [np.nan] * nan_buffer)
- raw_dxs.append(dx_vals)
- condition_info.append((row.temporal_frequency, row.orientation, int(trial_idx)))
- raw_dffs = np.asarray(raw_dffs).flatten()
- raw_dxs = np.asarray(raw_dxs).flatten()
- transformed_dff = np.where(raw_dffs < 0, 0, raw_dffs)
- if nan_std_pos and not np.isnan(nan_std_pos):
- transformed_dff = transformed_dff / nan_std_pos
- return raw_dffs, transformed_dff, raw_dxs, condition_info
- def plot_raw_transformed_traces(experiment_id='', cell_indices=None, path=None, condition_and_trials=None,
- restarts=10):
- assert cell_indices is not None
- assert path is not None
- if condition_and_trials is not None:
- iterate_num = 1 # only one plot per cell and condition instead of random restarts
- else:
- iterate_num = restarts
- dataset = tuning_data.ExperimentData(experiment_id)
- nan_buffer = 10
- font_size = 16
- mpl.rcParams['font.size'] = font_size
- figs = []
- for j in range(iterate_num):
- for i_enum, i in enumerate(cell_indices):
- if condition_and_trials is not None:
- conditions = condition_and_trials[i_enum]
- num_conditions = len(conditions)
- conditions = pd.DataFrame(conditions, columns=['temporal_frequency', 'orientation', 'trial'])
- non_rand_trial = True
- else:
- num_conditions = 3
- conditions = get_random_conditions_to_be_concatenated(dataset, num_conditions)
- non_rand_trial = False
- df_ = load_raw_cell_data(path=path, cell_index=i)
- nan_std_pos = compute_std_pos_one_cell(df_)
- raw_dffs_, transformed_dff_, raw_dxs_, condition_info_ = get_dff_transformeddff_dx_for_conditions(dataset,
- conditions,
- cell_index=i,
- nan_buffer=nan_buffer,
- nan_std_pos=nan_std_pos,
- non_rand_trial=non_rand_trial)
- fig = plot_concated_traces(raw_dffs_, transformed_dff_, raw_dxs_, nan_buffer=nan_buffer,
- title=f'{experiment_id} | {i}\n{condition_info_}',
- num_traces=num_conditions, svg=False, show=False)
- figs.append(fig)
- return figs
- def get_random_conditions_to_be_concatenated(dataset, num_conditions=3):
- return dataset.stim_table.query('blank_sweep == 0').sample(num_conditions) # exclude static frequencies
- def load_raw_cell_data(path, cell_index):
- test = ut.load_pickle(path) # f'{path}/raw_cells')
- # df_test contains all responses of a cell during the trial periods, separated in 2D bins
- df_test = pd.DataFrame.from_dict(test[cell_index], orient='index').T
- df_test.fillna(value=np.nan, inplace=True)
- return df_test
- def compute_std_pos_one_cell(df_test):
- # convert to 3d numpy array
- max_len = math.ceil(df_test.map(lambda x: len(x) if not np.isnan(x).any() else x).max().max())
- df_buffered = df_test.map(
- lambda x: buffer_array_with_nans(x, max_len) if not np.isnan(x).any() else np.full(max_len, np.nan))
- nd_arr = np.array(df_buffered.values.tolist())
- # compute standard deviation of positive values for whole cell
- nd_arr_pos = np.where(nd_arr < 0, 0, nd_arr) # replace non-negative values with 0
- nan_std_pos = np.nanstd(nd_arr_pos)
- return nan_std_pos
- def get_dff_transformeddff_dx_for_conditions(dataset, conditions, cell_index, nan_buffer, nan_std_pos,
- non_rand_trial=False):
- raw_dffs = []
- raw_dxs = []
- condition_info = [] # temp_freq, ori, trial
- for index, row in conditions.iterrows():
- df = dataset.sweep_response.iloc[
- dataset.stim_table.query(f'temporal_frequency == {row.temporal_frequency} '
- f'and orientation == {row.orientation}').index]
- if non_rand_trial:
- randint = int(row.trial) # trial number for this condition, not random
- else:
- # choose random trial of the 15 avaialable trials for each condition
- randint = np.random.randint(0, len(df))
- dff = df[str(cell_index)].iloc[randint] # randint-th trial for this cell
- dff = np.append(dff, [np.nan] * nan_buffer)
- raw_dffs.append(dff)
- dx = df['dx'].iloc[randint]
- dx = np.append(dx, [np.nan] * nan_buffer)
- raw_dxs.append(dx)
- condition_info.append((row.temporal_frequency, row.orientation, randint))
- raw_dxs = np.asarray(raw_dxs).flatten()
- raw_dffs = np.array(raw_dffs).flatten()
- transformed_dff = np.where(raw_dffs < 0, 0, raw_dffs) # replace non-negative values with 0
- transformed_dff = transformed_dff / nan_std_pos
- return raw_dffs, transformed_dff, raw_dxs, condition_info
- def plot_concated_traces(raw_dffs, transformed_dff, raw_dxs, nan_buffer, num_traces=3, title='', svg=False, show=False):
- x_ticks_all = get_xticks(nan_buffer, num_traces)
- x_labels = [-1, 0, 1, 2, 3, " "]
- ax_vspan_all = get_ax_vspan(nan_buffer, num_traces)
- fig, ax = plt.subplots(3, 1, figsize=(5 * num_traces, 6),
- sharex=True, sharey=False,
- gridspec_kw={'height_ratios': [1, 1, 0.5]})
- plt.xticks(x_ticks_all, x_labels * num_traces, rotation=0)
- plt.xlabel("Time in trial (s)")
- for span in ax_vspan_all:
- ax[0].axvspan(span[0], span[1], color='gray', alpha=0.3, lw=0)
- ax[1].axvspan(span[0], span[1], color='gray', alpha=0.3, lw=0)
- ax[0].axhline(0, color='gray', lw=0.75, ls='-')
- ax[0].set_ylabel('DF/F')
- ax[1].axhline(0, color='gray', lw=0.75, ls='-')
- ax[1].set_ylabel('DF/F\ntransformed')
- i = num_traces
- ax[0].plot(raw_dffs[0:120 * i + (i * nan_buffer)], lw=1.5, color='k')
- ax[1].plot(transformed_dff[0:120 * i + (i * nan_buffer)], lw=1.5, color='k')
- ax[2].plot(raw_dxs[0:120 * i + (i * nan_buffer)], lw=1.5, color='#0075B8') # #a719ca dimgray
- ax[2].set_ylabel('velocity\n(cm/s)')
- # ax[2].set_ylim(-5, 25)
- # ax[2].set_yticks([0, 10, 20])
- if title:
- plt.suptitle('(temp_fr, orientation, trial)\n' + title)
- plt.tight_layout()
- if show:
- plt.show()
- elif svg:
- plt.savefig("dff_raw_transformed_velo.svg")
- plt.close()
- return fig
- def plot_single_cell_tuning_figure(experiment_id, cell_index, show=True):
- """
- Notebook-friendly version of plot_single_cell_to_pdf.
- Returns (fig, ax) and optionally shows.
- """
- dataset = tuning_data.ExperimentData(str(experiment_id))
- i = cell_index
- style = {
- "linewidth": 3,
- "ori_axis_label": "Direction (deg)",
- "ori_tick_labels": g.HELPER.ORIENTATION_LABELS,
- "ori_color": "#E30613",
- "ori_color2": "#931912",
- "velo_axis_label": "Velocity (cm/s)",
- "velo_tick_labels": g.HELPER.VELOCITY_LABELS,
- "velo_color": "#009FE3",
- "cmap": "Greys",
- }
- with plt.style.context("seaborn-v0_8-poster"):
- fig, ax = plt.subplots(
- 4, 2, figsize=(10.5, 14),
- gridspec_kw={"height_ratios": [1, 0.3, 0.3, 0.3], "width_ratios": [1, 0.5]}
- )
- a, b, c, d = (0, 0), (1, 0), (2, 0), (3, 0)
- ax[0, 0].set_xticks(range(0, 8))
- ax[0, 0].set_yticks(range(0, 8))
- for j in range(1, 4):
- ax[j, 0].spines["top"].set_visible(False)
- ax[j, 0].spines["right"].set_visible(False)
- ax[j, 0].spines["bottom"].set_visible(False)
- ax[j, 0].spines["left"].set_visible(False)
- ax[j, 0].grid(False)
- ax[j, 0].set_ylabel("mean\nresponse")
- ax[j, 0].set_xticks(range(0, 8))
- for l in range(1, 4):
- ax[l, 1].axis("off")
- # joint tuning
- sns.heatmap(
- dataset.tuning_2d_transformed_experiment[:, :, i],
- cmap=style["cmap"], square=True, cbar=False, ax=ax[a]
- )
- ax[a].set_title(f"{experiment_id} | cell {cell_index}")
- ax[a].set_ylabel(style["ori_axis_label"])
- ax[a].set_yticklabels(style["ori_tick_labels"], rotation=0)
- ax[a].set_xlabel(style["velo_axis_label"])
- ax[a].set_xticklabels(style["velo_tick_labels"], rotation=45)
- # single tuning
- margin = 0.25
- velo = np.mean(dataset.tuning_2d_transformed_experiment[:, :, i], axis=0)
- vmin = np.min(velo) - margin * 0.5
- vmax = np.max(velo) + margin * 0.5
- ax[b].plot(velo, linewidth=style["linewidth"], c=style["velo_color"])
- ax[b].set_ylim(vmin, vmax)
- ax[b].set_xlabel(style["velo_axis_label"])
- ax[b].set_xticklabels(style["velo_tick_labels"], rotation=45)
- ori = np.mean(dataset.tuning_2d_transformed_experiment[:, :, i], axis=1)
- ori_stat = dataset.tuning_2d_transformed_experiment[:, :1, i]
- omin = np.min([np.min(ori_stat), np.min(ori)]) - margin
- omax = np.max([np.max(ori_stat), np.max(ori)]) + margin
- ax[c].plot(ori, linewidth=style["linewidth"], c=style["ori_color"])
- ax[c].set_ylim(omin, omax)
- ax[c].set_xlabel(style["ori_axis_label"])
- ax[c].set_xticklabels(style["ori_tick_labels"], rotation=90)
- ori_loco = np.mean(dataset.tuning_2d_transformed_experiment[:, 1:, i], axis=1)
- ori_loco_std = np.std(dataset.tuning_2d_transformed_experiment[:, 1:, i], axis=1)
- ax[d].plot(ori_loco, linewidth=style["linewidth"], c=style["ori_color2"], label="Locomotion")
- ax[d].errorbar(
- np.arange(len(ori_loco)), ori_loco, yerr=ori_loco_std,
- linewidth=style["linewidth"], c=style["ori_color2"]
- )
- ax[d].plot(ori_stat, linewidth=style["linewidth"], c=style["ori_color"], zorder=4, label="Stationary")
- ax[d].set_xlabel(style["ori_axis_label"])
- ax[d].set_xticklabels(style["ori_tick_labels"], rotation=90)
- ax[d].set_ylim(omin, omax)
- ax[d].legend(loc="center left", bbox_to_anchor=(1, 0.5))
- # colorbar panel
- sns.heatmap(
- dataset.tuning_2d_transformed_experiment[:, :, i],
- cmap=style["cmap"], square=True, cbar=True,
- cbar_kws={"shrink": 0.8, "label": "mean response"},
- ax=ax[0, 1],
- )
- cbar = ax[0, 1].collections[0].colorbar
- cbar.outline.set_edgecolor("black")
- cbar.outline.set_linewidth(1)
- ax[0, 1].set_xticks([])
- ax[0, 1].set_yticks([])
- plt.tight_layout()
- if show:
- plt.show()
- return fig, ax
- def plot_single_cell_tuning_figure_minimal(experiment_id, cell_index, show=True):
- """
- Smaller notebook-friendly variant based on plot_single_cell_to_pdf2 styling.
- """
- dataset = tuning_data.ExperimentData(str(experiment_id))
- i = cell_index
- style = {
- "linewidth": 3,
- "ori_axis_label": "Direction (deg)",
- "ori_tick_labels": g.HELPER.ORIENTATION_LABELS,
- "ori_tick_rotation": 90,
- "ori_color": "#E30613",
- "ori_color2": "#931912",
- "velo_axis_label": "Velocity (cm/s)",
- "velo_tick_labels": [0, "", "", "", "", "", "", 20],
- "velo_tick_rotation": 0,
- "velo_color": "#009FE3",
- "cmap": "Greys",
- "font_size": 25,
- }
- with plt.style.context("seaborn-v0_8-poster"):
- fig, ax = plt.subplots(
- 4, 2, figsize=(10.5, 15.5),
- gridspec_kw={"height_ratios": [1, 0.35, 0.35, 0.35], "width_ratios": [1, 0.5]}
- )
- ax[0, 0].set_xticks(range(0, 8))
- ax[0, 0].set_yticks(range(0, 8))
- for j in range(1, 4):
- ax[j, 0].spines["top"].set_visible(False)
- ax[j, 0].spines["right"].set_visible(False)
- ax[j, 0].spines["bottom"].set_visible(False)
- ax[j, 0].spines["left"].set_visible(False)
- ax[j, 0].grid(False)
- ax[j, 0].set_ylabel("mean\nresponse", fontsize=style["font_size"])
- ax[j, 0].set_xticks(range(0, 8))
- ax[j, 0].axhline(0, color="grey", linewidth=3)
- for l in range(1, 4):
- ax[l, 1].axis("off")
- sns.heatmap(
- dataset.tuning_2d_transformed_experiment[:, :, i],
- cmap=style["cmap"], square=True, cbar=False, ax=ax[0, 0]
- )
- ax[0, 0].set_title(f"{experiment_id} | cell {cell_index}")
- ax[0, 0].set_ylabel(style["ori_axis_label"], fontsize=style["font_size"])
- ax[0, 0].set_yticklabels(style["ori_tick_labels"], rotation=0, fontsize=style["font_size"])
- ax[0, 0].set_xlabel(style["velo_axis_label"], fontsize=style["font_size"])
- ax[0, 0].set_xticklabels(
- style["velo_tick_labels"], rotation=style["velo_tick_rotation"], fontsize=style["font_size"]
- )
- margin = 0.25
- velo = np.mean(dataset.tuning_2d_transformed_experiment[:, :, i], axis=0)
- vmax = np.max(velo)
- ax[1, 0].axhline(vmax, color="grey", linewidth=3)
- ax[1, 0].plot(velo, linewidth=style["linewidth"], c=style["velo_color"])
- ax[1, 0].set_ylim(0, vmax + margin * 0.5)
- ax[1, 0].set_xlabel(style["velo_axis_label"], fontsize=style["font_size"])
- ax[1, 0].set_xticklabels(
- style["velo_tick_labels"], rotation=style["velo_tick_rotation"], fontsize=style["font_size"]
- )
- ori = np.mean(dataset.tuning_2d_transformed_experiment[:, :, i], axis=1)
- omax = np.max(ori)
- ax[2, 0].axhline(omax, color="grey", linewidth=3)
- ax[2, 0].plot(ori, linewidth=style["linewidth"], c=style["ori_color"])
- ax[2, 0].set_ylim(0, omax + margin)
- ax[2, 0].set_xlabel(style["ori_axis_label"], fontsize=style["font_size"])
- ax[2, 0].set_xticklabels(
- style["ori_tick_labels"], rotation=style["ori_tick_rotation"], fontsize=style["font_size"]
- )
- ori_stat = dataset.tuning_2d_transformed_experiment[:, :1, i]
- ori_loco = np.mean(dataset.tuning_2d_transformed_experiment[:, 1:, i], axis=1)
- omax2 = np.max([np.max(ori_stat), np.max(ori_loco)])
- ax[3, 0].axhline(omax2, color="grey", linewidth=3)
- ax[3, 0].plot(ori_loco, linewidth=style["linewidth"], c=style["ori_color2"], label="Locomotion")
- ax[3, 0].plot(ori_stat, linewidth=style["linewidth"], c=style["ori_color"], zorder=4, label="Stationary")
- ax[3, 0].set_xlabel(style["ori_axis_label"], fontsize=style["font_size"])
- ax[3, 0].set_xticklabels(
- style["ori_tick_labels"], rotation=style["ori_tick_rotation"], fontsize=style["font_size"]
- )
- ax[3, 0].set_ylim(0, omax2 + margin)
- ax[3, 0].legend(loc="center left", bbox_to_anchor=(1, 0.5))
- sns.heatmap(
- dataset.tuning_2d_transformed_experiment[:, :, i],
- cmap=style["cmap"], square=True, cbar=True,
- cbar_kws={"shrink": 0.8, "label": "mean response"},
- ax=ax[0, 1],
- )
- cbar = ax[0, 1].collections[0].colorbar
- cbar.outline.set_edgecolor("black")
- cbar.outline.set_linewidth(1)
- ax[0, 1].set_xticks([])
- ax[0, 1].set_yticks([])
- plt.tight_layout()
- if show:
- plt.show()
- return fig, ax
demo_plotting.py at commit 97b2e4a, no license · at the source
Overview
- Faculty of Biology, Ludwig Maximilian University of Munich, Munich, Germany
- Graduate School of Systemic Neurosciences, Munich, Germany
- Bernstein Center for Computational Neuroscience Munich, Munich, Germany
Abstract
Activity of sensory neurons is influenced not only by external stimuli but also by the animal’s behavioral state. It is well documented that behavior influences the general properties of neural activity, such as response gain. However, it is not known whether it could affect the sensory tuning of individual neurons in a more refined way and what the functional benefit of such nuanced modulation might be. Here, we investigate this in the mouse visual cortex using the data made available by the Allen Brain Observatory. Our analysis indicates that locomotion can modulate not only the gain of the entire neuronal response, but also more selectively control responses to specific stimuli. This modulation results in changes of neuronal tuning in different behavioral states. Using numerical simulations, we demonstrate that such patterns of gain modulation can multiplex behavioral information in sensory populations without compromising the accuracy of sensory coding. In that way, the visual cortex could instantiate an accurate, joint representation of sensory and movement-related signals and support computations that simultaneously require both types of information.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above.
Mlynarski-Group/behavioral-visual-tuning
97b2e4ad341253b7fc6ca34457ea8df2751cbd15, 7 January 2026Availability: 1 check, the latest on 29 September 2026: the link answers
- 29 September 2026: the link answers
2 files
- src/
data_pipeline/ , Python, 531 linesdemo_plotting.py - README.md, Text, 20 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 1 script, each with its path and the digest of its content;
- no match between paragraphs and code yet;
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
Datasets cited
- zenodo:3925949, at Zenodo; found in the supplementary material
Data Availability
The code is available on the group’s GitHub account: https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 29 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 2 authors, 9 MeSH terms, 36 references.
Cite
This paper
Mayer, J. M., & Młynarski, W. F. (2026). Subunit-specific behavioral modulation of sensory tuning in the visual cortex. PLoS computational biology, 22(4), e1014123. https://
BibTeX
@article{mayer2026subuni
author = {Mayer, Julia M. and Młynarski, Wiktor F.},
title = {{Subunit-specific behavioral modulation of sensory tuning in the visual cortex}},
journal = {PLoS computational biology},
year = {2026},
month = apr,
volume = {22},
number = {4},
pages = {e1014123},
publisher = {PLOS},
issn = {1553-734X},
doi = {10.1371/
url = {https://
pmid = {41941411},
pmcid = {PMC13082715}
}
RIS
TY - JOUR
AU - Mayer, Julia M.
AU - Młynarski, Wiktor F.
TI - Subunit-specific behavioral modulation of sensory tuning in the visual cortex
T2 - PLoS computational biology
J2 - PLoS Comput Biol
PY - 2026
DA - 2026/
VL - 22
IS - 4
SP - e1014123
SN - 1553-734X
PB - PLOS
DO - 10.1371/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1371/
"type": "article-journal",
"title": "Subunit-specific behavioral modulation of sensory tuning in the visual cortex",
"container-title": "PLoS computational biology",
"author": [
{
"family": "Mayer",
"given": "Julia M."
},
{
"family": "Młynarski",
"given": "Wiktor F."
}
],
"container-title-short":
"volume": "22",
"issue": "4",
"page": "e1014123",
"DOI": "10.1371/
"PMID": "41941411",
"PMCID": "PMC13082715",
"ISSN": "1553-734X",
"publisher": "PLOS",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
6
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1126/sciadv.aed4172 [code]
- Locomotion optimizes sensory representations through a computational principle shared by rodents and primates.Journal: Science advancesIn common: pandas, Matplotlib, NumPy, 10 references, author Wiktor F. Młynarski
- [2] doi:10.1371/journal.pcbi.1014157 [code]
- Modeling spatial contrast sensitivity in responses of primate retinal ganglion cells to natural movies.Journal: PLoS computational biologyIn common: pandas, NumPy, computational modeling (no new data), 4 references
- [3] doi:10.1126/sciadv.adv5652 [code]
- The anterior cingulate cortex modulates pupil-linked arousal.Journal: Science advancesIn common: seaborn, pandas, Matplotlib, 1 other tool, systems, 4 references
- [4] doi:10.1038/s41467-026-71725-0 [code]
- Interactions across hemispheres in prefrontal cortex reflect global cognitive processing.Journal: Nature communicationsIn common: pandas, Matplotlib, NumPy, 5 references
- [5] doi:10.1038/s41467-026-71667-7
- Behavioural states control binocular vision through input-specific mechanisms.Journal: Nature communicationsIn common: mouse, 6 references
- [6] doi:10.1038/s41467-026-75347-4 [code]
- Sleep reveals dynamics integrating and segregating movement and stimulus representations in V1.Journal: Nature communicationsIn common: pandas, Matplotlib, NumPy, systems, mouse, 4 references
- [7] doi:10.1038/s41467-026-74227-1 [code]
- Age-related changes in behavioural and neural variability in a decision-making task.Journal: Nature communicationsIn common: seaborn, pandas, Matplotlib, 1 other tool, mouse, 3 references
- [8] doi:10.1523/jneurosci.0987-25.2026 [code]
- Cell-Type-Specific Synaptic Scaling Mechanisms Differentially Contribute to Associative Learning.Journal: The Journal of neuroscience : the official journal of the Society for NeuroscienceIn common: seaborn, pandas, Matplotlib, 1 other tool, 3 references
- [9] doi:10.1371/journal.pone.0356243 [code]
- Functional organization and natural scene responses across mouse visual cortical areas revealed with encoding manifolds.Journal: PloS oneIn common: pandas, Matplotlib, NumPy, mouse, 3 references
- [10] doi:10.1016/j.neuron.2026.07.016 [code]
- Inferring brain-wide interactions using data-constrained recurrent neural network models.Journal: NeuronIn common: Matplotlib, NumPy, computational modeling (no new data), systems, mouse, 3 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 1 script, and 0 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:a4f3b289ac573ca6…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
