Auricular vagus nerve stimulation drives analgesia via an auricle-brain axis in a mouse model of neuropathic pain.
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
MATLAB · 652 lines · 17 KB · GPL-3.0
- function varargout = MovieGUI(varargin)
- % MOVIEGUI MATLAB code for MovieGUI.fig
- % MOVIEGUI, by itself, creates a new MOVIEGUI or raises the existing
- % singleton*.
- %
- % H = MOVIEGUI returns the handle to a new MOVIEGUI or the handle to
- % the existing singleton*.
- %
- % MOVIEGUI('CALLBACK',hObject,eventData,h,...) calls the local
- % function named CALLBACK in MOVIEGUI.M with the given input arguments.
- %
- % MOVIEGUI('Property','Value',...) creates a new MOVIEGUI or raises the
- % existing singleton*. Starting from the left, property value pairs are
- % applied to the GUI before MovieGUI_OpeningFcn gets called. An
- % unrecognized property name or invalid value makes property application
- % stop. All inputs are passed to MovieGUI_OpeningFcn via varargin.
- %
- % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
- % instance to run (singleton)".
- %
- % See also: GUIDE, GUIDATA, GUIh
- % Edit the above text to modify the response to help MovieGUI
- % Last Modified by GUIDE v2.5 11-Sep-2018 13:13:32
- % Begin initialization code - DO NOT EDIT
- gui_Singleton = 1;
- gui_State = struct('gui_Name', mfilename, ...
- 'gui_Singleton', gui_Singleton, ...
- 'gui_OpeningFcn', @MovieGUI_OpeningFcn, ...
- 'gui_OutputFcn', @MovieGUI_OutputFcn, ...
- 'gui_LayoutFcn', [] , ...
- 'gui_Callback', []);
- if nargin && ischar(varargin{1})
- gui_State.gui_Callback = str2func(varargin{1});
- end
- if nargout
- [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
- else
- gui_mainfcn(gui_State, varargin{:});
- end
- % End initialization code - DO NOT EDIT
- % --- Executes just before MovieGUI is made visible.
- function MovieGUI_OpeningFcn(hObject, eventdata, h, varargin)
- % This function has no output args, see OutputFcn.
- % hObject handle to figure
- % eventdata reserved - to be defined in a future version of MATLAB
- % h structure with h and user data (see GUIDATA)
- % varargin command line arguments to MovieGUI (see VARARGIN)
- % Choose default command line output for MovieGUI
- h.output = hObject;
- addpath(genpath('.')); % add all subdirectories here to path
- % default filepath for eye camera
- h.filepath = '/media/carsen/DATA2/grive/sample_movies/';
- h.suffix = {'.mj2','.mp4','.mkv','.avi','.mpeg','.mpg','.asf'}; % suffix of eye camera file!
- % use a GPU? default 1
- h.useGPU = 1;
- % default smoothing constants
- h.sc = 4;
- h.tsc = 1;
- % colors for ROIs
- h.colors = [1 0 1;...
- 1 .65 0;...
- .85 .3 .1;...
- .8 .8 0;...
- 0 1 0;...
- .3 .7 0;
- 0 0.5 0.5;
- 0 0.4 0.8];
- % default threshold for pupil
- h.thres = 4;
- set(h.slider2,'Min',0);
- set(h.slider2,'Max',1);
- set(h.slider2,'Value',0);
- set(h.edit1,'String',num2str(0));
- set(h.pupilsigma,'String',num2str(4));
- h.thres = 2;
- h.saturation = zeros(100,1);
- h.framesaturation = zeros(100,1);
- h.whichfile = 1;
- h.ROIfile = zeros(8,1);
- h.plotROIs = false(8,1);
- h.indROI = [];
- for k = 1:length(h.plotROIs)
- h.locROI{k} = [];
- end
- axes(h.axes1);
- set(gca,'xtick',[],'ytick',[]);
- box on;
- axes(h.axes4);
- set(gca,'xtick',[],'ytick',[]);
- box on;
- % Update h structure
- guidata(hObject, h);
- % UIWAIT makes MovieGUI wait for user response (see UIRESUME)
- % uiwait(h.figure1);
- % --- Outputs from this function are returned to the command line.
- function varargout = MovieGUI_OutputFcn(hObject, eventdata, h)
- % Get default command line output from h structure
- varargout{1} = h.output;
- %%%%% choose folder to write binary file
- function pushbutton18_Callback(hObject, eventdata, h)
- folder_name = uigetdir(h.binfolder);
- if folder_name ~= 0
- h.binfolder = folder_name;
- set(h.text21,'String',h.binfolder);
- end
- % Update h structure
- guidata(hObject, h);
- % ------------ choose folder -- can have multiple blocks!
- function folder_Callback(hObject, eventdata, h)
- folder_name = uigetdir(h.filepath);
- if folder_name ~= 0
- h.rootfolder = folder_name;
- [filename,folders,namef] = findMovieFolders(h,folder_name);
- namef
- if isempty(filename{1})
- msgbox('ahh! no movie files found!');
- else
- [filename,folders,namef] = chooseFiles(filename,folders,namef);
- axes(h.axes1);
- cla;
- axes(h.axes4);
- cla('reset');
- axis off;
- h.files = filename;
- h.folders = folders;
- h.vr = [];
- h.nX = [];
- h.nY = [];
- fstr{1}=[];
- for k = 1:size(filename,1)
- for j = 1:size(filename,2)
- h.vr{k,j} = VideoReader(filename{k,j});
- if j==1
- nX{k} = h.vr{k}.Width;
- nY{k} = h.vr{k}.Height;
- end
- fstr{k,j} = sprintf('%s/%s',folders{k,j},namef{k,j});
- end
- h.whichfile = k;
- h = resetROIs(h);
- end
- h.nX = nX;
- h.nY = nY;
- h.wROI = 1;
- h.rcurr = 0;
- h.whichfile = 1;
- h.whichview = 1;
- % delete small ROIs
- h.plotROIs(:) = 0;
- h.ROIfile(:) = 0;
- % string for movie choosing menu
- set(h.popupmenu6, 'String', fstr);
- set(h.popupmenu6, 'Value', h.whichfile);
- % reset ROIs to fit in video
- fprintf('displaying \n%s\n',filename{h.whichfile});
- if length(folder_name) > length(h.filepath)
- if strcmp(folder_name(1:length(h.filepath)),h.filepath)
- foldname = folder_name(length(h.filepath)+1:end);
- ns = strfind(foldname,'\');
- if isempty(ns)
- ns = strfind(foldname,'/');
- end
- if ~isempty(ns)
- ns = ns(1);
- foldname = sprintf('%s\n%s',foldname(1:ns),foldname(ns+1:end));
- set(h.text13,'String',foldname);
- else
- set(h.text13,'String',folder_name);
- end
- else
- set(h.text13,'String',folder_name);
- end
- else
- set(h.text13,'String',folder_name);
- end
- h.folder_name = folder_name;
- h.nframes = h.vr{h.whichfile}.Duration*h.vr{h.whichfile}.FrameRate - 1;
- disp(h.nframes+1)
- h.cframe = 1;
- set(h.slider1,'Value',0);
- set(h.slider4,'Value',0);
- set(h.edit3,'String','1');
- PlotFrame(h);
- end
- end
- guidata(hObject,h);
- % --------------- choose file to view! -------------------%
- function popupmenu6_Callback(hObject, eventdata, h)
- wfile0=h.whichfile;
- h.whichfile = get(hObject,'Value');
- [h.whichview, ~] = ind2sub(size(h.files), h.whichfile);
- h.cframe = 1;
- h.wROI = 1;
- set(h.checkbox16,'Value',1);
- axes(h.axes1);
- cla;
- if wfile0 ~= h.whichfile
- axes(h.axes4);
- cla('reset');
- h.indROI=[];
- box off;
- axis off;
- end
- PlotFrame(h);
- fprintf('displaying \n%s\n',h.files{h.whichfile});
- h.nframes = h.vr{h.whichfile}.Duration*h.vr{h.whichfile}.FrameRate-1;
- set(h.edit1,'String',sprintf('%1.2f',h.saturation(h.whichfile)));
- set(h.slider5,'Value',h.framesaturation(h.whichfile));
- guidata(hObject,h);
- % SET WHETHER OR NOT TO VIEW AREAS
- function checkbox16_Callback(hObject, eventdata, h)
- wc = get(hObject,'Value');
- h.wROI = wc;
- PlotFrame(h);
- guidata(hObject,h);
- % ------- DRAW INCLUDED ROIs FOR MULTIVIDEO SVD ----------------------- %
- function keepROI_Callback(hObject, eventdata, h)
- nxS = floor(h.nX{h.whichview} / h.sc);
- nyS = floor(h.nY{h.whichview} / h.sc);
- if isempty(h.ROI{h.whichview}{1})
- ROI0 = [1 1 nxS nyS];
- else
- ROI0 = [nxS*.25 nyS*.25 nxS*.5 nyS*.5];
- end
- ROI = drawROI(h,ROI0);
- ROI = onScreenROI(ROI, nxS, nyS);
- if isempty(h.ROI{h.whichview}{1})
- h.ROI{h.whichview}{1} = ROI;
- else
- h.ROI{h.whichview}{end+1} = ROI;
- end
- h.rcurr = 0;
- PlotFrame(h);
- guidata(hObject, h);
- % ------- DRAW EXCLUDED ROIs FOR MULTIVIDEO SVD ----------------------- %
- function excludeROI_Callback(hObject, eventdata, h)
- nxS = floor(h.nX{h.whichview} / h.sc);
- nyS = floor(h.nY{h.whichview} / h.sc);
- ROI0 = [nxS*.4 nyS*.4 nxS*.3 nyS*.3];
- ROI = drawROI(h,ROI0);
- ROI = onScreenROI(ROI, nxS, nyS);
- if isempty(h.eROI{h.whichview}{1})
- h.eROI{h.whichview}{1} = ROI;
- else
- h.eROI{h.whichview}{end+1} = ROI;
- end
- h.rcurr = 1;
- PlotFrame(h);
- guidata(hObject, h);
- % --- delete all multivideo SVD ROIs ---- %
- function deleteall_Callback(hObject, eventdata, h)
- h = resetROIs(h);
- PlotFrame(h);
- guidata(hObject, h);
- % --- delete last drawn multivideo SVD ROI ---- %
- function deleteone_Callback(hObject, eventdata, h)
- if h.rcurr
- if numel(h.eROI{h.whichview}) > 1
- h.eROI{h.whichview} = h.eROI{h.whichview}(1:end-1);
- else
- h.eROI{h.whichview}{1} = [];
- end
- else
- if numel(h.ROI{h.whichview}) > 1
- h.ROI{h.whichview} = h.ROI{h.whichview}(1:end-1);
- else
- h.ROI{h.whichview}{1} = [];
- end
- end
- PlotFrame(h);
- guidata(hObject, h);
- % use a GPU?
- function checkbox17_Callback(hObject, eventdata, h)
- wc = get(hObject,'Value');
- h.useGPU = wc;
- guidata(hObject,h);
- % --- SLIDER FOR CHOOSING DISPLAYED FRAME ------------------ %
- function slider1_CreateFcn(hObject, eventdata, h)
- set(hObject,'Interruptible','On');
- if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor',[.75 .75 .75]);
- end
- function slider1_Callback(hObject, eventdata, h)
- set(hObject,'Interruptible','On');
- set(hObject,'BusyAction','cancel');
- v = get(hObject,'Value');
- smin = get(hObject,'Min');
- smax = get(hObject,'Max');
- cframe = min(h.nframes-1,max(1,round(v/(smax-smin) * h.nframes)));
- h.cframe = cframe;
- set(h.edit3,'String',num2str(cframe));
- set(h.slider4,'Value',h.cframe/(h.nframes-1));
- PlotFrame(h);
- PlotROI(h);
- guidata(hObject,h);
- % --- FINESCALE SLIDER ------------------ %
- function slider4_Callback(hObject, eventdata, h)
- set(hObject,'Interruptible','On');
- set(hObject,'BusyAction','cancel');
- set(hObject,'SliderStep',[1/double(h.nframes-1) 2/double(h.nframes-1)]);
- v = get(hObject,'Value');
- cframe = min(h.nframes-1,max(1,round((v)*h.nframes)));%%/ h.nframes)));
- h.cframe = cframe;
- set(h.edit3,'String',num2str(cframe));
- set(h.slider1,'Value',h.cframe/h.nframes);
- PlotFrame(h);
- PlotROI(h);
- guidata(hObject,h);
- function slider4_CreateFcn(hObject, eventdata, h)
- if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor',[.9 .9 .9]);
- end
- set(hObject,'Min',0);
- set(hObject,'Max',1);
- % --- PLAY button
- function togglebutton1_Callback(hObject, eventdata, h)
- while get(hObject, 'value') && h.cframe+1 < h.nframes
- h.cframe = h.cframe+1;
- set(h.edit3,'String',num2str(h.cframe));
- set(h.slider1,'Value',h.cframe/h.nframes);
- PlotFrame(h);
- PlotROI(h);
- end
- set(h.slider4,'Value',h.cframe/(h.nframes-1));
- guidata(hObject,h);
- % --- Executes during object creation, after setting all properties.
- function slider5_CreateFcn(hObject, eventdata, h)
- if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor',[.9 .9 .9]);
- end
- % ***************** SATURATION SETTINGS ****************%
- % --- SLIDER FOR FULL FRAME SATURATION ---------------------%
- function slider5_Callback(hObject, eventdata, h)
- set(hObject,'Interruptible','On');
- set(hObject,'BusyAction','cancel');
- sats = get(hObject,'Value');
- h.framesaturation(h.whichview) = sats;
- PlotFrame(h);
- guidata(hObject,h);
- % --- SLIDER FOR SELECTED ROI SATURATION -------------------%
- function slider2_Callback(hObject, eventdata, h)
- set(hObject,'Interruptible','On');
- set(hObject,'BusyAction','cancel');
- sats = get(hObject,'Value');
- h.saturation(h.indROI) = sats;
- set(h.edit1,'String',sprintf('%1.2f',sats));
- %PlotFrame(h);
- axes(h.axes4);
- cla;
- PlotROI(h);
- guidata(hObject, h);
- function slider2_CreateFcn(hObject, eventdata, h)
- if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor',[.9 .9 .9]);
- end
- % saturation edit
- function edit1_Callback(hObject, eventdata, h)
- sval = get(hObject,'String');
- set(h.slider2,'Value',str2num(sval));
- h.saturation(h.whichfile) = str2num(sval);
- PlotFrame(h);
- guidata(hObject,h);
- function edit1_CreateFcn(hObject, eventdata, h)
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white','String',num2str(h.pupLow));
- end
- % ****** Save ROI settings and keep list of saved folders ----- %
- function savesettings_Callback(hObject, eventdata,h)
- saveROI(h);
- guidata(hObject,h);
- % ****** ROIs will be processed across expts -------------------- %
- function processROIs_Callback(hObject, eventdata, h)
- h = processROIs(h);
- guidata(hObject,h);
- % **** initialize list of files box
- function popupmenu6_CreateFcn(hObject, eventdata, h)
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- set(hObject,'String','first choose folder');
- set(hObject,'Value',1);
- if isfield(h,'folders')
- set(hObject,'String',folders);
- end
- %%%%%% ***************** TEXT BOXES *************** %%%%%%%
- %%%%% frame number edit box
- function edit3_Callback(hObject, eventdata, h)
- cframe = get(hObject,'String');
- if iscell(cframe)
- cframe = cframe{1};
- end
- h.cframe = max(1,min(h.nframes-1,round(str2num(cframe))));
- set(hObject,'String',sprintf('%d',h.cframe));
- set(h.slider1,'Value',h.cframe/h.nframes);
- set(h.slider4,'Value',h.cframe/h.nframes);
- PlotFrame(h);
- guidata(hObject,h);
- function edit3_CreateFcn(hObject, eventdata, h)
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- %%%%% SPATIAL SMOOTHING BOX
- function edit4_Callback(hObject, eventdata, h)
- spatscale = get(hObject,'String');
- if iscell(spatscale)
- spatscale = spatscale{1};
- end
- spatscale = max(1, min(50, round(str2num(spatscale))));
- % resize ROIs
- h = resizeROIs(h, spatscale);
- h.sc = spatscale;
- set(hObject, 'String', sprintf('%d', h.sc));
- axes(h.axes1);
- cla;
- PlotFrame(h);
- axes(h.axes4);
- cla;
- PlotROI(h);
- guidata(hObject, h);
- function edit4_CreateFcn(hObject, eventdata, h)
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- %%%%%% pupil threshold edit box ---------------------- %
- function pupilsigma_Callback(hObject, eventdata, h)
- thres = get(hObject,'String');
- if iscell(thres)
- thres = thres{1};
- end
- h.thres = max(1, min(10, (str2num(thres))));
- set(hObject, 'String', sprintf('%1.1f', h.thres));
- PlotROI(h);
- guidata(hObject,h);
- function pupilsigma_CreateFcn(hObject, eventdata, h)
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- %%%%% temporal smoothing constant box --------------------- %
- function edit5_Callback(hObject, eventdata, h)
- tempscale = get(hObject,'String');
- if iscell(tempscale)
- tempscale = tempscale{1};
- end
- h.tsc = max(1, min(50, round(str2num(tempscale))));
- set(hObject, 'String', sprintf('%d', h.tsc));
- PlotFrame(h);
- guidata(hObject, h);
- function edit5_CreateFcn(hObject, eventdata, h)
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- % --- SMALLER ROIs AND PUPILS ----------------------------------- %
- function running_Callback(hObject, eventdata, h)
- h.indROI = 1;
- h = drawSmallROI(h);
- guidata(hObject, h);
- function whisker_Callback(hObject, eventdata, h)
- h.indROI = 2;
- h = drawSmallROI(h);
- guidata(hObject, h);
- function snout_Callback(hObject, eventdata, h)
- h.indROI = 3;
- h = drawSmallROI(h);
- guidata(hObject, h);
- function otherROI_Callback(hObject, eventdata, h)
- h.indROI = 4;
- h = drawSmallROI(h);
- guidata(hObject, h);
- function pupil1_Callback(hObject, eventdata, h)
- h.indROI = 5;
- h = drawSmallROI(h);
- guidata(hObject, h);
- function pupil2_Callback(hObject, eventdata, h)
- h.indROI = 6;
- h = drawSmallROI(h);
- guidata(hObject, h);
- function blink1_Callback(hObject, eventdata, h)
- h.indROI = 7;
- h = drawSmallROI(h);
- guidata(hObject, h);
- function blink2_Callback(hObject, eventdata, h)
- h.indROI = 8;
- h = drawSmallROI(h);
- guidata(hObject, h);
- % --------- DELETE ROIs -------- %
- function runningdelete_Callback(hObject, eventdata, h)
- h.plotROIs(1) = 0;
- h.ROIfile(1) = 0;
- PlotFrame(h);
- axes(h.axes4);
- cla;
- title('');
- guidata(hObject,h);
- function whiskerdelete_Callback(hObject, eventdata, h)
- h.plotROIs(2) = 0;
- h.ROIfile(2) = 0;
- PlotFrame(h);
- axes(h.axes4);
- cla;
- title('');
- guidata(hObject,h);
- function snoutdelete_Callback(hObject, eventdata, h)
- h.plotROIs(3) = 0;
- h.ROIfile(3) = 0;
- PlotFrame(h);
- axes(h.axes4);
- cla;
- title('');
- guidata(hObject,h);
- function otherdelete_Callback(hObject, eventdata, h)
- h.plotROIs(4) = 0;
- h.ROIfile(4) = 0;
- PlotFrame(h);
- axes(h.axes4);
- cla;
- title('');
- guidata(hObject,h);
- function pupil1delete_Callback(hObject, eventdata, h)
- h.plotROIs(5) = 0;
- h.ROIfile(5) = 0;
- PlotFrame(h);
- axes(h.axes4);
- cla;
- title('');
- guidata(hObject,h);
- function pupil2delete_Callback(hObject, eventdata, h)
- h.plotROIs(6) = 0;
- h.ROIfile(6) = 0;
- PlotFrame(h);
- axes(h.axes4);
- cla;
- title('');
- guidata(hObject,h);
- function blink1delete_Callback(hObject, eventdata, h)
- h.plotROIs(7) = 0;
- h.ROIfile(7) = 0;
- PlotFrame(h);
- axes(h.axes4);
- cla;
- title('');
- guidata(hObject,h);
- function blink2delete_Callback(hObject, eventdata, h)
- h.plotROIs(8) = 0;
- h.ROIfile(8) = 0;
- PlotFrame(h);
- axes(h.axes4);
- cla;
- title('');
- guidata(hObject,h);
- function pushbutton23_Callback(hObject, eventdata, h)
MovieGUI.m at commit f8b5b51, under GPL-3.0 · at the source
Overview
- Department of Pain Medicine, The First Affiliated Hospital of Anhui Medical University, Hefei, PR China
- Department of Anatomy, Anhui Provincial Key Laboratory for Brain Bank Construction and Resource Utilization, School of Basic Medical Sciences, Anhui Medical University, Hefei, PR China
- High Magnetic Field Laboratory of CAS (CHMFL), CAS Key Laboratory of High Magnetic Field and Ion Beam Physical Biology, HFIPS, Hefei, PR China
- Department of Anesthesiology and Pain Medicine, The First Affiliated Hospital of USTC, Hefei National Laboratory for Physical Sciences at the Microscale, Division of Life Sciences and Medicine, University of Science and Technology of China, Hefei, PR China
- School of Integrated Chinese and Western Medicine, Anhui University of Chinese Medicine, Hefei, PR China
- Department of Psychiatry, The First Affiliated Hospital of USTC, Hefei, PR China
- College & Hospital of Stomatology, Anhui Provincial Key Laboratory of Oral Diseases Research, Anhui Medical University, Hefei, PR China
- Center for Advanced Interdisciplinary Science and Biomedicine of IHM, Hefei, PR China
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.
Repository
Its files are read in the Code ↔ Paper reader above.
mouseland/facemap
f8b5b518efcde8b4aae7727283bf017b23641c7f, 21 July 2025Availability: 2 checks, the latest on 31 October 2026: the link answers
- 31 October 2026: the link answers
- 29 September 2026: the link answers
85 files
- MovieGUI.m, MATLAB, 652 lines
- docs/
conf.py , Python, 104 lines - docs/
notebooks/ , Jupyter, 229 linesarchive.ipynb - docs/
notebooks/ , Jupyter, 102 linesload_visualize_keypoints .ipynb - docs/
notebooks/ , Jupyter, 165 linesprocess_keypoints.ipynb - docs/
notebooks/ , Jupyter, 114 linesprocess_svd.ipynb - docs/
notebooks/ , Jupyter, 140 linesrefine_keypoints_model.i pynb - facemap/
__init__.py , Python, 5 lines - facemap/
__main__.py , Python, 113 lines - facemap/
gui/ , Python, 786 linescluster.py - facemap/
gui/ , Python, 2,386 linesgui.py - facemap/
gui/ , Python, 606 linesguiparts.py - facemap/
gui/ , Python, 546 lineshelp_windows.py - facemap/
gui/ , Python, 518 linesio.py - facemap/
gui/ , Python, 130 linesmenus.py - facemap/
gui/ , Python, 1,052 linesneural_activity_window.p y - facemap/
keypoints.py , Python, 196 lines - facemap/
neural_prediction/ , Python, 98 lineskeypoints_utils.py - facemap/
neural_prediction/ , Python, 191 linesneural_activity.py - facemap/
neural_prediction/ , Python, 462 linesneural_model.py - facemap/
neural_prediction/ , Python, 745 linesprediction_utils.py - facemap/
pose/ , Python, 342 linesdatasets.py - facemap/
pose/ , Python, 166 linesfacemap_network.py - facemap/
pose/ , Python, 163 linesmodel_loader.py - facemap/
pose/ , Python, 281 linesmodel_training.py - facemap/
pose/ , Python, 532 linespose.py - facemap/
pose/ , Python, 344 linespose_gui.py - facemap/
pose/ , Python, 274 linespose_helper_functions.py - facemap/
pose/ , Python, 1,648 linesrefine_pose.py - facemap/
pose/ , Python, 551 linestransforms.py - facemap/
process.py , Python, 903 lines - facemap/
pupil.py , Python, 166 lines - facemap/
roi.py , Python, 450 lines - facemap/
running.py , Python, 133 lines - facemap/
utils.py , Python, 776 lines - facemap/
version.py , Python, 23 lines - linter.sh, Shell, 9 lines
- matlab/
BatchProcess_standalone. , MATLAB, 37 linesm - matlab/
computeSVDmotion.m , MATLAB, 119 lines - matlab/
figs/ , MATLAB, 117 linesPlotFrame.m - matlab/
figs/ , MATLAB, 102 linesPlotROI.m - matlab/
figs/ , MATLAB, 24 linesplotSVDmasks.m - matlab/
getfiles/ , MATLAB, 438 linesMFquestdlg.m - matlab/
getfiles/ , MATLAB, 113 lineschooseFiles.m - matlab/
getfiles/ , MATLAB, 51 linesfindMovieFolders.m - matlab/
getfiles/ , MATLAB, 23 linesfindallmov.m - matlab/
processROIs.m , MATLAB, 45 lines - matlab/
projectMasks.m , MATLAB, 180 lines - matlab/
pupil/ , MATLAB, 69 linesfindGaussianContour.m - matlab/
pupil/ , MATLAB, 40 linesfitMVGaus.m - matlab/
pupil/ , MATLAB, 10 linesprocessPupil.m - matlab/
pupil/ , MATLAB, 13 linespupilplot.m - matlab/
pupil/ , MATLAB, 29 linessmoothPupil.m - matlab/
running/ , MATLAB, 57 linesprocessRunning.m - matlab/
running/ , MATLAB, 29 linesrunningFilters.m - matlab/
saveROI.m , MATLAB, 77 lines - matlab/
setROIs/ , MATLAB, 11 linesdrawROI.m - matlab/
setROIs/ , MATLAB, 25 linesdrawSmallROI.m - matlab/
setROIs/ , MATLAB, 7 linesonScreenROI.m - matlab/
setROIs/ , MATLAB, 8 linesresetROIs.m - matlab/
setROIs/ , MATLAB, 30 linesresizeROIs.m - matlab/
subsampledMean.m , MATLAB, 105 lines - matlab/
utils/ , MATLAB, 6 linesgather_try.m - matlab/
utils/ , MATLAB, 9 lineskern.m - matlab/
utils/ , MATLAB, 52 linesmy_conv2.m - matlab/
utils/ , MATLAB, 13 linesmy_subplot.m - matlab/
utils/ , MATLAB, 4 linesnormc.m - matlab/
utils/ , MATLAB, 39 linesredblue.m - matlab/
utils/ , MATLAB, 43 linessvdecon.m - paper/
fig1.py , Python, 412 lines - paper/
fig3.py , Python, 434 lines - paper/
fig4.py , Python, 307 lines - paper/
fig_utils.py , Python, 119 lines - paper/
kpsproc.py , Python, 82 lines - paper/
neuralpred.py , Python, 786 lines - paper/
suppfigs.py , Python, 387 lines - setup.py, Python, 72 lines
- tests/
conftest.py , Python, 126 lines - tests/
test_import.py , Python, 27 lines - tests/
test_neural_prediction_o , Python, 6 linesutput.py - tests/
test_pose_estimation_out , Python, 49 linesput.py - tests/
test_svd_output.py , Python, 156 lines - tooldproc.m, MATLAB, 19 lines
- LICENSE, License, 674 lines
- README.md, Text, 161 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: mouseland/
facemap
Read it in the paper: doi.org/10.1038/s41467-026-72214-0.
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;
- 83 scripts, 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
No dataset and no data link were found in the paper.
Data availability statement
The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- no repository, dataset or request procedure was recognized in it
Read it in the paper: doi.org/10.1038/s41467-026-72214-0.
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, 14 authors, 2 keywords, 14 MeSH terms, 1 funder, 60 references.
Cite
This paper
Peng, X., Liu, Y., Liu, Y., Mao, Y., Xia, Q., Liu, A., Dai, Q., Tai, Y., Luo, B., Wang, H., Wang, Y., Kang, F., Wang, H., & Zhang, Z. (2026). Auricular vagus nerve stimulation drives analgesia via an auricle-brain axis in a mouse model of neuropathic pain. Nature communications, 17(1), 5481. https://
BibTeX
@article{peng2026auricul
author = {Peng, Xiaoqi and Liu, Yehao and Liu, Yi and Mao, Yunfeng and Xia, Qianhui and Liu, An and Dai, Qian and Tai, Yingju and Luo, Bin and Wang, Hao and Wang, Yuanyin and Kang, Fang and Wang, Haitao and Zhang, Zhi},
title = {{Auricular vagus nerve stimulation drives analgesia via an auricle-brain axis in a mouse model of neuropathic pain}},
journal = {Nature communications},
year = {2026},
month = apr,
volume = {17},
number = {1},
pages = {5481},
publisher = {Nature Portfolio},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {42014724},
pmcid = {PMC13284397}
}
RIS
TY - JOUR
AU - Peng, Xiaoqi
AU - Liu, Yehao
AU - Liu, Yi
AU - Mao, Yunfeng
AU - Xia, Qianhui
AU - Liu, An
AU - Dai, Qian
AU - Tai, Yingju
AU - Luo, Bin
AU - Wang, Hao
AU - Wang, Yuanyin
AU - Kang, Fang
AU - Wang, Haitao
AU - Zhang, Zhi
TI - Auricular vagus nerve stimulation drives analgesia via an auricle-brain axis in a mouse model of neuropathic pain
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 5481
SN - 2041-1723
PB - Nature Portfolio
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Auricular vagus nerve stimulation drives analgesia via an auricle-brain axis in a mouse model of neuropathic pain",
"container-title": "Nature communications",
"author": [
{
"family": "Peng",
"given": "Xiaoqi"
},
{
"family": "Liu",
"given": "Yehao"
},
{
"family": "Liu",
"given": "Yi"
},
{
"family": "Mao",
"given": "Yunfeng"
},
{
"family": "Xia",
"given": "Qianhui"
},
{
"family": "Liu",
"given": "An"
},
{
"family": "Dai",
"given": "Qian"
},
{
"family": "Tai",
"given": "Yingju"
},
{
"family": "Luo",
"given": "Bin"
},
{
"family": "Wang",
"given": "Hao"
},
{
"family": "Wang",
"given": "Yuanyin"
},
{
"family": "Kang",
"given": "Fang"
},
{
"family": "Wang",
"given": "Haitao"
},
{
"family": "Zhang",
"given": "Zhi"
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "5481",
"DOI": "10.1038/
"PMID": "42014724",
"PMCID": "PMC13284397",
"ISSN": "2041-1723",
"publisher": "Nature Portfolio",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
21
]
]
}
}
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-023-01490-6 [code]
- Facemap: a framework for modeling neural activity based on orofacial tracking.Journal: Nature neuroscienceIn common: PyWavelets, UMAP, Numba, 9 other tools, systems, mouse, 1 reference
- [2] doi:10.1073/pnas.2527641122
- Galectin-related protein, a key contributor, drives diabetes-associated neuropathic pain.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: pain, 1 reference, 2 authors
- [3] doi:10.1038/s41467-026-72057-9 [code]
- Sex-specific behavioral feedback modulates sensorimotor processing and drives flexible social behavior.Journal: Nature communicationsIn common: PyWavelets, UMAP, Numba, 8 other tools, systems
- [4] doi:10.1016/j.brs.2026.103044
- Cortical potentials evoked by stimulation of cervical vagus vs. auricular nerve: a comparative, parametric study in nonhuman primates.Journal: Brain stimulationIn common: 8 references
- [5] doi:10.1038/s41592-026-03057-2 [code]
- CREsted: modeling genomic and synthetic cell-type-specific enhancers across tissues and species.Journal: Nature methodsIn common: PyWavelets, UMAP, Numba, 7 other tools, mouse
- [6] doi:10.1016/j.neuron.2021.10.031 [code]
- Multisensory coding of angular head velocity in the retrosplenial cortex.Journal: NeuronIn common: PyWavelets, Numba, Parallel Computing Toolbox, 7 other tools, mouse
- [7] doi:10.1038/s41598-021-02307-x [code]
- Human intracranial recordings reveal distinct cortical activity patterns during invasive and non-invasive vagus nerve stimulation.Journal: Scientific reportsIn common: 7 references
- [8] doi:10.1371/journal.pone.0310917 [code]
- Vibrotactile auricular vagus nerve stimulation alters limbic system connectivity in humans: A pilot study.Journal: PloS oneIn common: Parallel Computing Toolbox, 6 references
- [9] doi:10.1007/s12021-021-09556-1 [code]
- Stable Deep Neural Network Architectures for Mitochondria Segmentation on Electron Microscopy Volumes.Journal: NeuroinformaticsIn common: PyWavelets, Numba, OpenCV, 7 other tools
- [10] doi:10.1016/j.crmeth.2024.100964 [code]
- Unifying community whole-brain imaging datasets enables robust neuron identification and reveals determinants of neuron position in C. elegans.Journal: Cell reports methodsIn common: PyWavelets, Parallel Computing Toolbox, OpenCV, 7 other tools
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, 83 scripts, 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:20b533d63364fb8e…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1038/s41467-026-72214-0)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-72214-0.svg
:target: https://openscicode.org/badge/doi/10.1038/s41467-026-72214-0
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-72214-0"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-72214-0.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
