OSCR

Multidimensional dynamic characterization and decoding of finger movements using magnetoencephalography.

Code ↔ Paper

5 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 5 matches · 1 of them tie a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
  1. [1] § Methods › Data processing › MEG and MRI data pre-processing ↔ Showresults/Figure4_MVPA_TimeCourse_Amap_Results.m, lines 6 to 24 · score 0.87 · 30–60 Hz, 0.5–90 Hz, 0.5–4 Hz, 13–30 Hz, 8–13 Hz, 60–90 Hz · Report a mismatch
  2. [2] § Methods › Data processing › MEG and MRI data pre-processing ↔ Showresults/SFigure4_Accuracy_PCA_AI_TFR_Results.m, lines 6 to 32 · score 0.87 · 30–60 Hz, 0.5–90 Hz, 0.5–4 Hz, 13–30 Hz, 8–13 Hz, 60–90 Hz · Report a mismatch
  3. [3] § Methods › Data acquisition ↔ func_wxyz/ft_headmovement_wxyz.m, lines 1 to 134 · score 0.75 · head position, MEG sensor, head movements, nasion, CTF, coils · Report a mismatch
  4. [4] § Methods › Data processing › EMG data processing ↔ func_wxyz/wxyz_emgdetect.m, the whole file · a weak match · score 0.68 · 20–450 Hz, band pass, rectified, threshold, raw, EMG · Report a mismatch
  5. [5] § Methods › Data processing › MEG and MRI data pre-processing ↔ func_wxyz/ft_headmovement_wxyz.m, lines 1 to 134 · score 0.61 · Head position, MEG sensor, coils, segmented, epochs, movement · Report a mismatch

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 · 418 lines · 16 KB · no license · 2 matches

  1. function [varargout] = ft_headmovement_wxyz(cfg,HLCdata)
  2. % Update: wxyz ROW 136
  3. % FT_HEADMOVEMENT outputs a raw data structure, or cell-array of data structures
  4. % reflecting the variability in the subject's head poisition relative to the
  5. % MEG sensors, based on continuous head position information. Current support is
  6. % only for CTF-data. The output timeseries contain the raw HLC data, and a
  7. % parametrization of the head movement in terms of translation and
  8. % rotations in 3D space. The grad structure(s) have head position information
  9. % incorporated in the coils' position/orientation and/or in the tra
  10. % matrix, depending on the method used.
  11. %
  12. % Use as
  13. % data = ft_headmovement(cfg)
  14. %
  15. % where the configuration should contain
  16. % cfg.dataset = string with the filename
  17. % cfg.method = string, 'updatesens' (default), 'cluster', 'avgoverrpt',
  18. % 'pertrial_cluster', 'pertrial' (default = 'updatesens')
  19. %
  20. % optional arguments are
  21. % cfg.trl = empty (default), or Nx3 matrix with the trial
  22. % definition (see FT_DEFINETRIAL). When specified as empty,
  23. % the whole recording is used.
  24. % cfg.numclusters = number of segments with constant headposition in
  25. % which to split the data (default = 10). This argument
  26. % is only used for the methods that use clustering ('updatesens',
  27. % 'cluster', 'pertrial_cluster').
  28. %
  29. % If cfg.method = 'updatesens', the grad in the single output structure has
  30. % a specification of the coils expanded as per the centroids of the position
  31. % clusters (obtained by kmeans clustering of the HLC time series). The balancing matrix
  32. % is a weighted concatenation of the original tra-matrix. This method requires
  33. % cfg.numclusters to be specified
  34. %
  35. % If cfg.method = 'avgoverrpt', the grad in the single output structure has
  36. % a specification of the coils according to the average head position
  37. % across the specified samples.
  38. %
  39. % If cfg.method = 'cluster', the cell-array of output structures represent
  40. % the epochs in which the head was considered to be positioned close to the
  41. % corresponding kmeans-cluster's centroid. The corresponding grad-structure
  42. % is specified according to this cluster's centroid. This method requires
  43. % cfg.numclusters to be specified.
  44. %
  45. % If cfg.method = 'pertrial', the cell-array of output structures contains
  46. % single trials, each trial with a trial-specific grad structure. Note that
  47. % this is extremely memory inefficient with large numbers of trials, and
  48. % probably an overkill.
  49. %
  50. % If cfg.method = 'pertrial_clusters', the cell-array of output structures
  51. % contains sets of trials where the trial-specific head position was
  52. % considered to be positioned close to the corresponding kmeans-cluster's
  53. % centroid. The corresponding grad-structure is specified accordin to the
  54. % cluster's centroid. This method requires cfg.numclusters to be specified.
  55. %
  56. % The updatesens method and related methods are described by Stolk et al., Online and
  57. % offline tools for head movement compensation in MEG. NeuroImage, 2012.
  58. %
  59. % See also FT_REGRESSCONFOUND, FT_REALTIME_HEADLOCALIZER
  60. % Copyright (C) 2008-2018, Jan-Mathijs Schoffelen, Robert Oostenveld
  61. %
  62. % This file is part of FieldTrip, see http://www.fieldtriptoolbox.org
  63. % for the documentation and details.
  64. %
  65. % FieldTrip is free software: you can redistribute it and/or modify
  66. % it under the terms of the GNU General Public License as published by
  67. % the Free Software Foundation, either version 3 of the License, or
  68. % (at your option) any later version.
  69. %
  70. % FieldTrip is distributed in the hope that it will be useful,
  71. % but WITHOUT ANY WARRANTY; without even the implied warranty of
  72. % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  73. % GNU General Public License for more details.
  74. %
  75. % You should have received a copy of the GNU General Public License
  76. % along with FieldTrip. If not, see <http://www.gnu.org/licenses/>.
  77. %
  78. % $Id$
  79. % these are used by the ft_preamble/ft_postamble function and scripts
  80. ft_revision = '$Id$';
  81. ft_nargin = nargin;
  82. ft_nargout = nargout;
  83. % do the general setup of the function
  84. ft_defaults
  85. ft_preamble init
  86. ft_preamble debug
  87. ft_preamble provenance
  88. % the ft_abort variable is set to true or false in ft_preamble_init
  89. if ft_abort
  90. return
  91. end
  92. % check if the input cfg is valid for this function
  93. % FIXME: consider allowing a data structure as input.
  94. cfg = ft_checkconfig(cfg, 'dataset2files', 'yes');
  95. % set the defaults
  96. cfg.method = ft_getopt(cfg, 'method', 'updatesens'); % 'pertrial', 'pertrial_cluster', 'avgoverrpt', 'cluster'
  97. cfg.numclusters = ft_getopt(cfg, 'numclusters', 10);
  98. cfg.feedback = ft_getopt(cfg, 'feedback', 'yes');
  99. if isequal(cfg.method,'updatesens') || isequal(cfg.method, 'pertrial_cluster') || isequal(cfg.method, 'cluster')
  100. dokmeans = true;
  101. else
  102. dokmeans = false;
  103. end
  104. % read the header information and check whether it's a CTF dataset with HLC information
  105. hdr = ft_read_header(cfg.headerfile);
  106. assert(startsWith(ft_senstype(hdr), 'ctf'), 'currently only CTF MEG data is supported');
  107. assert(numel(intersect(hdr.label, {'HLC0011' 'HLC0012' 'HLC0013' 'HLC0021' 'HLC0022' 'HLC0023' 'HLC0031' 'HLC0032' 'HLC0033'}))==9, 'the data does not contain the expected head localizer channels');
  108. grad_head = ft_datatype_sens(ctf2grad(hdr.orig, 0));
  109. grad_dewar = ft_datatype_sens(ctf2grad(hdr.orig, 1));
  110. grad = grad_dewar; % we work with dewar coordinates, ...
  111. grad.chanpos = grad_head.chanpos;
  112. % read the HLC-channels
  113. % HLC0011 HLC0012 HLC0013 x, y, z coordinates of nasion-coil in m.
  114. % HLC0021 HLC0022 HLC0023 x, y, z coordinates of lpa-coil in m.
  115. % HLC0031 HLC0032 HLC0033 x, y, z coordinates of rpa-coil in m.
  116. % raw script read HLC-channels
  117. % tmpcfg = keepfields(cfg, {'datafile' 'trl'});
  118. % tmpcfg.channel = {'HLC0011' 'HLC0012' 'HLC0013' 'HLC0021' 'HLC0022' 'HLC0023' 'HLC0031' 'HLC0032' 'HLC0033'};
  119. % tmpcfg.continuous = 'yes';
  120. % data = ft_preprocessing(tmpcfg);
  121. %% wxyz - data can be passed by the user, but need cfg.dataset to read CTF.hdr file
  122. data = HLCdata;
  123. if ~isfield(cfg, 'trl') || isempty(cfg.trl)
  124. cfg.trl = [1 hdr.nTrials.*hdr.nSamples 0];
  125. end
  126. %%
  127. data = removefields(data, 'elec'); % this slows down a great deal
  128. % rendering the persistent variable trick useless. We don't need the elec anyway
  129. wdat = cellfun('size', data.time, 2); % weights for weighted average
  130. trial_index = cell(1,numel(data.trial));
  131. for k = 1:numel(data.trial)
  132. % it sometimes happens that data are numerically 0, which causes problems downstream, replace with nans
  133. data.trial{k}(:,sum(data.trial{k}==0)==9) = nan;
  134. % create a bookkeeping cell-array, indexing the trial-indx
  135. trial_index{k} = k.*ones(1,numel(data.time{k}));
  136. end
  137. % average across time if needed
  138. if isequal(cfg.method, 'pertrial') || isequal(cfg.method, 'avgoverrpt') || isequal(cfg.method, 'pertrial_cluster')
  139. tmpcfg = [];
  140. tmpcfg.avgovertime = 'yes';
  141. tmpcfg.nanmean = 'yes';
  142. data_timeavg = ft_selectdata(tmpcfg, data);
  143. % concatenate across trials and scale the units
  144. dat = cat(2, data_timeavg.trial{:});
  145. else
  146. % concatenate across trials and scale the units
  147. dat = cat(2, data.trial{:});
  148. end
  149. % scale in units of the gradiometer definition, which is probably cm
  150. dat = dat * ft_scalingfactor('m', grad.unit);
  151. if isequal(cfg.method, 'pertrial_cluster')
  152. trl_idx = 1:numel(data.trial);
  153. else
  154. trl_idx = cat(2, trial_index{:});
  155. end
  156. % average across trials if needed
  157. if isequal(cfg.method, 'avgoverrpt')
  158. dat = sum(dat*diag(wdat), 2)./sum(wdat);
  159. end
  160. % remove duplicates if clustering is to be performed
  161. if dokmeans && ~isequal(cfg.method, 'pertrial_cluster')
  162. [tmpdata, dum, ic] = unique(dat', 'rows');
  163. dat = tmpdata';
  164. % count how often each position occurs
  165. wdat = hist(ic, unique(ic));
  166. end
  167. % perform the clustering if needed
  168. if dokmeans
  169. % compute the cluster means
  170. [bin, dat] = kmeans(dat', cfg.numclusters, 'EmptyAction', 'drop');
  171. % create a cell-array 1xnrpt with time specific indices of cluster id
  172. cluster_id = cell(1,numel(data.trial));
  173. for k = 1:numel(data.trial)
  174. cluster_id{k} = nan+zeros(1,numel(data.time{k}));
  175. if ~isequal(cfg.method, 'pertrial_cluster')
  176. for m = 1:size(dat,1)
  177. tmpdat = ic(trl_idx==k);
  178. cluster_id{k}(ismember(tmpdat, find(bin==m))) = m;
  179. end
  180. else
  181. cluster_id{k}(:) = bin(k);
  182. end
  183. end
  184. else
  185. bin = 1:size(dat,2);
  186. dat = dat';
  187. end
  188. % find the three channels for each head localizer coil
  189. selnas = match_str(data.label,{'HLC0011';'HLC0012';'HLC0013'});
  190. sellpa = match_str(data.label,{'HLC0021';'HLC0022';'HLC0023'});
  191. selrpa = match_str(data.label,{'HLC0031';'HLC0032';'HLC0033'});
  192. ubin = unique(bin(isfinite(bin)));
  193. nas = zeros(numel(ubin),3);
  194. lpa = zeros(numel(ubin),3);
  195. rpa = zeros(numel(ubin),3);
  196. numperbin = zeros(numel(ubin),1);
  197. for k = 1:length(ubin)
  198. nas(k, :) = dat(k, selnas);
  199. lpa(k, :) = dat(k, sellpa);
  200. rpa(k, :) = dat(k, selrpa);
  201. numperbin(k) = sum(wdat(bin==ubin(k)));
  202. end
  203. hc = read_ctf_hc([cfg.datafile(1:end-4),'hc']);
  204. if istrue(cfg.feedback)
  205. % plot some stuff
  206. figure; hold on;
  207. title(sprintf('%s coordinates (%s)', grad_dewar.coordsys, grad_dewar.unit));
  208. ft_plot_axes(grad_dewar);
  209. ft_plot_sens(grad_dewar);
  210. fiducials = [nas;lpa;rpa];
  211. plot3(fiducials(:,1), fiducials(:,2), fiducials(:,3), 'b.');
  212. plot3(hc.dewar.nas(1), hc.dewar.nas(2), hc.dewar.nas(3), 'ro');
  213. plot3(hc.dewar.lpa(1), hc.dewar.lpa(2), hc.dewar.lpa(3), 'ro');
  214. plot3(hc.dewar.rpa(1), hc.dewar.rpa(2), hc.dewar.rpa(3), 'ro');
  215. axis vis3d; axis off
  216. end
  217. % compute transformation matrix from dewar to head coordinates
  218. dewar2head = zeros(4, 4, size(nas,1));
  219. for k = 1:size(dewar2head, 3)
  220. dewar2head(:,:,k) = ft_headcoordinates(nas(k,:), lpa(k,:), rpa(k,:), 'ctf');
  221. end
  222. if isequal(cfg.method, 'updatesens')
  223. npos = size(dewar2head, 3);
  224. ncoils = size(grad.coilpos, 1);
  225. gradnew = grad;
  226. gradnew.coilpos = zeros(size(grad.coilpos,1)*npos, size(grad.coilpos,2));
  227. gradnew.coilori = zeros(size(grad.coilpos,1)*npos, size(grad.coilpos,2));
  228. gradnew.tra = repmat(grad.tra, [1 npos]);
  229. for m = 1:npos
  230. tmptransform = dewar2head(:,:,m);
  231. gradnew.coilpos((m-1)*ncoils+1:(m*ncoils), :) = ft_warp_apply(tmptransform, grad.coilpos); % back to head coordinates
  232. tmptransform(1:3, 4) = 0; % keep only the rotation
  233. gradnew.coilori((m-1)*ncoils+1:(m*ncoils), :) = ft_warp_apply(tmptransform, grad.coilori);
  234. gradnew.tra(:, (m-1)*ncoils+1:(m*ncoils)) = grad.tra.*(numperbin(m)./sum(numperbin));
  235. end
  236. grad = gradnew;
  237. else
  238. npos = size(dewar2head, 3);
  239. for k = 1:npos
  240. grad(k) = ft_transform_geometry(dewar2head(:,:,k), grad_dewar);
  241. end
  242. end
  243. % prepare the output data
  244. switch cfg.method
  245. case 'cluster'
  246. varargout = cell(1,numel(grad));
  247. tmpdata = data;
  248. tmpdata.trial = cluster_id;
  249. tmpdata.label = {'cluster_id'};
  250. data = ft_appenddata([],data,tmpdata);
  251. for k = 1:numel(grad)
  252. tmpcfg = [];
  253. tmpcfg.artfctdef.bpfilter = 'no';
  254. tmpcfg.artfctdef.threshold.channel = {'cluster_id'};
  255. tmpcfg.artfctdef.threshold.min = 0.9+k-1;
  256. tmpcfg.artfctdef.threshold.max = 1.1+k-1;
  257. tmpcfg.artfctdef.threshold.bpfilter = 'no';
  258. tmpcfg = ft_artifact_threshold(tmpcfg, tmpdata);
  259. artifacts = tmpcfg.artfctdef.threshold.artifact;
  260. tmpcfg = [];
  261. tmpcfg.artfctdef.reject = 'partial';
  262. tmpcfg.artfctdef.threshold.artifact = artifacts;
  263. tmpdata_clus = ft_rejectartifact(tmpcfg, data);
  264. tmpdata_clus.grad = grad(k);
  265. varargout{k} = tmpdata_clus;
  266. end
  267. case {'avgoverrpt' 'updatesens'}
  268. data.grad = grad;
  269. varargout{1} = data;
  270. case 'pertrial'
  271. ft_error('not yet implemented');
  272. case 'pertrial_cluster'
  273. varargout = cell(1,numel(grad));
  274. tmpdata = data;
  275. tmpdata.trial = cluster_id;
  276. tmpdata.label = {'cluster_id'};
  277. data = ft_appenddata([],data,tmpdata);
  278. for k = 1:numel(grad)
  279. tmpcfg = [];
  280. tmpcfg.trials = find(bin==k);
  281. tmpdata_clus = ft_selectdata(tmpcfg, data);
  282. %tmpcfg.previous = tmpdata_clus.cfg;
  283. %tmpdata_clus.cfg = tmpcfg;
  284. tmpdata_clus.grad = grad(k);
  285. varargout{k} = tmpdata_clus;
  286. end
  287. end % switch method
  288. for k = 1:numel(varargout)
  289. for m = 1:numel(varargout{k}.trial)
  290. nas = varargout{k}.trial{m}(selnas,:);
  291. lpa = varargout{k}.trial{m}(sellpa,:);
  292. rpa = varargout{k}.trial{m}(selrpa,:);
  293. cc = circumcenter(nas, lpa, rpa);
  294. varargout{k}.trial{m} = cat(1, varargout{k}.trial{m}, cc);
  295. end
  296. varargout{k}.label = cat(1, varargout{k}.label, {'cc_xpos';'cc_ypos';'cc_zpos';'cc_xrot';'cc_yrot';'cc_zrot'});
  297. end
  298. % do the general cleanup and bookkeeping at the end of the function
  299. ft_postamble debug
  300. ft_postamble provenance
  301. ft_postamble previous varargout
  302. ft_postamble history varargout
  303. ft_postamble savevar varargout
  304. function [cc] = circumcenter(coil1, coil2, coil3)
  305. % CIRCUMCENTER determines the position and orientation of the circumcenter
  306. % of the three fiducial markers (MEG headposition coils).
  307. %
  308. % Input: X,y,z-coordinates of the 3 coils [3 X N],[3 X N],[3 X N] where N
  309. % is timesamples/trials.
  310. %
  311. % Output: X,y,z-coordinates of the circumcenter [1-3 X N], and the
  312. % orientations to the x,y,z-axes [4-6 X N].
  313. %
  314. % A. Stolk, 2012
  315. % number of timesamples/trials
  316. N = size(coil1,2);
  317. % x-, y-, and z-coordinates of the circumcenter: use coordinates relative to point 'a' of the triangle
  318. xba = coil2(1,:) - coil1(1,:);
  319. yba = coil2(2,:) - coil1(2,:);
  320. zba = coil2(3,:) - coil1(3,:);
  321. xca = coil3(1,:) - coil1(1,:);
  322. yca = coil3(2,:) - coil1(2,:);
  323. zca = coil3(3,:) - coil1(3,:);
  324. % squares of lengths of the edges incident to 'a'
  325. balength = xba .* xba + yba .* yba + zba .* zba;
  326. calength = xca .* xca + yca .* yca + zca .* zca;
  327. % cross product of these edges
  328. xcrossbc = yba .* zca - yca .* zba;
  329. ycrossbc = zba .* xca - zca .* xba;
  330. zcrossbc = xba .* yca - xca .* yba;
  331. % calculate the denominator of the formulae
  332. denominator = 0.5 ./ (xcrossbc .* xcrossbc + ycrossbc .* ycrossbc + zcrossbc .* zcrossbc);
  333. % calculate offset (from 'a') of circumcenter
  334. xcirca = ((balength .* yca - calength .* yba) .* zcrossbc - (balength .* zca - calength .* zba) .* ycrossbc) .* denominator;
  335. ycirca = ((balength .* zca - calength .* zba) .* xcrossbc - (balength .* xca - calength .* xba) .* zcrossbc) .* denominator;
  336. zcirca = ((balength .* xca - calength .* xba) .* ycrossbc - (balength .* yca - calength .* yba) .* xcrossbc) .* denominator;
  337. % add the offset back to get the position of the origin over time.
  338. cc(1,:) = xcirca + coil1(1,:);
  339. cc(2,:) = ycirca + coil1(2,:);
  340. cc(3,:) = zcirca + coil1(3,:);
  341. % orientation of the circumcenter with respect to the x-, y-, and z-axis coordinates
  342. v = [cc(1,:)', cc(2,:)', cc(3,:)' ];
  343. vx = [zeros(1,N)', cc(2,:)', cc(3,:)' ]; % on the x-axis
  344. vy = [cc(1,:)', zeros(1,N)', cc(3,:)' ]; % on the y-axis
  345. vz = [cc(1,:)', cc(2,:)', zeros(1,N)']; % on the z-axis
  346. thetax = zeros(1,N);
  347. thetay = zeros(1,N);
  348. thetaz = zeros(1,N);
  349. for j = 1:N
  350. % find the angles of two vectors opposing the axes
  351. thetax(j) = acos(dot(v(j,:),vx(j,:))/(norm(v(j,:))*norm(vx(j,:))));
  352. thetay(j) = acos(dot(v(j,:),vy(j,:))/(norm(v(j,:))*norm(vy(j,:))));
  353. thetaz(j) = acos(dot(v(j,:),vz(j,:))/(norm(v(j,:))*norm(vz(j,:))));
  354. % convert to degrees
  355. cc(4,j) = (thetax(j) * (180/pi));
  356. cc(5,j) = (thetay(j) * (180/pi));
  357. cc(6,j) = (thetaz(j) * (180/pi));
  358. end

ft_headmovement_wxyz.m at commit 41f58cb, no license · at the source

Overview

  1. State Key Laboratory of Cognitive Science and Mental Health, Institute of Biophysics, Chinese Academy of Sciences, Beijing, China
  2. University of Chinese Academy of Sciences, Beijing, China
  3. State Key Laboratory of Mechanical System and Vibration, School of Mechanical Engineering, Shanghai Jiao Tong University, Shanghai, China
Journal: Imaging neuroscience (Cambridge, Mass.), volume 4, article IMAG.a.1182
Dates: received 30 May 2025; accepted 2 March 2026; published online 30 March 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1162/imag.a.1182 · PMID 41924028 · PMCID PMC13037661 · OpenAlex W7134854990
Open access: diamond, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: MEG (modality), systems (subfield)
Methods: Spectral & time-frequency, Connectivity, Statistics, Smoothing, state filtering, decompositions, Machine learning, Preprocessing, fMRI & imaging, Physiology & signal measures
Keywords: magnetoencephalography, finger movement, source level, motor execution
Topic: EEG and Brain-Computer Interfaces (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 71 references in the paper

Abstract

The similarity of neural activity in finger movements poses challenges for accurate decoding using many non-invasive imaging techniques. Magnetoencephalography (MEG), with its relatively high spatial resolution, offers the potential to capture the underlying dynamic neural differences. In this study, we recorded MEG signals during single extension movements of the right-hand fingers, examining the time-varying cortical activation patterns across different frequency bands and their contribution to decoding finger movements. Our results demonstrate that signals below 8 Hz not only enable effective movement classification but also reveal millisecond-scale neural activation patterns in the sensorimotor cortex. Furthermore, incorporating the spatiotemporal dynamics of neural activity may enhance decoding performance for fine motor control. These findings highlight the value of integrating temporal, frequency, and spatial dimensions in studying motor neural activity and underscore MEG’s potential for broader applications in movement-related neurophysiology and brain–computer interface research.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above, with 5 matches between paragraphs and lines of code.

Yzheng9725/MEG-study-fingermovement

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 41f58cb75aa0e7cb80caee7e305d3c09176392eb, 22 January 2026
Languages: MATLAB (49)
Size: 77 files, 49 scripts
Software Heritage: not archived
Found in: “Data and Code Availability”
Holds: README, tests, documentation
Not found: license file, CITATION.cff, environment file, continuous integration
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
50 files

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;
  • 49 scripts, each with its path and the digest of its content;
  • 5 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

Data and Code Availability

The group-level data files to generate the figures are available at https://doi.org/10.6084/m9.figshare.28623506. The raw MEG and MRI data cannot be available according to the ethical permission. The custom code used for the analysis pipeline and results visualization is available at https://github.com/Yzheng9725/MEG-study-fingermovement.

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, 30 September 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 6 authors, 4 keywords, 4 funders, 70 references.

Cite

This paper

Zheng, Y., Wang, X., Zheng, L., Zhang, H., Wang, F., & Zhuo, Y. (2026). Multidimensional dynamic characterization and decoding of finger movements using magnetoencephalography. Imaging neuroscience (Cambridge, Mass.), 4, IMAG.a.1182. https://doi.org/10.1162/imag.a.1182

BibTeX

@article{zheng2026multidimensional,
author = {Zheng, Yu and Wang, Xu and Zheng, Li and Zhang, Hongtao and Wang, Fan and Zhuo, Yan},
title = {{Multidimensional dynamic characterization and decoding of finger movements using magnetoencephalography}},
journal = {Imaging neuroscience (Cambridge, Mass.)},
year = {2026},
month = mar,
volume = {4},
pages = {IMAG.a.1182},
publisher = {MIT Press},
issn = {2837-6056},
doi = {10.1162/imag.a.1182},
url = {https://doi.org/10.1162/imag.a.1182},
pmid = {41924028},
pmcid = {PMC13037661}
}

RIS

TY - JOUR
AU - Zheng, Yu
AU - Wang, Xu
AU - Zheng, Li
AU - Zhang, Hongtao
AU - Wang, Fan
AU - Zhuo, Yan
TI - Multidimensional dynamic characterization and decoding of finger movements using magnetoencephalography
T2 - Imaging neuroscience (Cambridge, Mass.)
J2 - Imaging Neurosci (Camb)
PY - 2026
DA - 2026/03/30
VL - 4
SP - IMAG.a.1182
SN - 2837-6056
PB - MIT Press
DO - 10.1162/imag.a.1182
UR - https://doi.org/10.1162/imag.a.1182
LA - en
ER -

CSL-JSON

{
"id": "10.1162/imag.a.1182",
"type": "article-journal",
"title": "Multidimensional dynamic characterization and decoding of finger movements using magnetoencephalography",
"container-title": "Imaging neuroscience (Cambridge, Mass.)",
"author": [
{
"family": "Zheng",
"given": "Yu"
},
{
"family": "Wang",
"given": "Xu"
},
{
"family": "Zheng",
"given": "Li"
},
{
"family": "Zhang",
"given": "Hongtao"
},
{
"family": "Wang",
"given": "Fan"
},
{
"family": "Zhuo",
"given": "Yan"
}
],
"container-title-short": "Imaging Neurosci (Camb)",
"volume": "4",
"page": "IMAG.a.1182",
"DOI": "10.1162/imag.a.1182",
"PMID": "41924028",
"PMCID": "PMC13037661",
"ISSN": "2837-6056",
"publisher": "MIT Press",
"URL": "https://doi.org/10.1162/imag.a.1182",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
30
]
]
}
}

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.7554/elife.94561 [code]
Tracking the neurodevelopmental trajectory of beta band oscillations with optically pumped magnetometer-based magnetoencephalography.
Journal: eLife
In common: Violinplot-Matlab, GIfTI library for MATLAB, FieldTrip, 2 other tools, MEG, 5 references
[2] doi:10.3389/fnins.2025.1623380 [code]
Convolutional neural networks decode finger movements in motor sequence learning from MEG data.
Journal: Frontiers in neuroscience
In common: MEG, 7 references
[3] doi:10.1038/s41467-025-61064-x [code]
EEG-based brain-computer interface enables real-time robotic hand control at individual finger level.
Journal: Nature communications
In common: systems, 7 references
[4] doi:10.1016/j.nbd.2025.106858 [code]
Essential tremor disrupts rhythmic brain networks during naturalistic movement.
Journal: Neurobiology of disease
In common: boundedline, Violinplot-Matlab, FieldTrip, 2 other tools, MEG, systems, 2 references
[5] doi:10.1038/s41586-025-10059-1 [code]
Parkinson's disease as a somato-cognitive action network disorder.
Journal: Nature
In common: GIfTI library for MATLAB, FieldTrip, Signal Processing Toolbox, 1 other tool, 4 references
[6] doi:10.1016/j.celrep.2026.117033 [code]
Human superior colliculus pathways represent the form and motion of looming objects.
Journal: Cell reports
In common: boundedline, Violinplot-Matlab, GIfTI library for MATLAB, 3 other tools, 1 reference
[7] doi:10.1016/j.nicl.2025.103758 [code]
White matter microstructural integrity mediates associations between prenatal endocrine-disrupting chemicals exposure and intelligence in adolescents.
Journal: NeuroImage. Clinical
In common: boundedline, Violinplot-Matlab, GIfTI library for MATLAB, 3 other tools, 1 reference
[8] doi:10.1002/hbm.70577 [code]
Disgust Propensity, Not Disgust Sensitivity, Shapes the Reactivity of a Subjective Disgust Circuit in Humans.
Journal: Human brain mapping
In common: boundedline, Violinplot-Matlab, GIfTI library for MATLAB, 3 other tools, systems
[9] doi:10.1038/s41467-023-39142-9 [code]
A dorsomedial prefrontal cortex-based dynamic functional connectivity model of rumination.
Journal: Nature communications
In common: boundedline, Violinplot-Matlab, GIfTI library for MATLAB, 3 other tools, systems
[10] doi:10.1038/s41586-023-05964-2 [code]
A somato-cognitive action network alternates with effector regions in motor cortex.
Journal: Nature
In common: FieldTrip, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, systems, 4 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.

Add the badge to the code's README

OSCR: the badge of this paper

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 -->
[![OSCR](https://openscicode.org/badge/doi/10.1162/imag.a.1182.svg)](https://openscicode.org/badge/doi/10.1162/imag.a.1182)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1162/imag.a.1182.svg
   :target: https://openscicode.org/badge/doi/10.1162/imag.a.1182
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1162/imag.a.1182"><img src="https://openscicode.org/badge/doi/10.1162/imag.a.1182.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.