Induction of cortical on/off periods in awake mice fulfills sleep functions.
The 7 matches
- [1] § Methods › Statistical analysis ↔ Analysis_code_and_source_data/synchrony/single_units/statistical_source_data/lme_sttc.R, lines 1–49 · score 0.85 · Kenward Roger, lmerTest, lmerMultiMember, lme4, pbkrtest, dyadic
- [2] § Methods › SD and optogenetics ↔ Analysis_code_and_source_data/nor_behavior/during_stim/emg_pausing.ipynb, lines 318–366 · score 0.83 · RMS envelope, Detected pauses, scored RMS, Raw EMG, window, thresholding
- [3] § Methods › SD and optogenetics ↔ Analysis_code_and_source_data/nor_behavior/during_stim/emg_pausing_ACR.ipynb, lines 322–370 · score 0.83 · RMS envelope, Detected pauses, scored RMS, Raw EMG, window, thresholding
- [4] § Methods › Statistical analysis ↔ Analysis_code_and_source_data/swa/full_spg_stats_summary.ipynb, lines 35–73 · score 0.79 · Wilcoxon signed rank, Benjamini Hochberg, discovery rate, bins
- [5] § Methods › Electrophysiology acquisition and analysis › Off-period detection and synchrony analyses ↔ Analysis_code_and_source_data/synchrony/field_potentials/halo/lfp_slope__HALO__tonic.ipynb, lines 77–152 · score 0.57 · initiation slope, termination slope, field potential, filter, channel, synchrony
- [6] § Methods › FTR task ↔ Analysis_code_and_source_data/nor_behavior/individual_scatter_plots.ipynb, lines 350–389 · score 0.57 · 10–15 min, 10 min
- [7] § Methods › FTR task ↔ Analysis_code_and_source_data/nor_behavior/individual_scatter_plots.ipynb, lines 267–342 · score 0.55 · arena position, nodes, tail, nose, DLC, video
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
Jupyter notebook · 430 lines · 17 KB · MIT · 2 matches
- # %%
- %reload_ext autoreload
- %autoreload 2
- import pandas as pd
- import os
- pd.options.mode.chained_assignment = None
- import matplotlib.pyplot as plt
- import seaborn as sns
- import sys
- from acr.nor import *
- import acr
- from acr.utils import PAPER_FIGURE_ROOT
- import numpy as np
- from acr.utils import NREM_RED, NNXR_GRAY
- # %%
- acr.plots.lrg()
- # %%
- def display_colormap(cmap):
- """Display the colormap"""
- gradient = np.linspace(0, 1, 256)
- gradient = np.vstack((gradient, gradient))
- fig, ax = plt.subplots(figsize=(30, 2))
- ax.imshow(gradient, aspect='auto', cmap=cmap)
- ax.set_axis_off()
- return fig, ax
- # %%
- import numpy as np
- import matplotlib.pyplot as plt
- import matplotlib.colors as mcolors
- from matplotlib.colors import LinearSegmentedColormap
- import colorsys
- from acr.utils import SOM_BLUE
- import matplotlib as mpl
- # your base color
- base_hex = SOM_BLUE
- base_rgb = mcolors.hex2color(base_hex)
- # helper to adjust lightness (factor >1 → lighter; <1 → darker)
- def adjust_lightness(rgb, factor):
- h, l, s = colorsys.rgb_to_hls(*rgb)
- l = max(0, min(1, l * factor))
- return colorsys.hls_to_rgb(h, l, s)
- # make a lighter and a darker variant
- low_rgb = adjust_lightness(base_rgb, 2.3) # light end
- high_rgb = adjust_lightness(base_rgb, 0.2) # dark end
- # build the colormap: low → base (mid) → high
- colors = [low_rgb, base_rgb, high_rgb]
- custom_diverging = LinearSegmentedColormap.from_list(
- "custom_divergent", colors, N=256
- )
- mpl.colormaps.register(custom_diverging, name="som", force=True)
- # usage:
- # plt.scatter(x, y, c=values, cmap="custom_divergent")
- # plt.colorbar(); plt.show()
- f, ax = display_colormap(custom_diverging)
- plt.savefig(f'{PAPER_FIGURE_ROOT}/nor_behavior/som_colormap.png', dpi=600, bbox_inches='tight', transparent=True)
- # %%
- # your base color
- base_hex = '#f24f4f'
- base_rgb = mcolors.hex2color(base_hex)
- # helper to adjust lightness (factor >1 → lighter; <1 → darker)
- def adjust_lightness(rgb, factor):
- h, l, s = colorsys.rgb_to_hls(*rgb)
- l = max(0, min(1, l * factor))
- return colorsys.hls_to_rgb(h, l, s)
- # make a lighter and a darker variant
- low_rgb = adjust_lightness(base_rgb, 1.3) # light end
- high_rgb = adjust_lightness(base_rgb, 0.2) # dark end
- # build the colormap: low → base (mid) → high
- colors = [low_rgb, base_rgb, high_rgb]
- custom_diverging = LinearSegmentedColormap.from_list(
- "custom_divergent", colors, N=256
- )
- mpl.colormaps.register(custom_diverging, name="nrem_red_map", force=True)
- # usage:
- # plt.scatter(x, y, c=values, cmap="custom_divergent")
- # plt.colorbar(); plt.show()
- f, ax = display_colormap(custom_diverging)
- plt.savefig(f'{PAPER_FIGURE_ROOT}/nor_behavior/nrem_red_colormap.png', dpi=600, bbox_inches='tight', transparent=True)
- # %%
- # your base color
- base_hex = '#7f7f7f'
- base_rgb = mcolors.hex2color(base_hex)
- # helper to adjust lightness (factor >1 → lighter; <1 → darker)
- def adjust_lightness(rgb, factor):
- h, l, s = colorsys.rgb_to_hls(*rgb)
- l = max(0, min(1, l * factor))
- return colorsys.hls_to_rgb(h, l, s)
- # make a lighter and a darker variant
- low_rgb = adjust_lightness(base_rgb, 1.5) # light end
- high_rgb = adjust_lightness(base_rgb, 0.1) # dark end
- # build the colormap: low → base (mid) → high
- colors = [low_rgb, base_rgb, high_rgb]
- custom_diverging = LinearSegmentedColormap.from_list(
- "custom_divergent", colors, N=256
- )
- mpl.colormaps.register(custom_diverging, name="sd_gray", force=True)
- # usage:
- # plt.scatter(x, y, c=values, cmap="custom_divergent")
- # plt.colorbar(); plt.show()
- f, ax = display_colormap(custom_diverging)
- plt.savefig(f'{PAPER_FIGURE_ROOT}/nor_behavior/sd_gray_colormap.png', dpi=600, bbox_inches='tight', transparent=True)
- # %%
- for sub in sleep_subjects:
- t = get_subject_type(sub)
- df = load_subject_node(sub, 'nose', conds=['test'], type=t)
- arena_df = acr.nor.get_arena_df(sub, 'test')
- plt.rcdefaults()
- acr.plots.lrg()
- plt.rcParams['axes.spines.left'] = False
- plt.rcParams['axes.spines.bottom'] = False
- plt.rcParams['xtick.bottom'] = False
- plt.rcParams['ytick.left'] = False
- f, ax = acr.nor.create_arena_plot_streamlined(arena_df, buffer=20)
- sns.scatterplot(x='x', y='y', data=df, hue='side', hue_order=['familiar', 'novel'], palette=['black', 'green'], ax=ax, alpha=0.5, s=300, c='b')
- ax.set_title(f'{sub}')
- # %%
- sub = 'NOR_54'
- t = get_subject_type(sub)
- df = load_subject_node(sub, 'nose', conds=['test'], type=t)
- arena_df = acr.nor.get_arena_df(sub, 'test')
- plt.rcdefaults()
- acr.plots.lrg()
- plt.rcParams['axes.spines.left'] = False
- plt.rcParams['axes.spines.bottom'] = False
- plt.rcParams['xtick.bottom'] = False
- plt.rcParams['ytick.left'] = False
- f, ax, bounds = acr.nor.create_arena_plot_streamlined(arena_df, buffer_lr=20, buffer_ud=20, return_bounds=True)
- sns.scatterplot(x='x', y='y', data=df,
- hue='frame', palette='som',
- #style='side', style_order=['familiar', 'novel'], markers=['X', 'o'],
- ax=ax, alpha=0.75, s=300
- )
- # Remove the legend from the plot
- ax.get_legend().remove()
- ax.set_xlim(bounds[0]-2, bounds[1]+2)
- ax.set_ylim(bounds[2]-2, bounds[3]+2)
- f.savefig(f'{PAPER_FIGURE_ROOT}/nor_behavior/NOR54-test-scatter__novel-left.png', dpi=600, bbox_inches='tight', transparent=True)
- # %%
- # X HISTOGRAM
- midline_x = (arena_df.loc[arena_df['node']=='midline_upper']['x'].values[0] + arena_df.loc[arena_df['node']=='midline_lower']['x'].values[0]) / 2
- f, ax = plt.subplots(figsize=(30, 3))
- sns.histplot(df, x='x', bins=200, ax=ax, color=SOM_BLUE)
- plt.tight_layout()
- ax.set_xlim(df['x'].min(), df['x'].max())
- f.savefig(f'{PAPER_FIGURE_ROOT}/nor_behavior/NOR54-Xhisto.png', dpi=600, bbox_inches='tight', transparent=True)
- # Y HISTOGRAM
- upper_arena_y = arena_df.loc[arena_df['node']=='midline_upper']['y'].values[0]
- lower_arena_y = arena_df.loc[arena_df['node']=='midline_lower']['y'].values[0]
- midline_y = (upper_arena_y + lower_arena_y) / 2
- f, ax = plt.subplots(figsize=(30, 4.95))
- sns.histplot(df, x='y', bins=200, ax=ax, color=SOM_BLUE)
- plt.tight_layout()
- ax.set_xlim(df['y'].min(), df['y'].max())
- f.savefig(f'{PAPER_FIGURE_ROOT}/nor_behavior/NOR54-Yhisto.png', dpi=600, bbox_inches='tight', transparent=True)
- # %%
- sub = 'NOR_18'
- t = get_subject_type(sub)
- df = load_subject_node(sub, 'nose', conds=['test'], type=t)
- arena_df = acr.nor.get_arena_df(sub, 'test')
- plt.rcdefaults()
- acr.plots.lrg()
- plt.rcParams['axes.spines.left'] = False
- plt.rcParams['axes.spines.bottom'] = False
- plt.rcParams['xtick.bottom'] = False
- plt.rcParams['ytick.left'] = False
- f, ax, bounds = acr.nor.create_arena_plot_streamlined(arena_df, buffer_lr=20, buffer_ud=20, return_bounds=True)
- sns.scatterplot(x='x', y='y', data=df,
- hue='frame', palette='nrem_red_map',
- #style='side', style_order=['familiar', 'novel'], markers=['X', 'o'],
- ax=ax, alpha=0.75, s=300
- )
- # Remove the legend from the plot
- ax.get_legend().remove()
- ax.set_xlim(bounds[0]-2, bounds[1]+2)
- ax.set_ylim(bounds[2]-2, bounds[3]+2)
- f.savefig(f'{PAPER_FIGURE_ROOT}/nor_behavior/NOR18-test-scatter__novel-right.png', dpi=600, bbox_inches='tight', transparent=True)
- # %%
- # X HISTOGRAM
- midline_x = (arena_df.loc[arena_df['node']=='midline_upper']['x'].values[0] + arena_df.loc[arena_df['node']=='midline_lower']['x'].values[0]) / 2
- f, ax = plt.subplots(figsize=(30, 3))
- sns.histplot(df, x='x', bins=200, ax=ax, color=NREM_RED)
- plt.tight_layout()
- ax.set_xlim(df['x'].min(), df['x'].max())
- f.savefig(f'{PAPER_FIGURE_ROOT}/nor_behavior/NOR18-Xhisto.png', dpi=600, bbox_inches='tight', transparent=True)
- # Y HISTOGRAM
- upper_arena_y = arena_df.loc[arena_df['node']=='midline_upper']['y'].values[0]
- lower_arena_y = arena_df.loc[arena_df['node']=='midline_lower']['y'].values[0]
- midline_y = (upper_arena_y + lower_arena_y) / 2
- f, ax = plt.subplots(figsize=(30, 4.95))
- sns.histplot(df, x='y', bins=200, ax=ax, color=NREM_RED)
- plt.tight_layout()
- ax.set_xlim(df['y'].min(), df['y'].max())
- f.savefig(f'{PAPER_FIGURE_ROOT}/nor_behavior/NOR18-Yhisto.png', dpi=600, bbox_inches='tight', transparent=True)
- # %%
- sub = 'NOR_19'
- t = get_subject_type(sub)
- df = load_subject_node(sub, 'nose', conds=['test'], type=t)
- arena_df = acr.nor.get_arena_df(sub, 'test')
- plt.rcdefaults()
- acr.plots.lrg()
- plt.rcParams['axes.spines.left'] = False
- plt.rcParams['axes.spines.bottom'] = False
- plt.rcParams['xtick.bottom'] = False
- plt.rcParams['ytick.left'] = False
- f, ax, bounds = acr.nor.create_arena_plot_streamlined(arena_df, buffer_lr=20, buffer_ud=20, return_bounds=True)
- sns.scatterplot(x='x', y='y', data=df,
- hue='frame', palette='sd_gray',
- #style='side', style_order=['familiar', 'novel'], markers=['X', 'o'],
- ax=ax, alpha=0.75, s=300
- )
- # Remove the legend from the plot
- ax.get_legend().remove()
- ax.set_xlim(bounds[0]-2, bounds[1]+2)
- ax.set_ylim(bounds[2]-2, bounds[3]+2)
- f.savefig(f'{PAPER_FIGURE_ROOT}/nor_behavior/NOR19-test-scatter__novel-left.png', dpi=600, bbox_inches='tight', transparent=True)
- # %%
- # X HISTOGRAM
- midline_x = (arena_df.loc[arena_df['node']=='midline_upper']['x'].values[0] + arena_df.loc[arena_df['node']=='midline_lower']['x'].values[0]) / 2
- f, ax = plt.subplots(figsize=(30, 3))
- sns.histplot(df, x='x', bins=200, ax=ax, color=NNXR_GRAY)
- plt.tight_layout()
- ax.set_xlim(df['x'].min(), df['x'].max())
- f.savefig(f'{PAPER_FIGURE_ROOT}/nor_behavior/NOR19-Xhisto.png', dpi=600, bbox_inches='tight', transparent=True)
- # Y HISTOGRAM
- upper_arena_y = arena_df.loc[arena_df['node']=='midline_upper']['y'].values[0]
- lower_arena_y = arena_df.loc[arena_df['node']=='midline_lower']['y'].values[0]
- midline_y = (upper_arena_y + lower_arena_y) / 2
- f, ax = plt.subplots(figsize=(30, 4.95))
- sns.histplot(df, x='y', bins=200, ax=ax, color=NNXR_GRAY)
- plt.tight_layout()
- ax.set_xlim(df['y'].min(), df['y'].max())
- f.savefig(f'{PAPER_FIGURE_ROOT}/nor_behavior/NOR19-Yhisto.png', dpi=600, bbox_inches='tight', transparent=True)
- # %% [markdown]
- # # DEPRECATED
- # %%
- arena_nodes = ['midline_upper',
- 'midline_lower',
- 'arena_upper_left',
- 'arena_upper_right',
- 'arena_lower_left',
- 'arena_lower_right']
- conditions = ['acq', 'test']
- subject = 'NOR_13'
- ni = load_nor_info()
- data = {}
- data_root = '/Volumes/neuropixel_archive/Data/acr_archive/NOR_videos/DLC_project_files/NOR_ROUND_2--analysis_results'
- for condition in conditions:
- path = f"{data_root}/{subject}-{condition}DLC_Resnet50_nor_single_subJun25shuffle0_snapshot_250_filtered.csv"
- data[condition] = pd.read_csv(path)
- # Orgainze data into dataframes for each node
- arena_dfs = {}
- nose_dfs = {}
- base_dfs = {}
- center_dfs = {}
- for condition in conditions:
- print(condition)
- arena_dfs[condition] = []
- nose_dfs[condition] = []
- base_dfs[condition] = []
- center_dfs[condition] = []
- for node in arena_nodes:
- df = data[condition].loc[:, data[condition].loc[0] == node]
- df = clean_df(df)
- arena_dfs[condition].append(df)
- nose = data[condition].loc[:, data[condition].loc[0] == 'nose']
- nose = clean_df(nose)
- nose_dfs[condition] = nose
- base = data[condition].loc[:, data[condition].loc[0] == 'tail_base']
- base = clean_df(base)
- base_dfs[condition] = base
- center = data[condition].loc[:, data[condition].loc[0] == 'mid_body']
- center = clean_df(center)
- center_dfs[condition] = center
- arena_dfs[condition] = pd.concat(arena_dfs[condition])
- # get the median position for each arena node in each condition
- arena_positions = {}
- for condition in conditions:
- arena_positions[condition] = arena_dfs[condition].groupby('node').median(numeric_only=True)
- def create_arena_plot(arena_positions, condition='acq'):
- f, ax = plt.subplots(figsize=(25, 15))
- midline_x = (arena_positions[condition].loc['midline_upper']['x'] + arena_positions[condition].loc['midline_lower']['x']) / 2
- upper_arena_y = arena_positions[condition].loc['midline_upper']['y']
- lower_arena_y = arena_positions[condition].loc['midline_lower']['y']
- left_arena_x = (arena_positions[condition].loc['arena_upper_left']['x'] + arena_positions[condition].loc['arena_lower_left']['x']) / 2
- right_arena_x = (arena_positions[condition].loc['arena_upper_right']['x'] + arena_positions[condition].loc['arena_lower_right']['x']) / 2
- ax.axvline(midline_x, color='r', linestyle='--')
- ax.axhline(upper_arena_y, color='r', linestyle='--')
- ax.axhline(lower_arena_y, color='r', linestyle='--')
- ax.axvline(left_arena_x, color='r', linestyle='--')
- ax.axvline(right_arena_x, color='r', linestyle='--')
- sns.scatterplot(x='x', y='y', data=arena_positions[condition], ax=ax, s=100, c='r')
- return f, ax
- condition = 'acq'
- novel_side = ni[subject]['novel']
- locdf = nose_dfs[condition]
- midline_x = (arena_positions[condition].loc['midline_upper']['x'] + arena_positions[condition].loc['midline_lower']['x']) / 2
- if novel_side == 'left':
- locdf.loc[locdf['x']>midline_x, 'side'] = 'familiar'
- locdf.loc[locdf['x']<midline_x, 'side'] = 'novel'
- else:
- locdf.loc[locdf['x']>midline_x, 'side'] = 'novel'
- locdf.loc[locdf['x']<midline_x, 'side'] = 'familiar'
- locdf = locdf.loc[locdf['frame']<6000]
- f, ax = create_arena_plot(arena_positions, 'acq')
- sns.scatterplot(x='x', y='y', data=locdf, hue='side', hue_order=['familiar', 'novel'], palette=['black', 'green'], ax=ax, alpha=0.5, s=30, c='b')
- # %%
- 2236/6000
- # %%
- locdf.groupby('side').count()
- # %%
- sz = 20
- alpha = 0.4
- f, ax = plt.subplots(3, 1, figsize=(12, 27))
- condition = 'acq'
- novel_side = ni[subject]['novel']
- test_df = center_dfs[condition]
- midline_x = (arena_positions[condition].loc['midline_upper']['x'] + arena_positions[condition].loc['midline_lower']['x']) / 2
- if novel_side == 'left':
- test_df.loc[test_df['x']>midline_x, 'side'] = 'familiar'
- test_df.loc[test_df['x']<midline_x, 'side'] = 'novel'
- else:
- test_df.loc[test_df['x']>midline_x, 'side'] = 'novel'
- test_df.loc[test_df['x']<midline_x, 'side'] = 'familiar'
- for i, border in enumerate([0, 6000, 12000]):
- data_to_plot = test_df.loc[(test_df['frame']>border) & (test_df['frame']<border+6000)]
- sns.scatterplot(x='x', y='y', data=data_to_plot, hue='side', hue_order=['familiar', 'novel'], palette=['black', 'green'], ax=ax[i], alpha=alpha, s=sz, c='b')
- sns.scatterplot(x='x', y='y', data=arena_positions[condition], ax=ax[i], s=sz*3, c='r')
- midline_x = (arena_positions[condition].loc['midline_upper']['x'] + arena_positions[condition].loc['midline_lower']['x']) / 2
- upper_arena_y = arena_positions[condition].loc['midline_upper']['y']
- lower_arena_y = arena_positions[condition].loc['midline_lower']['y']
- left_arena_x = (arena_positions[condition].loc['arena_upper_left']['x'] + arena_positions[condition].loc['arena_lower_left']['x']) / 2
- right_arena_x = (arena_positions[condition].loc['arena_upper_right']['x'] + arena_positions[condition].loc['arena_lower_right']['x']) / 2
- if i == 0:
- tit = 'ACQ PERIOD, 0-5 min'
- elif i ==1:
- tit = 'ACQ PERIOD, 5-10 min'
- else:
- tit = 'ACQ PERIOD, 10-15 min'
- ax[i].set_title(tit, fontsize=20)
- ax[i].axvline(midline_x, color='r', linestyle='--')
- ax[i].axhline(upper_arena_y, color='r', linestyle='--')
- ax[i].axhline(lower_arena_y, color='r', linestyle='--')
- ax[i].axvline(left_arena_x, color='r', linestyle='--')
- ax[i].axvline(right_arena_x, color='r', linestyle='--')
- f.suptitle(f'{subject} | Body (center) positions and arena boundaries')
- f.tight_layout(rect=[0, 0.03, 1, 0.97])
- #plt.savefig(f'./plots/{subject}_BODY--scatter_all_frames-ACQ.png')
- # %%
- sz = 20
- alpha = 0.4
- f, ax = plt.subplots(3, 1, figsize=(12, 27))
- condition = 'test'
- novel_side = ni[subject]['novel']
- test_df = center_dfs[condition]
- midline_x = (arena_positions[condition].loc['midline_upper']['x'] + arena_positions[condition].loc['midline_lower']['x']) / 2
- if novel_side == 'left':
- test_df.loc[test_df['x']>midline_x, 'side'] = 'familiar'
- test_df.loc[test_df['x']<midline_x, 'side'] = 'novel'
- else:
- test_df.loc[test_df['x']>midline_x, 'side'] = 'novel'
- test_df.loc[test_df['x']<midline_x, 'side'] = 'familiar'
- for i, border in enumerate([0, 6000, 12000]):
- data_to_plot = test_df.loc[(test_df['frame']>border) & (test_df['frame']<border+6000)]
- sns.scatterplot(x='x', y='y', data=data_to_plot, hue='side', hue_order=['familiar', 'novel'], palette=['black', 'green'], ax=ax[i], alpha=alpha, s=sz, c='b')
- sns.scatterplot(x='x', y='y', data=arena_positions[condition], ax=ax[i], s=sz*3, c='r')
- midline_x = (arena_positions[condition].loc['midline_upper']['x'] + arena_positions[condition].loc['midline_lower']['x']) / 2
- upper_arena_y = arena_positions[condition].loc['midline_upper']['y']
- lower_arena_y = arena_positions[condition].loc['midline_lower']['y']
- left_arena_x = (arena_positions[condition].loc['arena_upper_left']['x'] + arena_positions[condition].loc['arena_lower_left']['x']) / 2
- right_arena_x = (arena_positions[condition].loc['arena_upper_right']['x'] + arena_positions[condition].loc['arena_lower_right']['x']) / 2
- if i == 0:
- tit = 'TESTING PERIOD, 0-5 min'
- elif i ==1:
- tit = 'TESTING PERIOD, 5-10 min'
- else:
- tit = 'TESTING PERIOD, 10-15 min'
- ax[i].set_title(tit, fontsize=20)
- ax[i].axvline(midline_x, color='r', linestyle='--')
- ax[i].axhline(upper_arena_y, color='r', linestyle='--')
- ax[i].axhline(lower_arena_y, color='r', linestyle='--')
- ax[i].axvline(left_arena_x, color='r', linestyle='--')
- ax[i].axvline(right_arena_x, color='r', linestyle='--')
- f.suptitle(f'{subject} | Body (center) positions and arena boundaries')
- f.tight_layout(rect=[0, 0.03, 1, 0.97])
- #plt.savefig(f'./plots/{subject}_BODY--scatter_all_frames-TEST.png')
individual_scatter_plots.ipynb at commit d62bc21, under MIT · at the source
Overview
- Department of Psychiatry, University of Wisconsin–Madison,Madison, WI USA
- Neuroscience Training Program, University of Wisconsin–Madison,Madison, WI USA
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repositories
Its files are read in the Code ↔ Paper reader above, with 7 matches between paragraphs and lines of code.
CSC-UW/OFF_PERIOD_INDUCTION_MATERIALS
d62bc2112a74efa7b389ff7593bacda7791b769c, 24 February 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
80 files
- Analysis_code_and_source
_data/ , Jupyter, 740 linesfiring_rates/ fr_BASIC__ACR__swi.ipynb - Analysis_code_and_source
_data/ , Jupyter, 196 linesfiring_rates/ fr_BASIC__CONTROL__swi.i pynb - Analysis_code_and_source
_data/ , Jupyter, 644 linesfiring_rates/ fr_BASIC__SOM__swi.ipynb - Analysis_code_and_source
_data/ , Jupyter, 453 linesfiring_rates/ fr_comps/ fr_OFF_induction.ipynb - Analysis_code_and_source
_data/ , Jupyter, 429 linesfiring_rates/ fr_comps/ fr_OFF_induction__ACR.ip ynb - Analysis_code_and_source
_data/ , Jupyter, 462 linesfiring_rates/ fr_comps/ fr_comparison_stim.ipynb - Analysis_code_and_source
_data/ , Jupyter, 645 linesfiring_rates/ halo/ fr_BASIC__halo__swi.ipyn b - Analysis_code_and_source
_data/ , Jupyter, 268 linesfiring_rates/ tonic/ tonic_off_fr-comp__SOM-- PROBE.ipynb - Analysis_code_and_source
_data/ , Jupyter, 949 linesmolecular/ ephys/ molecular_ephys_results. ipynb - Analysis_code_and_source
_data/ , Jupyter, 454 linesmolecular/ molecular_results.ipynb - Analysis_code_and_source
_data/ , Jupyter, 323 linesnor_behavior/ FULL_RESULTS_QUANTIFIED. ipynb - Analysis_code_and_source
_data/ , Jupyter, 1,828 linesnor_behavior/ behav_checks/ actigraphy_checks.ipynb - Analysis_code_and_source
_data/ , Jupyter, 332 linesnor_behavior/ behav_checks/ gen_test_results_for_cor r.ipynb - Analysis_code_and_source
_data/ , Jupyter, 222 linesnor_behavior/ during_stim/ behavior_during_stim.ipy nb - Analysis_code_and_source
_data/ , Jupyter, 430 lines, 1 matchnor_behavior/ during_stim/ emg_pausing.ipynb - Analysis_code_and_source
_data/ , Jupyter, 434 lines, 1 matchnor_behavior/ during_stim/ emg_pausing_ACR.ipynb - Analysis_code_and_source
_data/ , Jupyter, 430 lines, 2 matchesnor_behavior/ individual_scatter_plots .ipynb - Analysis_code_and_source
_data/ , Jupyter, 275 linesnor_behavior/ nor_SLEEP_subjects_check _sleep.ipynb - Analysis_code_and_source
_data/ , Jupyter, 259 linesnor_behavior/ validate_to_hypno.ipynb - Analysis_code_and_source
_data/ , Jupyter, 392 linesoff_periods/ halo/ off-period_summary_HALO. ipynb - Analysis_code_and_source
_data/ , Jupyter, 260 linesoff_periods/ halo/ tonic-raw-dat_schematics _HALO.ipynb - Analysis_code_and_source
_data/ , Jupyter, 349 linesoff_periods/ off-period_summary_acr_s wi.ipynb - Analysis_code_and_source
_data/ , Jupyter, 182 linesoff_periods/ off-period_summary_ctrl_ swi.ipynb - Analysis_code_and_source
_data/ , Jupyter, 345 linesoff_periods/ off-period_summary_som_s wi.ipynb - Analysis_code_and_source
_data/ , Jupyter, 130 linesoff_periods/ off_detection_schematics .ipynb - Analysis_code_and_source
_data/ , Jupyter, 245 linesoff_periods/ off_induction_schematics _SOM-SWI.ipynb - Analysis_code_and_source
_data/ , Jupyter, 490 linesoff_periods/ suplemental_validation/ off-period_single_chan_A CR.ipynb - Analysis_code_and_source
_data/ , Jupyter, 229 linesoff_periods/ suplemental_validation/ off-period_single_chan_S OM.ipynb - Analysis_code_and_source
_data/ , Jupyter, 173 linesoff_periods/ suplemental_validation/ off__WP__SWI.ipynb - Analysis_code_and_source
_data/ , Jupyter, 431 linesoff_periods/ tonic/ off-period-summary_tonic _vs_offind.ipynb - Analysis_code_and_source
_data/ , Jupyter, 404 linesoff_periods/ tonic/ off_induction_schematics _SOM-TONIC.ipynb - Analysis_code_and_source
_data/ , Jupyter, 725 linesraw_data_animation/ animate_dat.ipynb - Analysis_code_and_source
_data/ , Jupyter, 719 linesraw_data_animation/ animate_dat2.ipynb - Analysis_code_and_source
_data/ , Jupyter, 156 linesraw_data_animation/ find_data.ipynb - Analysis_code_and_source
_data/ , Jupyter, 500 linesraw_data_animation/ gen_mouse_vids.ipynb - Analysis_code_and_source
_data/ , Jupyter, 154 linesschems/ SD_effectiveness.ipynb - Analysis_code_and_source
_data/ , Jupyter, 45 linesschems/ STIM_TIME_REAL.ipynb - Analysis_code_and_source
_data/ , Jupyter, 156 linesschems/ induction_schem.ipynb - Analysis_code_and_source
_data/ , Jupyter, 152 linesschems/ induction_schem_ACR.ipyn b - Analysis_code_and_source
_data/ , Jupyter, 363 linesschems/ opto_evoked_plots/ evoked_potentials_ACR.ip ynb - Analysis_code_and_source
_data/ , Jupyter, 414 linesschems/ opto_evoked_plots/ evoked_potentials_SOM.ip ynb - Analysis_code_and_source
_data/ , Jupyter, 168 linesschems/ raw_dat.ipynb - Analysis_code_and_source
_data/ , Jupyter, 225 linesschems/ schematics_control.ipynb - Analysis_code_and_source
_data/ , Jupyter, 208 linesschems/ schematics_swi.ipynb - Analysis_code_and_source
_data/ , Jupyter, 1,063 linesschems/ sleep_architecture/ sarch.ipynb - Analysis_code_and_source
_data/ , Jupyter, 210 linesschems/ tonic/ schematics_SOM-swisin.ip ynb - Analysis_code_and_source
_data/ , Jupyter, 216 linesschems/ tonic/ schematics_halo_tonic.ip ynb - Analysis_code_and_source
_data/ , Jupyter, 1,193 linesspindle/ spindle_quantification_A CR.ipynb - Analysis_code_and_source
_data/ , Jupyter, 1,148 linesspindle/ spindle_quantification_S OM.ipynb - Analysis_code_and_source
_data/ , Jupyter, 1,295 linesswa/ ACR--SWI--EXPS.ipynb - Analysis_code_and_source
_data/ , Jupyter, 509 linesswa/ CTRL--SWI_EXPS.ipynb - Analysis_code_and_source
_data/ , Jupyter, 1,342 linesswa/ SOM--SWI_EXPS.ipynb - Analysis_code_and_source
_data/ , Jupyter, 1,018 linesswa/ comps/ anova_and_power.ipynb - Analysis_code_and_source
_data/ , Jupyter, 340 linesswa/ comps/ bayes.ipynb - Analysis_code_and_source
_data/ , Jupyter, 211 lines, 1 matchswa/ full_spg_stats_summary.i pynb - Analysis_code_and_source
_data/ , Jupyter, 476 linesswa/ tfr/ bpfilt_sigs_acr.ipynb - Analysis_code_and_source
_data/ , Jupyter, 460 linesswa/ tfr/ bpfilt_sigs_som.ipynb - Analysis_code_and_source
_data/ , Jupyter, 561 linesswa/ tfr/ spectro_snippets.ipynb - Analysis_code_and_source
_data/ , Jupyter, 380 linesswa/ tonic/ HALO--SWISIN_EXPS.ipynb - Analysis_code_and_source
_data/ , Jupyter, 375 linesswa/ tonic/ SOM__OFFIND--match.ipynb - Analysis_code_and_source
_data/ , Jupyter, 359 linesswa/ tonic/ SOM__SWA__COMPARISON_fin alized.ipynb - Analysis_code_and_source
_data/ , Jupyter, 365 linesswa/ tonic/ SOM__TONIC.ipynb - Analysis_code_and_source
_data/ , Jupyter, 657 lines, 1 matchsynchrony/ field_potentials/ halo/ lfp_slope__HALO__tonic.i pynb - Analysis_code_and_source
_data/ , Jupyter, 624 linessynchrony/ field_potentials/ lfp_slope__CTRL__SWI.ipy nb - Analysis_code_and_source
_data/ , Jupyter, 1,720 linessynchrony/ field_potentials/ lfp_slope__SOM__SWI.ipyn b - Analysis_code_and_source
_data/ , Jupyter, 1,357 linessynchrony/ field_potentials/ lfp_slope__acr--swi.ipyn b - Analysis_code_and_source
_data/ , Jupyter, 748 linessynchrony/ field_potentials/ schematics/ fp_sync_schematics.ipynb - Analysis_code_and_source
_data/ , Jupyter, 1,082 linessynchrony/ single_units/ ACR_sing_sync.ipynb - Analysis_code_and_source
_data/ , Jupyter, 493 linessynchrony/ single_units/ Halo_sing_sync.ipynb - Analysis_code_and_source
_data/ , Jupyter, 1,483 linessynchrony/ single_units/ SOM_sing_sync.ipynb - Analysis_code_and_source
_data/ , R, 415 lines, 1 matchsynchrony/ single_units/ statistical_source_data/ lme_sttc.R - Analysis_code_and_source
_data/ , Jupyter, 1,429 linessynchrony/ units/ STTC_ACR_SWI.ipynb - Analysis_code_and_source
_data/ , Jupyter, 313 linessynchrony/ units/ STTC_CTRL_SWI.ipynb - Analysis_code_and_source
_data/ , Jupyter, 975 linessynchrony/ units/ STTC_SOM_SWI.ipynb - Analysis_code_and_source
_data/ , Jupyter, 375 linessynchrony/ units/ halo/ STTC_HALO_SWISIN.ipynb - Analysis_code_and_source
_data/ , Jupyter, 405 linestrace_snippets/ nrem_traces.ipynb - Analysis_code_and_source
_data/ , Python, 729 linesutility_scripts/ data_agg.py - Analysis_code_and_source
_data/ , Python, 276 linesutility_scripts/ pub_utils.py - LICENSE, License, 21 lines
- README.md, Text, 3 lines
CSC-UW/sleepscore
2d63d1814a54c266a74d41df65fad17ddb783a47, 27 January 2022Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
12 files
- run.py, Python, 30 lines
- setup.py, Python, 53 lines
- sleepscore/
__about__.py , Python, 17 lines - sleepscore/
__init__.py , Python, 248 lines - sleepscore/
__main__.py , Python, 23 lines - sleepscore/
load/ , Python, 352 lines__init__.py - sleepscore/
load/ , Python, 1 line__main__.py - sleepscore/
load/ , Python, 398 linesreadSGLX.py - sleepscore/
load/ , Python, 156 linesresample.py - sleepscore/
load/ , Python, 36 linesutils.py - sleepscore/
validation.py , Python, 102 lines - README.md, Text, 132 lines
Code availability statement
The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: CSC-UW/
OFF_PERIOD_INDUCTION_MAT ERIALS
Read it in the paper: doi.org/10.1038/s41593-026-02318-9.
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:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 89 scripts, each with its path and the digest of its content;
- 7 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- 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
- uniprot.org/
uniprot/ , at UniProt; found in the text, “Immunohistochemistry”p36982 - uniprot.org/
uniprot/ , at UniProt; found in the text, “Quantitative immunoblotting”q32866
Code and data availability statement
The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: CSC-UW/
OFF_PERIOD_INDUCTION_MAT ERIALS - it says that the data are available on request
Read it in the paper: doi.org/10.1038/s41593-026-02318-9.
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 2, 28 September 2026
- Publisher: n/a → Nature Portfolio
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 5 keywords, 13 MeSH terms, 1 funder, 86 references.
Cite
This paper
Driessen, K., Squarcio, F., Tononi, G., & Cirelli, C. (2026). Induction of cortical on/
BibTeX
@article{driessen2026ind
author = {Driessen, Kort and Squarcio, Fabio and Tononi, Giulio and Cirelli, Chiara},
title = {{Induction of cortical on/
journal = {Nature neuroscience},
year = {2026},
month = jun,
volume = {29},
number = {8},
pages = {1954--1965},
publisher = {Nature Portfolio},
issn = {1097-6256},
doi = {10.1038/
url = {https://
pmid = {42260219},
pmcid = {PMC13433317}
}
RIS
TY - JOUR
AU - Driessen, Kort
AU - Squarcio, Fabio
AU - Tononi, Giulio
AU - Cirelli, Chiara
TI - Induction of cortical on/
T2 - Nature neuroscience
J2 - Nat Neurosci
PY - 2026
DA - 2026/
VL - 29
IS - 8
SP - 1954
EP - 1965
SN - 1097-6256
PB - Nature Portfolio
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Induction of cortical on/
"container-title": "Nature neuroscience",
"author": [
{
"family": "Driessen",
"given": "Kort"
},
{
"family": "Squarcio",
"given": "Fabio"
},
{
"family": "Tononi",
"given": "Giulio"
},
{
"family": "Cirelli",
"given": "Chiara"
}
],
"container-title-short":
"volume": "29",
"issue": "8",
"page": "1954-1965",
"DOI": "10.1038/
"PMID": "42260219",
"PMCID": "PMC13433317",
"ISSN": "1097-6256",
"publisher": "Nature Portfolio",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
8
]
]
}
}
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.1038/s41593-026-02232-0 [code]
- Entorhinal cortex represents task-relevant remote locations independently of CA1.Journal: Nature neuroscienceIn common: SpikeInterface, xarray, Pingouin, 7 other tools, mouse, 2 references
- [2] doi:10.1162/imag.a.1321 [code]
- Phase similarity between similar objects indicates representational merging across retrieval training but not sleep.Journal: Imaging neuroscience (Cambridge, Mass.)In common: YASA, Pingouin, lmerTest, 8 other tools, 1 reference
- [3] doi:10.1093/sleepadvances/zpag065 [code]
- Brain-wide properties of slow waves across vigilance states.Journal: Sleep advances : a journal of the Sleep Research SocietyIn common: 9 references
- [4] doi:10.1093/sleepadvances/zpag069 [code]
- Thalamic transcranial electrical stimulation with temporal interference enhances sleep spindle activity during a daytime nap.Journal: Sleep advances : a journal of the Sleep Research SocietyIn common: lme4, tidyverse, 1 reference, 2 authors
- [5] doi:10.1093/nc/niag029 [code]
- A data-driven approach to identifying and evaluating connectivity-based neural correlates of conscious visual perception.Journal: Neuroscience of consciousnessIn common: xarray, Pingouin, lmerTest, 7 other tools, 1 reference
- [6] doi:10.34133/csbj.0042 [code]
- Using Steady-State Visual Evoked Potentials to Characterize Wide-Ranging Retinopathy Linked to &
lt;i& gt;CRB1& lt;/ i& gt;: Implications for Clinical Trials. Journal: Computational and structural biotechnology journalIn common: Pingouin, lmerTest, Plotly, 8 other tools - [7] doi:10.1038/s41593-026-02228-w [code]
- Circuit response to neuromodulation characterized with simultaneous deep brain stimulation and precision neuroimaging in humans.Journal: Nature neuroscienceIn common: Pingouin, lmerTest, lme4, 8 other tools
- [8] doi:10.1038/s42003-026-10957-8 [code]
- Brain defence by the extracellular matrix protein Cochlin.Journal: Communications biologyIn common: Plotly, lme4, OpenCV, 8 other tools, mouse
- [9] doi:10.1016/j.xcrm.2026.102766 [code]
- A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.Journal: Cell reports. MedicineIn common: lmerTest, Plotly, lme4, 8 other tools
- [10] doi:10.1016/j.celrep.2026.117073 [code]
- Single-cell epigenomics uncovers heterochromatin instability and transcription factor dysfunction during mouse brain aging.Journal: Cell reportsIn common: xarray, Pingouin, lme4, 7 other tools, mouse
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: 2 repositories of the authors' code, each at its verified commit and with its license, 89 scripts, and 7 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:26e13dbe88a1bb3b…
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.
