OSCR

Neural signatures of human psychological resilience driven by acute stress.

Code ↔ Paper

8 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 8 matches
  1. [1] § Materials and Methods › Statistical Analyses. › fMRI. › Resting-state fMRI. ↔ fMRI/FC ROI-to-ROI analysis/CONN_script_Prep_1stLevel_MRI14.m, lines 143 to 213 · score 0.90 · subject motion parameters, band pass filtering, outlier scans, pitch, roll, yaw · Report a mismatch
  2. [2] § Results › Spatial Features Support Human-Specific Resilience. ↔ fMRI/FC ROI-to-ROI analysis/CONN_script_Prep_1stLevel_MRI14.m, lines 657 to 777 · score 0.89 · inferior frontal gyrus, middle frontal gyrus, cingulate, precuneus, salience, superior · Report a mismatch
  3. [3] § Materials and Methods › EEG. › Resting state. ↔ EEG/EEG_Ana_Prep_1stLevel_06.m, lines 141 to 157 · score 0.85 · abnormal spectra, 0–40 Hz, abnormal trends, abnormal distribution, improbable, epoch · Report a mismatch
  4. [4] § Materials and Methods › Statistical Tests. › Machine learning. ↔ Elastic-net/Elastic-net-52Factors_13x4.R, lines 1 to 63 · score 0.73 · explanatory variables, 0–1.5, optimized, lambda, Alpha · Report a mismatch
  5. [5] § Materials and Methods › Statistical Analyses. › fMRI. › Resting-state fMRI. ↔ fMRI/FC ROI-to-ROI analysis/CONN_script_Prep_1stLevel_MRI14.m, lines 514 to 597 · score 0.66 · kernel, space, ART, scrubbing, CSF, CONN · Report a mismatch
  6. [6] § Materials and Methods › Statistical Analyses. › fMRI. › fALFF. ↔ fMRI/FC ROI-to-ROI analysis/CONN_script_Prep_1stLevel_MRI14.m, lines 657 to 777 · score 0.62 · frequency band, accumbens, anterior, dorsal, hippocampus, amygdala · Report a mismatch
  7. [7] § Materials and Methods › Statistical Analyses. › fMRI. › Resting-state fMRI. ↔ fMRI/FC ROI-to-ROI analysis/CONN_script_Prep_1stLevel_MRI14.m, lines 606 to 655 · score 0.57 · 0.008–0.09 Hz, 0.008 Hz, linear, filter, temporal · Report a mismatch
  8. [8] § Materials and Methods › EEG. › EEG source localization analysis. ↔ fMRI/FC ROI-to-ROI analysis/CONN_script_Prep_1stLevel_MRI14.m, lines 514 to 597 · score 0.56 · space, surface, template, seeds, segmented, ROI · 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 · 781 lines · 51 KB · no license · 6 matches

  1. %% 0 Check file directories %%
  2. for sbj = 1:SBJ %
  3. cd(PATH1(sbj,:));
  4. CurrentD = pwd;
  5. D1_full = '';
  6. D2_full = '';
  7. D3_full = '';
  8. D4_full = '';
  9. D5_full = '';
  10. %EPI1
  11. cd([PATH1(sbj,:),'/',FOLDERNAME1(sbj,:),'/EPI1']);
  12. D1 = dir('Sub*_4d.nii');
  13. D1_path(sbj,:) = pwd;
  14. D1_size = length(D1);
  15. fprintf('%s EPI1 has %d *_4d.nii files\n',FOLDERNAME1(sbj,:),D1_size);
  16. for epi1 = 1:D1_size
  17. D1_full(epi1,:) = [D1_path(sbj,:),'/',D1(epi1).name];
  18. end
  19. %EPI2
  20. cd([PATH1(sbj,:),'/',FOLDERNAME1(sbj,:),'/EPI2']);
  21. D2 = dir('Sub*_4d.nii');
  22. D2_path(sbj,:) = pwd;
  23. D2_size = length(D2);
  24. fprintf('%s EPI2 has %d *_4d.nii files\n',FOLDERNAME1(sbj,:),D2_size);
  25. for epi2 = 1:D2_size
  26. D2_full(epi2,:) = [D2_path(sbj,:),'/',D2(epi2).name];
  27. end
  28. %EPI3
  29. cd([PATH1(sbj,:),'/',FOLDERNAME1(sbj,:),'/EPI3']);
  30. D3 = dir('Sub*_4d.nii');
  31. D3_path(sbj,:) = pwd;
  32. D3_size = length(D3);
  33. fprintf('%s EPI3 has %d *_4d.nii files\n',FOLDERNAME1(sbj,:),D3_size);
  34. for epi3 = 1:D3_size
  35. D3_full(epi3,:) = [D3_path(sbj,:),'/',D3(epi3).name];
  36. end
  37. %EPI4
  38. cd([PATH1(sbj,:),'/',FOLDERNAME2(sbj,:),'/EPI4']);
  39. D4 = dir('Sub*_4d.nii');
  40. D4_path(sbj,:) = pwd;
  41. D4_size = length(D4);
  42. fprintf('%s EPI4 has %d *_4d.nii files\n',FOLDERNAME2(sbj,:),D4_size);
  43. for epi4 = 1:D4_size
  44. D4_full(epi4,:) = [D4_path(sbj,:),'/',D4(epi4).name];
  45. end
  46. %EPI5
  47. cd([PATH1(sbj,:),'/',FOLDERNAME2(sbj,:),'/EPI5']);
  48. D5 = dir('Sub*_4d.nii');
  49. D5_path(sbj,:) = pwd;
  50. D5_size = length(D5);
  51. fprintf('%s EPI5 has %d *_4d.nii files\n',FOLDERNAME2(sbj,:),D5_size);
  52. for epi5 = 1:D5_size
  53. D5_full(epi5,:) = [D5_path(sbj,:),'/',D5(epi5).name];
  54. end
  55. %Str1 (EPI1~3))
  56. cd([PATH1(sbj,:),'/',FOLDERNAME1(sbj,:),'/Str1']);
  57. S1 = dir('s*.nii');
  58. S1_path(sbj,:) = pwd;
  59. S1_size = length(S1);
  60. fprintf('%s Str1 has %d s*.nii files\n',FOLDERNAME1(sbj,:),S1_size);
  61. for str1 = 1:S1_size
  62. S1_full(str1,:) = [S1_path(sbj,:),'/',S1(str1).name];
  63. end
  64. %Str2 (EPI4~5)
  65. cd([PATH1(sbj,:),'/',FOLDERNAME2(sbj,:),'/Str2']);
  66. S2 = dir('s*.nii');
  67. S2_path(sbj,:) = pwd;
  68. S2_size = length(S2);
  69. fprintf('%s Str2 has %d s*.nii files\n',FOLDERNAME2(sbj,:),S2_size);
  70. for str2 = 1:S2_size
  71. S2_full(str2,:) = [S2_path(sbj,:),'/',S2(str2).name];
  72. end
  73. % NAME4D(1,:,sbj) = [D1_path(sbj,:),'/',FOLDERNAME1(sbj,:),'_epi1_4d.nii'];
  74. % NAME4D(2,:,sbj) = [D2_path(sbj,:),'/',FOLDERNAME1(sbj,:),'_epi2_4d.nii'];
  75. % NAME4D(3,:,sbj) = [D3_path(sbj,:),'/',FOLDERNAME1(sbj,:),'_epi3_4d.nii'];
  76. NAME4D(1,:,sbj) = D1_full;
  77. NAME4D(2,:,sbj) = D2_full;
  78. NAME4D(3,:,sbj) = D3_full;
  79. NAME4D(4,:,sbj) = D4_full;
  80. NAME4D(5,:,sbj) = D5_full;
  81. NAMET1(1,:,sbj) = S1_full; %EPI1->Str1
  82. NAMET1(2,:,sbj) = S1_full; %EPI2->Str1
  83. NAMET1(3,:,sbj) = S1_full; %EPI3->Str1
  84. NAMET1(4,:,sbj) = S2_full; %EPI4->Str2
  85. NAMET1(5,:,sbj) = S2_full; %EPI5->Str2
  86. end
  87. cd(CurrentD);
  88. %% STEP1: PREPROCESSING %%
  89. PATH = '/data3/SRR/MRI12'; %for Alpha
  90. BATCH.filename = [PATH,'/',FILENAME]; %<required>
  91. BATCH.Setup.isnew = 1; %1/0: is this a new conn project
  92. BATCH.Setup.done = 1; %<required>1/0: 0 defines fields only; 1 runs SETUP processing steps
  93. BATCH.Setup.overwrite= 'Yes'; %<required>(for done=1) 1/0 overwrites target files if they exist
  94. %BATCH.Setup.parallel = 0;
  95. % %% Pararel process %%
  96. BATCH.parallel.N=SBJ; % One process per subject
  97. %
  98. %% 1 Basic %%
  99. BATCH.Setup.nsubjects= SBJ; %Number of subjects
  100. BATCH.Setup.RT = 2.0;%Repetition time (seconds)
  101. BATCH.Setup.acquisitiontype = 1; %1 is Continuous acquisition, 0 is Sparse acquisition of functional volumes
  102. %% 2&3 Original Functional and Structual data %%
  103. for sbj = 1:SBJ %1 to 18
  104. BATCH.Setup.structurals{sbj}{1} = cellstr(NAMET1(1,:,sbj));
  105. BATCH.Setup.structurals{sbj}{2} = cellstr(NAMET1(2,:,sbj));
  106. BATCH.Setup.structurals{sbj}{3} = cellstr(NAMET1(3,:,sbj));
  107. BATCH.Setup.structurals{sbj}{4} = cellstr(NAMET1(4,:,sbj));
  108. BATCH.Setup.structurals{sbj}{5} = cellstr(NAMET1(5,:,sbj));
  109. BATCH.Setup.functionals{sbj}{1} = cellstr(NAME4D(1,:,sbj));
  110. BATCH.Setup.functionals{sbj}{2} = cellstr(NAME4D(2,:,sbj));
  111. BATCH.Setup.functionals{sbj}{3} = cellstr(NAME4D(3,:,sbj));
  112. BATCH.Setup.functionals{sbj}{4} = cellstr(NAME4D(4,:,sbj));
  113. BATCH.Setup.functionals{sbj}{5} = cellstr(NAME4D(5,:,sbj));
  114. fprintf('Registored Str1 %s as structual data of EPI1 \n',NAMET1(1,:,sbj));
  115. fprintf('Registored Str1 %s as structual data of EPI2 \n',NAMET1(2,:,sbj));
  116. fprintf('Registored Str1 %s as structual data of EPI3 \n',NAMET1(3,:,sbj));
  117. fprintf('Registored Str2 %s as structual data of EPI4 \n',NAMET1(4,:,sbj));
  118. fprintf('Registored Str2 %s as structual data of EPI5 \n',NAMET1(5,:,sbj));
  119. fprintf('Registored EPI1 %s as functional data \n',NAME4D(1,:,sbj));
  120. fprintf('Registored EPI2 %s as functional data \n',NAME4D(2,:,sbj));
  121. fprintf('Registored EPI3 %s as functional data \n',NAME4D(3,:,sbj));
  122. fprintf('Registored EPI4 %s as functional data \n',NAME4D(4,:,sbj));
  123. fprintf('Registored EPI5 %s as functional data \n',NAME4D(5,:,sbj));
  124. end
  125. %% 4 Preprocessing %%
  126. BATCH.Setup.preprocessing.steps = 'default_mni'; %<required>Ddefault pipeline. Check help documents for more details
  127. BATCH.Setup.preprocessing.affreg= 'mni'; % :<required> (normalization) affine registration before normalization ['mni']
  128. %: (functional_art) ART thresholds for identifying outlier scans
  129. BATCH.Setup.preprocessing.art_thresholds(1)= 3; %art_thresholds(1): threshold value for global-signal (z-value; default 5)
  130. BATCH.Setup.preprocessing.art_thresholds(2)= 0.5; %art_thresholds(2): threshold value for subject-motion (mm; default .9)
  131. %note: the default art_thresholds(1:2) [5 .9] values correspond to the "intermediate" (97th percentile) settings
  132. % to use the "conservative" (95th percentile) settings use [3 .5]
  133. % to use the "liberal" (99th percentile) settings use [9 2] values instead
  134. %
  135. % additional options: art_thresholds(3): 1/0 global-signal threshold based on scan-to-scan changes
  136. % in global-BOLD measure (default 1)
  137. % art_thresholds(4): 1/0 subject-motion threshold based on scan-to-scan changes
  138. % in subject-motion measure (default 1)
  139. % art_thresholds(5): 1/0 subject-motion threhsold based on composite-movement
  140. % measure (default 1)
  141. % art_thresholds(6): 1/0 force interactive mode (ART gui) (default 0)
  142. % art_thresholds(7): [only when art_threshold(5)=0] subject-motion threshold
  143. % based on rotation measure
  144. % art_thresholds(8): N number of initial scans to be flagged for removal
  145. % (default 0)
  146. % note: when art_threshold(5)=0, art_threshold(2) defines the threshold based on the translation
  147. % measure, and art_threhsold(7) defines the threshold based on the rotation measure;
  148. % otherwise
  149. % art_threshold(2) defines the (single) threshold based on the composite-motion measure
  150. %
  151. % note: art needs subject-motion files to estimate possible outliers. If a 'realignment'
  152. % first-level covariate exists it will load the subject-motion parameters from that first-
  153. % level covariate; otherwise it will look for a rp_*.txt file (SPM format) in the same
  154. % folder as the functional data
  155. %
  156. % note: subject-motion files can be in any of the following formats: a) *.txt file (SPM
  157. % format; three translation parameters in mm followed by pitch/roll/yaw in radians);
  158. % b) *.par (FSL format; three Euler angles in radians followed by translation parameters
  159. % in mm); c) *.siemens.txt (Siemens MotionDetectionParameter.txt format); d) *.deg.txt (same
  160. % as SPM format but rotations in degrees instead of radians)
  161. %BATCH.Setup.preprocessing.boundingbox %: (normalization) target bounding box for resliced volumes (mm) [-90,-126,-72;90,90,108]
  162. %BATCH.Setup.preprocessing.bp_filter %: (functional_bandpass) Low- and High- frequency thresholds (in Hz)
  163. %BATCH.Setup.preprocessing.bp_keep0 %: (functional_bandpass) [1]
  164. % 0: removes average BOLD signal (freq=0Hz component)
  165. % 1: keeps average BOLD signal in output independent of band-pass filter values;
  166. %BATCH.Setup.preprocessing.coregtomean %: (functional_coregister/segment/normalize) [1]
  167. % 0: use first volume
  168. % 1: use mean volume (computed during realignment)
  169. % 2: use user-defined source volume (see Setup.coregsource_functionals field)
  170. %BATCH.Setup.preprocessing.diffusionsteps %: (surface_smooth) number of diffusion steps
  171. BATCH.Setup.preprocessing.fwhm = 8; %: (functional_smooth) Smoothing factor (mm) [8]
  172. %BATCH.Setup.preprocessing.interp = 4; %: (normalization) target voxel interpolation method [4]
  173. % 0:nearest neighbor
  174. % 1:trilinear
  175. % 2 or higher:n-order spline)
  176. %BATCH.Setup.preprocessing.label %: (functional_label) label of secondary dataset [datestr(now)]
  177. %BATCH.Setup.preprocessing.reg_names %: (functional_regression) list of first-level covariates to use as model regressors / design matrix
  178. % (valid entries are first-level covariate names or ROI names)
  179. %BATCH.Setup.preprocessing.reg_dimensions %: (functional_regression) list of maximum number of dimensions (one vlaue for each model regressor in reg_names)
  180. %BATCH.Setup.preprocessing.reg_deriv %: (functional_regression) list of 0/1/2 values (one value for each model regressorr in reg_names):
  181. %: add first- or second- order derivatives to each model regressor
  182. %BATCH.Setup.preprocessing.reg_detrend = 1; %: (functional_regression) 1: adds a linear/detrending term to model regressors [1]
  183. %BATCH.Setup.preprocessing.reg_skip %: (functional_regression) [0]
  184. % 1: does not create output functional files, only creates session-specific dp_*.txt files with covariate timeseries to be included later in an arbitrary first-level model
  185. %BATCH.Setup.preprocessing.removescans %: (functional_removescans) number of initial scans to remove
  186. %BATCH.Setup.preprocessing.reorient %: (functional/structural_manualorient) 3x3 or 4x4 transformation matrix or filename containing corresponding matrix
  187. %BATCH.Setup.preprocessing.respatialdef %: (functional/structural_manualspatialdef) nifti deformation file (e.g. y_*.nii or *seg_sn.mat files)
  188. %BATCH.Setup.preprocessing.rtm %: (functional_realign) 0: use first volume; 1: use mean volume [0]
  189. BATCH.Setup.preprocessing.sliceorder = 'descending'; %<required>[36:-1:1]
  190. %%%%%%%%%%%%%%%%%%%% CAUTION %%%%%%%%%%%%%%%%%%%%
  191. %In the case of Siemens interleave,
  192. %if Slice number has EVEN size (e.g.36,70),
  193. %Order is 2,4,6,8,10,…,34,36,1,3,5,7,10,….,35
  194. %if Slice number has ODD size (e.g.35,43),
  195. %Order is 1,3,5,7,9,…,33,35,2,4,6,8,10,….,32,34
  196. %%%%%%%%%%%%%%%%%%%% CAUTION %%%%%%%%%%%%%%%%%%%%
  197. %: (functional_slicetime) acquisition order (vector of indexes; 1=first slice in image; note: use cell array for subject-specific vectors)
  198. % alternatively sliceorder may also be defined as one of the following strings: 'ascending',
  199. % 'descending','interleaved (middle-top)','interleaved (bottom-up)','interleaved (top-down)',
  200. % 'interleaved (Siemens)','interleaved (Philips)','BIDS' (this option reads slice timing information from .json files)
  201. % alternatively sliceorder may also be defined as a vector containing the acquisition time in
  202. % milliseconds for each slice (e.g. for multi-band sequences)
  203. %BATCH.Setup.preprocessing.ta %: (functional_slicetime) acquisition time (TA) in seconds
  204. % (used to determine slice times when sliceorder is defined by a vector of slice indexes;
  205. % note: use vector for subject-specific values).
  206. % Defaults to (1-1/nslices)*TR where nslices is the number of slices
  207. %BATCH.Setup.preprocessing.template_structural %: (structural_normalize SPM8 only) anatomical template file for approximate coregistration
  208. %[spm/template/T1.nii]
  209. %BATCH.Setup.preprocessing.template_functional:%(functional_normalize SPM8 only) functional template file for normalization
  210. %[spm/template/EPI.nii]
  211. %BATCH.Setup.preprocessing.tpm_template %: (structural_segment, structural_segment&normalize in SPM8, and any segment/normalize option in SPM12) tissue probability map
  212. % [spm/tpm/TPM.nii]
  213. %BATCH.Setup.preprocessing.tpm_ngaus %: (structural_segment, structural_segment&normalize in SPM8&SPM12) number of gaussians for each tissue probability map
  214. %BATCH.Setup.preprocessing.vdm_et1 %: (functional_vdm_create) ET1 (Echo Time first echo in fieldmap sequence) (default [] : read from .json file / BIDS)
  215. %BATCH.Setup.preprocessing.vdm_et2 %: (functional_vdm_create) ET2 (Echo Time second echo in fieldmap sequence) (default [] : read from .json file / BIDS)
  216. %BATCH.Setup.preprocessing.vdm_ert %: (functional_vdm_create) ERT (Effective Readout Time in funcional data) (default [] : read from .json file / BIDS)
  217. %BATCH.Setup.preprocessing.vdm_blip %: (functional_vdm_create) k-space traversal blip direction (+1 or -1; default -1)
  218. %BATCH.Setup.preprocessing.vdm_type %: (functional_vdm_create only) type of fieldmap sequence files
  219. % []: automatically detect;
  220. % 1: magnitude+phasediff (or magnitude1+magnitude2+phasediff)
  221. % 2: real1+imag1+real2+imag2; 3: fieldmapHz)
  222. %BATCH.Setup.preprocessing.vdm_fmap %: (functional_vdm_create only) location of fieldmap sequence files
  223. % (secondary functional dataset number or label containing fieldmap sequence files) ['fmap']
  224. %BATCH.Setup.preprocessing.voxelsize_anat %: (structural normalization) target voxel size for resliced volumes (mm) [2]
  225. %BATCH.Setup.preprocessing.voxelsize_func %: (functional normalization) target voxel size for resliced volumes (mm) [2]
  226. %BATCH.Setup.preprocessing.sets %: defines functional dataset to preprocess (0 for Primary Dataset; [1-N] or labels for Secondary Datasets) [0]
  227. % STEP2: ROIS, CONDITIONS, COVARIATES(1st,2nd), OPTIONS %%
  228. % 5 ROIs %%
  229. % BATCH.Setup.secondarydatasets...
  230. % BATCH.Setup.add...
  231. % BATCH.Setup.masks... % Specifies the Grey/White/CSF ROIs for each subject. If any of these fields are left unset,
  232. % the conn toolbox will perform segmentation on the anatomical volumes (for each subject) in
  233. % order to define the missing masks
  234. % for sbj = 1:SBJ %1 to 18
  235. % Gray = dir([S1_path(sbj,:),'/c1c*.nii']);
  236. % White= dir([S1_path(sbj,:),'/c2c*.nii']);
  237. % CSF = dir([S1_path(sbj,:),'/c3c*.nii']);
  238. % BATCH.Setup.masks.Gray{sbj} = Gray.name;
  239. % BATCH.Setup.masks.White{sbj}= White.name;
  240. % BATCH.Setup.masks.CSF{sbj} = CSF.name;
  241. % end
  242. % % BATCH.Setup.rois... % Specifies the ROI files for connectivity analyses.
  243. % If this field is left unset, the toolbox will by
  244. % default use all the ROI files in the conn/rois directory
  245. % If you set some rois by yourself, please take care
  246. % whether BATCH.Setup.rois.add = 1 or 0.
  247. % BATCH.Setup.rois.add= 1 %: 1/0; use 0 (default) to define the full set of ROIs to be used in your analyses; use 1 to define
  248. % an additional set of ROIs (to be added to any already-existing ROIs in your project) [0]
  249. % % [Tips] If you want to simply add ROI set (such as Power's atlas), save
  250. % % one .nii file including ROI images and one .txt file including lists of
  251. % % seed names in tha folder 'XX:/spm12/toolbox/conn/rois'
  252. % % Conn indentifys the files as default atlas and automatically adds the
  253. % % ROI set.
  254. % % Otherwise, if you want to mannualy add ROIs for with some weights,
  255. % % use the following commands,
  256. % BATCH.Setup.rois.add= 1;
  257. % BATCH.Setup.rois.names={'XXXX','YYYY'};
  258. % BATCH.Setup.rois.dimensions={1,1};
  259. % BATCH.Setup.rois.files{1}='D:/spm12/toolbox/conn/utils/otherrois/XXXX.nii';
  260. % BATCH.Setup.rois.files{2}='D:/spm12/toolbox/conn/utils/otherrois/YYYY.nii';
  261. %% 6 Conditions %%
  262. % Description: Specifies the (taks or rest) conditions characterizing the block-design acquisition of
  263. % the functional volumes. Note that if the BATCH.New initialization step has been run this field will
  264. % default to defining a single condition encompassing the entire functional data. Alternatively if
  265. % BATCH.Setup.spmfiles has been specified this field will be defined by the modeled conditions of
  266. % interest in the corresponding SPM.mat files. Otherwise this field needs to be defined (e.g. use the
  267. % example below for rest-state functional data)
  268. for sbj = 1:SBJ %Loop through subjects <required>
  269. BATCH.Setup.conditions.names {1} ='All runs';
  270. BATCH.Setup.conditions.onsets {1}{sbj}{1}= 0;
  271. BATCH.Setup.conditions.onsets {1}{sbj}{2}= 0;
  272. BATCH.Setup.conditions.onsets {1}{sbj}{3}= 0;
  273. BATCH.Setup.conditions.onsets {1}{sbj}{4}= 0;
  274. BATCH.Setup.conditions.onsets {1}{sbj}{5}= 0;
  275. BATCH.Setup.conditions.durations{1}{sbj}{1}=inf;
  276. BATCH.Setup.conditions.durations{1}{sbj}{2}=inf;
  277. BATCH.Setup.conditions.durations{1}{sbj}{3}=inf;
  278. BATCH.Setup.conditions.durations{1}{sbj}{4}=inf;
  279. BATCH.Setup.conditions.durations{1}{sbj}{5}=inf;
  280. BATCH.Setup.conditions.names {2} ='First half';
  281. BATCH.Setup.conditions.onsets {2}{sbj}{1}= 0;
  282. BATCH.Setup.conditions.onsets {2}{sbj}{2}= 0;
  283. BATCH.Setup.conditions.onsets {2}{sbj}{3}= 0;
  284. BATCH.Setup.conditions.onsets {2}{sbj}{4}= [];
  285. BATCH.Setup.conditions.onsets {2}{sbj}{5}= [];
  286. BATCH.Setup.conditions.durations{2}{sbj}{1}=inf;
  287. BATCH.Setup.conditions.durations{2}{sbj}{2}=inf;
  288. BATCH.Setup.conditions.durations{2}{sbj}{3}=inf;
  289. BATCH.Setup.conditions.durations{2}{sbj}{4}= [];
  290. BATCH.Setup.conditions.durations{2}{sbj}{5}= [];
  291. BATCH.Setup.conditions.names {3} ='Second half';
  292. BATCH.Setup.conditions.onsets {3}{sbj}{1}= [];
  293. BATCH.Setup.conditions.onsets {3}{sbj}{2}= [];
  294. BATCH.Setup.conditions.onsets {3}{sbj}{3}= [];
  295. BATCH.Setup.conditions.onsets {3}{sbj}{4}= 0;
  296. BATCH.Setup.conditions.onsets {3}{sbj}{5}= 0;
  297. BATCH.Setup.conditions.durations{3}{sbj}{1}= [];
  298. BATCH.Setup.conditions.durations{3}{sbj}{2}= [];
  299. BATCH.Setup.conditions.durations{3}{sbj}{3}= [];
  300. BATCH.Setup.conditions.durations{3}{sbj}{4}=inf;
  301. BATCH.Setup.conditions.durations{3}{sbj}{5}=inf;
  302. BATCH.Setup.conditions.names {4} ='Stress all';
  303. BATCH.Setup.conditions.onsets {4}{sbj}{1}= [];
  304. BATCH.Setup.conditions.onsets {4}{sbj}{2}= 0;
  305. BATCH.Setup.conditions.onsets {4}{sbj}{3}= 0;
  306. BATCH.Setup.conditions.onsets {4}{sbj}{4}= [];
  307. BATCH.Setup.conditions.onsets {4}{sbj}{5}= [];
  308. BATCH.Setup.conditions.durations{4}{sbj}{1}= [];
  309. BATCH.Setup.conditions.durations{4}{sbj}{2}=inf;
  310. BATCH.Setup.conditions.durations{4}{sbj}{3}=inf;
  311. BATCH.Setup.conditions.durations{4}{sbj}{4}= [];
  312. BATCH.Setup.conditions.durations{4}{sbj}{5}= [];
  313. BATCH.Setup.conditions.names {5} ='Baseline';
  314. BATCH.Setup.conditions.onsets {5}{sbj}{1}= 0;
  315. BATCH.Setup.conditions.onsets {5}{sbj}{2}= [];
  316. BATCH.Setup.conditions.onsets {5}{sbj}{3}= [];
  317. BATCH.Setup.conditions.onsets {5}{sbj}{4}= [];
  318. BATCH.Setup.conditions.onsets {5}{sbj}{5}= [];
  319. BATCH.Setup.conditions.durations{5}{sbj}{1}=inf;
  320. BATCH.Setup.conditions.durations{5}{sbj}{2}= [];
  321. BATCH.Setup.conditions.durations{5}{sbj}{3}= [];
  322. BATCH.Setup.conditions.durations{5}{sbj}{4}= [];
  323. BATCH.Setup.conditions.durations{5}{sbj}{5}= [];
  324. BATCH.Setup.conditions.names {6} ='Stress1';
  325. BATCH.Setup.conditions.onsets {6}{sbj}{1}= [];
  326. BATCH.Setup.conditions.onsets {6}{sbj}{2}= 0;
  327. BATCH.Setup.conditions.onsets {6}{sbj}{3}= [];
  328. BATCH.Setup.conditions.onsets {6}{sbj}{4}= [];
  329. BATCH.Setup.conditions.onsets {6}{sbj}{5}= [];
  330. BATCH.Setup.conditions.durations{6}{sbj}{1}= [];
  331. BATCH.Setup.conditions.durations{6}{sbj}{2}=inf;
  332. BATCH.Setup.conditions.durations{6}{sbj}{3}= [];
  333. BATCH.Setup.conditions.durations{6}{sbj}{4}= [];
  334. BATCH.Setup.conditions.durations{6}{sbj}{5}= [];
  335. BATCH.Setup.conditions.names {7} ='Stress2';
  336. BATCH.Setup.conditions.onsets {7}{sbj}{1}= [];
  337. BATCH.Setup.conditions.onsets {7}{sbj}{2}= [];
  338. BATCH.Setup.conditions.onsets {7}{sbj}{3}= 0;
  339. BATCH.Setup.conditions.onsets {7}{sbj}{4}= [];
  340. BATCH.Setup.conditions.onsets {7}{sbj}{5}= [];
  341. BATCH.Setup.conditions.durations{7}{sbj}{1}= [];
  342. BATCH.Setup.conditions.durations{7}{sbj}{2}= [];
  343. BATCH.Setup.conditions.durations{7}{sbj}{3}=inf;
  344. BATCH.Setup.conditions.durations{7}{sbj}{4}= [];
  345. BATCH.Setup.conditions.durations{7}{sbj}{5}= [];
  346. BATCH.Setup.conditions.names {8} ='Recov1';
  347. BATCH.Setup.conditions.onsets {8}{sbj}{1}= [];
  348. BATCH.Setup.conditions.onsets {8}{sbj}{2}= [];
  349. BATCH.Setup.conditions.onsets {8}{sbj}{3}= [];
  350. BATCH.Setup.conditions.onsets {8}{sbj}{4}= 0;
  351. BATCH.Setup.conditions.onsets {8}{sbj}{5}= [];
  352. BATCH.Setup.conditions.durations{8}{sbj}{1}= [];
  353. BATCH.Setup.conditions.durations{8}{sbj}{2}= [];
  354. BATCH.Setup.conditions.durations{8}{sbj}{3}= [];
  355. BATCH.Setup.conditions.durations{8}{sbj}{4}=inf;
  356. BATCH.Setup.conditions.durations{8}{sbj}{5}= [];
  357. BATCH.Setup.conditions.names {9} ='Recov2';
  358. BATCH.Setup.conditions.onsets {9}{sbj}{1}= [];
  359. BATCH.Setup.conditions.onsets {9}{sbj}{2}= [];
  360. BATCH.Setup.conditions.onsets {9}{sbj}{3}= [];
  361. BATCH.Setup.conditions.onsets {9}{sbj}{4}= [];
  362. BATCH.Setup.conditions.onsets {9}{sbj}{5}= 0;
  363. BATCH.Setup.conditions.durations{9}{sbj}{1}= [];
  364. BATCH.Setup.conditions.durations{9}{sbj}{2}= [];
  365. BATCH.Setup.conditions.durations{9}{sbj}{3}= [];
  366. BATCH.Setup.conditions.durations{9}{sbj}{4}= [];
  367. BATCH.Setup.conditions.durations{9}{sbj}{5}=inf;
  368. end
  369. %NumOfCond = 5;
  370. %BATCH.Setup.conditions.param = zeros(1,NumOfCond);
  371. %BATCH.Setup.conditions.filter= [];
  372. %BATCH.Setup.conditions.missingdata= 0;
  373. %BATCH.Setup.conditions.model= []; %optional
  374. %BATCH.Setup.conditions.importfile= []; %optional
  375. %BATCH.Setup.conditions.importfile= 0;
  376. %% 7 Covariates 1st level %%
  377. % % Description: Specifies the first level covariates (timeseries possibly associated with the BOLDsignal).
  378. % % Note that if the new initialization step has been run(BATCH.Setup.isnew = 1),
  379. % % this field will default to THREE covariates representing the estimated subject motion for each subject/session.
  380. % % BATCH.Setup.covariate.files{ncovariate}{nsub}{nses} element contains a char array pointing to a
  381. % % .txt or .mat file defining the time series first level covariate ncovariate, for subject nsub, during
  382. % % session nses . Note that each covariate can in turn be multivariate (e.g. the ‘movement’ covariate
  383. % % contains 6 time series, each representing one aspect of the estimated subject movement
  384. % % translation and rotation parameters --).
  385. % % Valid first level covariate files are .txt files with a row of
  386. % % numbers for each scan, and .mat files containing a single two dimensional variable (arbitrarily
  387. % % named) with as many rows as scans.
  388. %OPTION:Put physiological data, if you have
  389. BATCH.Setup.covariates.add = 1; %1/0 1: Add 1sr level covariates in addition to default
  390. % (= 'realignment', 'QC_timeseries', 'scrubbing').
  391. % 0: Make original set of 1st level covariates.
  392. %note: 'rp_**.txt', art_regression_timeseries_**.mat,
  393. %'art_regression_outliers_**.mat have not been made
  394. % until running preprocessig process.
  395. for sbj = 1:SBJ %Loop through subjects
  396. BATCH.Setup.covariates.names{1} ='retroicor';
  397. BATCH.Setup.covariates.files{1}{sbj}{1}=cellstr([PATH2,'/',PHYSIONAME(sbj,:),'/retroicor_hrv_rvt1.txt']);
  398. BATCH.Setup.covariates.files{1}{sbj}{2}=cellstr([PATH2,'/',PHYSIONAME(sbj,:),'/retroicor_hrv_rvt2.txt']);
  399. BATCH.Setup.covariates.files{1}{sbj}{3}=cellstr([PATH2,'/',PHYSIONAME(sbj,:),'/retroicor_hrv_rvt3.txt']);
  400. BATCH.Setup.covariates.files{1}{sbj}{4}=cellstr([PATH2,'/',PHYSIONAME(sbj,:),'/retroicor_hrv_rvt4.txt']);
  401. BATCH.Setup.covariates.files{1}{sbj}{5}=cellstr([PATH2,'/',PHYSIONAME(sbj,:),'/retroicor_hrv_rvt5.txt']);
  402. end
  403. % % THIS IS A MISTAKE OF THE SCRIPTS. YOU DO NOT NEED TO PUT THESE COVARIATES MANUALLY AS CONN MAKES IT AUTOMATICALLY.
  404. % % % BATCH.Setup.covariates.names{1} ='realignment';
  405. % % % BATCH.Setup.covariates.files{1}{sbj}{1}=cellstr([D1_path(sbj,:),'/rp_',FOLDERNAME1(sbj,:),'_epi1_4d.txt']);
  406. % % % BATCH.Setup.covariates.files{1}{sbj}{2}=cellstr([D2_path(sbj,:),'/rp_',FOLDERNAME1(sbj,:),'_epi2_4d.txt']);
  407. % % % BATCH.Setup.covariates.files{1}{sbj}{3}=cellstr([D3_path(sbj,:),'/rp_',FOLDERNAME1(sbj,:),'_epi3_4d.txt']);
  408. % % %
  409. % % % BATCH.Setup.covariates.names{2} ='QC_timeseries';
  410. % % % BATCH.Setup.covariates.files{2}{sbj}{1}=cellstr([D1_path(sbj,:),'/art_regression_timeseries','_au',FOLDERNAME1(sbj,:),'_epi1_4d.mat']);
  411. % % % BATCH.Setup.covariates.files{2}{sbj}{2}=cellstr([D2_path(sbj,:),'/art_regression_timeseries','_au',FOLDERNAME1(sbj,:),'_epi2_4d.mat']);
  412. % % % BATCH.Setup.covariates.files{2}{sinishing 59 job(s) running
  413. % % %
  414. % % % BATCH.Setup.covariates.names{3} ='scrubbing';
  415. % % % BATCH.Setup.covariates.files{3}{sbj}{1}=cellstr([D1_path(sbj,:),'/art_regression_outliers','_au',FOLDERNAME1(sbj,:),'_epi1_4d.mat']);
  416. % % % BATCH.Setup.covariates.files{3}{sbj}{2}=cellstr([D2_path(sbj,:),'/art_regression_outliers','_au',FOLDERNAME1(sbj,:),'_epi2_4d.mat']);
  417. % % % BATCH.Setup.covariates.files{3}{sbj}{3}=cellstr([D3_path(sbj,:),'/art_regression_outliers','_au',FOLDERNAME1(sbj,:),'_epi3_4d.mat']);
  418. %% 8 Covariates 2nd level %%
  419. %
  420. % BATCH.Setup.subjects
  421. % Description: Specifies the second level covariates (subject level variables, such as behavioral or
  422. % demographic measures as well as subject group definitions). By default a single second level
  423. % covariate is defined named ‘All’ characterizing a single group that includes all subjects. Note that
  424. % second level covariates can be redundant as different subsets of second level covariates can be
  425. % used in different second level analyses (see BATCH.Results for more details)
  426. %BATCH.Setup.subjects.add= 1 ; %1/0 1: Add 2nd level regressor in addition to default (AllSubjects).
  427. % 0: Make original set of 2nd level regressors.
  428. BATCH.Setup.subjects.effect_names= IDinf.name ;
  429. BATCH.Setup.subjects.effects{ 1}=IDinf.val(1:SBJ, 1);
  430. BATCH.Setup.subjects.effects{ 2}=IDinf.val(1:SBJ, 2);
  431. BATCH.Setup.subjects.effects{ 3}=IDinf.val(1:SBJ, 3);
  432. BATCH.Setup.subjects.effects{ 4}=IDinf.val(1:SBJ, 4);
  433. BATCH.Setup.subjects.effects{ 5}=IDinf.val(1:SBJ, 5);
  434. BATCH.Setup.subjects.effects{ 6}=IDinf.val(1:SBJ, 6);
  435. BATCH.Setup.subjects.effects{ 7}=IDinf.val(1:SBJ, 7);
  436. BATCH.Setup.subjects.effects{ 8}=IDinf.val(1:SBJ, 8);
  437. BATCH.Setup.subjects.effects{ 9}=IDinf.val(1:SBJ, 9);
  438. BATCH.Setup.subjects.effects{10}=IDinf.val(1:SBJ,10);
  439. BATCH.Setup.subjects.effects{11}=IDinf.val(1:SBJ,11);
  440. BATCH.Setup.subjects.effects{12}=IDinf.val(1:SBJ,12);
  441. BATCH.Setup.subjects.effects{13}=IDinf.val(1:SBJ,13);
  442. BATCH.Setup.subjects.effects{14}=IDinf.val(1:SBJ,14);
  443. BATCH.Setup.subjects.effects{15}=IDinf.val(1:SBJ,15);
  444. BATCH.Setup.subjects.effects{16}=IDinf.val(1:SBJ,16);
  445. BATCH.Setup.subjects.effects{17}=IDinf.val(1:SBJ,17);
  446. BATCH.Setup.subjects.effects{18}=IDinf.val(1:SBJ,18);
  447. BATCH.Setup.subjects.effects{19}=IDinf.val(1:SBJ,19);
  448. BATCH.Setup.subjects.effects{20}=IDinf.val(1:SBJ,20);
  449. BATCH.Setup.subjects.effects{21}=IDinf.val(1:SBJ,21);
  450. BATCH.Setup.subjects.effects{22}=IDinf.val(1:SBJ,22);
  451. BATCH.Setup.subjects.effects{23}=IDinf.val(1:SBJ,23);
  452. BATCH.Setup.subjects.effects{24}=IDinf.val(1:SBJ,24);
  453. BATCH.Setup.subjects.effects{25}=IDinf.val(1:SBJ,25);
  454. BATCH.Setup.subjects.effects{26}=IDinf.val(1:SBJ,26);
  455. BATCH.Setup.subjects.effects{27}=IDinf.val(1:SBJ,27);
  456. BATCH.Setup.subjects.effects{28}=IDinf.val(1:SBJ,28);
  457. BATCH.Setup.subjects.effects{29}=IDinf.val(1:SBJ,29);
  458. %% 9 Options %%
  459. BATCH.Setup.analyses = [1,2,3,4];% Vector of index to analysis types (1: ROI-to-ROI; 2: Seed-to-voxel; 3: Voxel-to-voxel; 4: Dynamic FC)
  460. % Defaults to vector [1,2,3,4] (all analyses)
  461. BATCH.Setup.voxelmask= 1; %Analysis mask (voxel-level analyses):
  462. %1: Explicit mask (brainmask.nii); 2: Implicit mask (subject-specific) [1]
  463. %BATCH.Setup.voxelmaskfile=[]; %Explicit mask file (only when voxelmask=1) [fullfile(fileparts(which('spm')),'apriori','brainmask.nii')]
  464. BATCH.Setup.voxelresolution=1;
  465. %Analysis space (voxel-level analyses):
  466. %1: Volume-based template (SPM; default 2mm isotropic or same as explicit mask if specified)
  467. %2: Same as structurals
  468. %3: Same as functionals;
  469. %4: Surface-based template (Freesurfer) [1]
  470. BATCH.Setup.analysisunits =1;%BOLD signal units. 1: PSC(percent signal change) units ; 2: raw units [1]
  471. BATCH.Setup.outputfiles =[1,1,0,0,0,0]; %Optional output files [0,0,0,0,0,0]
  472. %outputfiles(1): 1/0 creates confound beta-maps
  473. %outputfiles(2): 1/0 creates confound-corrected timeseries
  474. %outputfiles(3): 1/0 creates seed-to-voxel r-maps
  475. %outputfiles(4): 1/0 creates seed-to-voxel p-maps)
  476. %outputfiles(5): 1/0 creates seed-to-voxel FDR-p-maps;
  477. %outputfiles(6): 1/0 creates ROI-extraction REX files;
  478. % BATCH.Setup.spmfiles
  479. %Optionally, spmfiles{nsub} is a char array pointing to the 'SPM.mat' source file to extract Setup
  480. %information from for each subject (use alternatively spmfiles{nsub}{nses} for session-specific SPM.mat files)
  481. % BATCH.Setup.spmfiles_options
  482. %(for Setup.spmfiles procedure) Cell array containing additional options to pass to conn_importspm
  483. %when importing experiment info from spmfiles (see help conn_importspm)
  484. % BATCH.Setup.vdm_functionals
  485. %(for Setup.preprocessing.steps=='realign&unwarp&fieldmap') vdm_functionals{nsub}{nses} char
  486. %array of voxel-displacement volumes (vdm* file; explicitly entering these volumes here superceeds CONN's
  487. %default option to search for/use vdm* files in same directory as functional data)
  488. % BATCH.Setup.fmap_functionals
  489. %(for Setup.preprocessing.steps=='vdm_create') fmap_functionals{nsub}{nses} char
  490. %array of fieldmap sequence files (magnitude1+phasediff or real1+imag1+real2+imag2 or fieldmap (Hz) volumes)
  491. % BATCH.Setup.coregsource_functionals
  492. %(for Setup.preprocessing.steps=='functional_coregister/segment/normalize')
  493. %coregsource_functionals{nsub} char array of source volume for coregistration/normalization/
  494. %segmentation (used only when preprocessing "coregtomean" field is set to 2, user-defined source
  495. %volumes are used in this case instead of either the first functional volume (coregtomean=0) or the
  496. %mean functional volume (coregtomean=1) for coregistration/normalization/segmentation)
  497. % BATCH.Setup.localcopy
  498. %(for Setup.structural, Setup.functional, Setup.secondarydatasets, and Setup.rois) 1/0 : copies structural/
  499. %functional files into conn_*/data/BIDS folder before importing into CONN [0]
  500. % BATCH.Setup.binary_threshold = [.5 .5 .5]; %default [.5 .5 .5]
  501. %(for BOLD extraction from Grey/White/CSF ROIs) Threshold value # for binarizing Grey/White/CSF masks
  502. % BATCH.Setup.binary_threshold_type
  503. %(for BOLD extraction from Grey/White/CSF ROIs)
  504. %1: absolute threshold (keep voxels with values above x)
  505. %2: percentile threshold (keep x% of voxels with the highest values) [1 1 1]
  506. % BATCH.Setup.exclude_grey_matter
  507. %(for BOLD extration from White/CSF ROIs) threhsold for excluding Grey matter voxels (nan for no threshold) [nan nan nan]
  508. % BATCH.Setup.erosion_steps = [0 1 1]; %default [0 1 1]
  509. %(for BOLD extraction from Grey/White/CSF ROIs) integer numbers are interpreted as erosion kernel
  510. %size for Grey/White/CSF mask erosion after binarization; non-integer numbers are interpreted as
  511. %percentile voxels kept after erosion
  512. % BATCH.Setup.erosion_neighb
  513. %(for BOLD extraction from Grey/White/CSF ROIs; only when using integer erosion_steps/ kernel sizes,
  514. %this field is disregarded otherwise) Neighborhood size for Grey/White/CSF mask erosion after
  515. %binarization (a voxel is eroded if there are more than masks_erosion_neighb zeros within the
  516. %(2*masks_erosionsteps+1)^3-neighborhood of each voxel) [1 1 1]
  517. % %% RUN POINT1 %%
  518. % % conn_batch(BATCH);
  519. % % You can run this script in this point, if you want to stop by end of preprocessing.
  520. % % Results of STEP1&2 %%
  521. % % In functional data folder
  522. % % 'swauXXXXX.nii'
  523. % % 'rp_XXXXX.txt' is for realign parameters.
  524. % % 'art_movement_stats_auXXXXX.mat'
  525. % % 'art_regression_timeseries_auXXXXX.mat' is for QC_timeseries.
  526. % % 'art_regression_outliers_auXXXXX.mat' is for Scrubbing.
  527. % % 'art_regression_outliers_and_movement_auXXXXX.mat'
  528. % % also you will see 'c1art_mean_auXXXX.nii',...'c5art_mean_auXXXX.nii' etc...
  529. % % Those are for segmentaion.
  530. % % In structual data folder
  531. % % all new files are related to segmentation process
  532. % % 'centering_XXXXX.mat
  533. % % 'icentering_XXXXX.mat
  534. % % 'c1cs_XXXXX.nii'...'c5cs_XXXXX.nii'
  535. % % 'wc0csXXXXX.nii'...'wc3csXXXXX.nii'
  536. % % 'wcsXXXXX.nii'
  537. % % 'y_csXXXXX.nii'
  538. % % 'iy_csXXXXX.nii'
  539. %% STEP3: DENOISING %%
  540. % % If you already finished the prepreprocessing, please read following commands
  541. % clear BATCH
  542. % BATCH.filename = [PATH1,'/',FILENAME];
  543. % %
  544. %% 10 Denoising %%
  545. BATCH.Denoising.done = 1; %<required>: 1/0: 0 defines fields only; 1 runs DENOISING processing steps [0]
  546. BATCH.Denoising.overwrite = 1; %<required>: (for done=1) 1/0: overwrites target files if they exist [1]
  547. BATCH.Denoising.filter = [0.008, 0.09]; %<required>: vector with two elements specifying band pass filter: low-frequency & high-frequency cutoffs (Hz)
  548. BATCH.Denoising.detrending = 1; %: 0/1/2/3: BOLD times-series polynomial detrending order
  549. % (0: no detrending; 1: linear detrending; 3: cubic detrending)
  550. BATCH.Denoising.despiking = 0; %: 0/1/2: temporal despiking with a hyperbolic tangent squashing function
  551. %(1:before regression; 2:after regression) [0]
  552. BATCH.Denoising.regbp = 1; %: 1/2: order of band-pass filtering step
  553. %(1 = RegBP: regression followed by band-pass; 2 = Simult: simultaneous regression&band-pass) [1]
  554. % % BATCH.Denoising.confounds... %You do not need to put follwing commands,
  555. % % %if you use default setting of Denoisinig.
  556. % % Description: Specifies the denoising confounds factors (timeseries possibly associated with the BOLDsignal).
  557. % % Note that this field will default to THREE factors ('White Matter','CSF','realignment','scrubbing') and Effect of XX.
  558. % % You need to describe only when you want to change the denosing factors.
  559. % % BATCH.Denoising.confounds.names = {'retroicor'};
  560. % % BATCH.Denoising.confounds.dimensions = {[]}; %regressor size of retroicor is different by subjects
  561. % % BATCH.Denoising.confounds.deriv = {0};
  562. % % BATCH.Denoising.confounds.power = {1};
  563. % % BATCH.Denoising.confounds.filter = {0};
  564. BATCH.Denoising.confounds.names = {'White Matter','CSF','realignment','scrubbing','retroicor',...
  565. 'Effect of All runs','Effect of First half','Effect of Second half','Effect of Stress all','Effect of Baseline','Effect of Stress1','Effect of Stress2','Effect of Recov1','Effect of Recov2'};
  566. %: confounds.names{nconfound} char array of confound name
  567. % (confound names can be: 'Grey Matter','White Matter','CSF',any ROI name, any covariate name,
  568. % or 'Effect of *' where * represents any condition name]
  569. BATCH.Denoising.confounds.dimensions = {5,5,[],[],[],...
  570. 2,2,2,2,2,2,2,2,2};
  571. %: confounds.dimensions{nconfound} number of confound dimensions [defaults to using all dimensions
  572. % available for each confound variable]
  573. % leave empty a particular value to set to the default value -maximum dimensions of the corresponding effect-
  574. BATCH.Denoising.confounds.deriv = {0,0,1,0,0,...
  575. 1,1,1,1,1,1,1,1,1};
  576. %: confounds.deriv{nconfound} include temporal derivatives up to n-th order of each effect
  577. % (0 for raw timeseries, 1 for raw+firstderivative timeseries, etc.) [0|1]
  578. BATCH.Denoising.confounds.power = {1,1,1,1,1,...
  579. 1,1,1,1,1,1,1,1,1};
  580. %: confounds.power{nconfound} include powers up to n-th order of each effect
  581. %(1 for linear effects, %2 for linear+quadratic effect, etc.) [1]
  582. BATCH.Denoising.confounds.filter = {0,0,0,0,0,...
  583. 0,0,0,0,0,0,0,0,0};
  584. %: (for regbp==1) confounds.filter{nconfound} band-pass filter confound regressors before entering
  585. % for roi = 1:ROIsize %in regression equation [0]
  586. % %% RUN POINT2 %%
  587. % conn_batch(BATCH);
  588. % % You can run this script in this point, if you want to stop by end of denoising.
  589. %% STEP4: ANALYSES(1ST LEVEL) %%
  590. % % % If you already finish the denoising, please read following commands
  591. % % clear BATCH
  592. % % BATCH.filename = [PATH1,'/',FILENAME];
  593. % % %
  594. %
  595. % %The list of ROInames is for excluding Cerebellum rois.
  596. % ROIname = {'atlas.FP r (Frontal Pole Right)','atlas.FP l (Frontal Pole Left)',...
  597. % 'atlas.IC r (Insular Cortex Right)','atlas.IC l (Insular Cortex Left)',...
  598. % 'atlas.SFG r (Superior Frontal Gyrus Right)','atlas.SFG l (Superior Frontal Gyrus Left)',...
  599. % 'atlas.MidFG r (Middle Frontal Gyrus Right)','atlas.MidFG l (Middle Frontal Gyrus Left)',...
  600. % 'atlas.IFG tri r (Inferior Frontal Gyrus, pars triangularis Right)','atlas.IFG tri l (Inferior Frontal Gyrus, pars triangularis Left)',...
  601. % 'atlas.IFG oper r (Inferior Frontal Gyrus, pars opercularis Right)','atlas.IFG oper l (Inferior Frontal Gyrus, pars opercularis Left)',...
  602. % 'atlas.PreCG r (Precentral Gyrus Right)','atlas.PreCG l (Precentral Gyrus Left)',...
  603. % 'atlas.TP r (Temporal Pole Right)','atlas.TP l (Temporal Pole Left)',...
  604. % 'atlas.aSTG r (Superior Temporal Gyrus, anterior division Right)','atlas.aSTG l (Superior Temporal Gyrus, anterior division Left)',...
  605. % 'atlas.pSTG r (Superior Temporal Gyrus, posterior division Right)','atlas.pSTG l (Superior Temporal Gyrus, posterior division Left)',...
  606. % 'atlas.aMTG r (Middle Temporal Gyrus, anterior division Right)','atlas.aMTG l (Middle Temporal Gyrus, anterior division Left)',...
  607. % 'atlas.pMTG r (Middle Temporal Gyrus, posterior division Right)','atlas.pMTG l (Middle Temporal Gyrus, posterior division Left)',...
  608. % 'atlas.toMTG r (Middle Temporal Gyrus, temporooccipital part Right)','atlas.toMTG l (Middle Temporal Gyrus, temporooccipital part Left)',...
  609. % 'atlas.aITG r (Inferior Temporal Gyrus, anterior division Right)','atlas.aITG l (Inferior Temporal Gyrus, anterior division Left)',...
  610. % 'atlas.pITG r (Inferior Temporal Gyrus, posterior division Right)','atlas.pITG l (Inferior Temporal Gyrus, posterior division Left)',...
  611. % 'atlas.toITG r (Inferior Temporal Gyrus, temporooccipital part Right)','atlas.toITG l (Inferior Temporal Gyrus, temporooccipital part Left)',...
  612. % 'atlas.PostCG r (Postcentral Gyrus Right)','atlas.PostCG l (Postcentral Gyrus Left)',...
  613. % 'atlas.SPL r (Superior Parietal Lobule Right)','atlas.SPL l (Superior Parietal Lobule Left)',...
  614. % 'atlas.aSMG r (Supramarginal Gyrus, anterior division Right)','atlas.aSMG l (Supramarginal Gyrus, anterior division Left)',...
  615. % 'atlas.pSMG r (Supramarginal Gyrus, posterior division Right)','atlas.pSMG l (Supramarginal Gyrus, posterior division Left)',...
  616. % 'atlas.AG r (Angular Gyrus Right)','atlas.AG l (Angular Gyrus Left)',...
  617. % 'atlas.sLOC r (Lateral Occipital Cortex, superior division Right)','atlas.sLOC l (Lateral Occipital Cortex, superior division Left)',...
  618. % 'atlas.iLOC r (Lateral Occipital Cortex, inferior division Right)','atlas.iLOC l (Lateral Occipital Cortex, inferior division Left)',...
  619. % 'atlas.ICC r (Intracalcarine Cortex Right)','atlas.ICC l (Intracalcarine Cortex Left)',...
  620. % 'atlas.MedFC (Frontal Medial Cortex)',...
  621. % 'atlas.SMA r (Juxtapositional Lobule Cortex -formerly Supplementary Motor Cortex- Right)','atlas.SMA L(Juxtapositional Lobule Cortex -formerly Supplementary Motor Cortex- Left)',...
  622. % 'atlas.SubCalC (Subcallosal Cortex)',...
  623. % 'atlas.PaCiG r (Paracingulate Gyrus Right)','atlas.PaCiG l (Paracingulate Gyrus Left)',...
  624. % 'atlas.AC (Cingulate Gyrus, anterior division)',...
  625. % 'atlas.PC (Cingulate Gyrus, posterior division)',...
  626. % 'atlas.Precuneous (Precuneous Cortex)',...
  627. % 'atlas.Cuneal r (Cuneal Cortex Right)','atlas.Cuneal l (Cuneal Cortex Left)',...
  628. % 'atlas.FOrb r (Frontal Orbital Cortex Right)','atlas.FOrb l (Frontal Orbital Cortex Left)',...
  629. % 'atlas.aPaHC r (Parahippocampal Gyrus, anterior division Right)','atlas.aPaHC l (Parahippocampal Gyrus, anterior division Left)',...
  630. % 'atlas.pPaHC r (Parahippocampal Gyrus, posterior division Right)','atlas.pPaHC l (Parahippocampal Gyrus, posterior division Left)',...
  631. % 'atlas.LG r (Lingual Gyrus Right)','atlas.LG l (Lingual Gyrus Left)',...
  632. % 'atlas.aTFusC r (Temporal Fusiform Cortex, anterior division Right)','atlas.aTFusC l (Temporal Fusiform Cortex, anterior division Left)',...
  633. % 'atlas.pTFusC r (Temporal Fusiform Cortex, posterior division Right)','atlas.pTFusC l (Temporal Fusiform Cortex, posterior division Left)',...
  634. % 'atlas.TOFusC r (Temporal Occipital Fusiform Cortex Right)','atlas.TOFusC l (Temporal Occipital Fusiform Cortex Left)',...
  635. % 'atlas.OFusG r (Occipital Fusiform Gyrus Right)','atlas.OFusG l (Occipital Fusiform Gyrus Left)',...
  636. % 'atlas.FO r (Frontal Operculum Cortex Right)','atlas.FO l (Frontal Operculum Cortex Left)',...
  637. % 'atlas.CO r (Central Opercular Cortex Right)','atlas.CO l (Central Opercular Cortex Left)',...
  638. % 'atlas.PO r (Parietal Operculum Cortex Right)','atlas.PO l (Parietal Operculum Cortex Left)',...
  639. % 'atlas.PP r (Planum Polare Right)','atlas.PP l (Planum Polare Left)',...
  640. % 'atlas.HG r (Heschl''s Gyrus Right)','atlas.HG l (Heschl''s Gyrus Left)',...
  641. % 'atlas.PT r (Planum Temporale Right)','atlas.PT l (Planum Temporale Left)',...
  642. % 'atlas.SCC r (Supracalcarine Cortex Right)','atlas.SCC l (Supracalcarine Cortex Left)',...
  643. % 'atlas.OP r (Occipital Pole Right)','atlas.OP l (Occipital Pole Left)',...
  644. % 'atlas.Thalamus r','atlas.Thalamus l',...
  645. % 'atlas.Caudate r','atlas.Caudate l',...
  646. % 'atlas.Putamen r','atlas.Putamen l',...
  647. % 'atlas.Pallidum r','atlas.Pallidum l',...
  648. % 'atlas.Hippocampus r','atlas.Hippocampus l',...
  649. % 'atlas.Amygdala r','atlas.Amygdala l',...
  650. % 'atlas.Accumbens r','atlas.Accumbens l',...
  651. % 'atlas.Brain-Stem',...
  652. % 'networks.DefaultMode.MPFC (1,55,-3)',...
  653. % 'networks.DefaultMode.LP (L) (-39,-77,33)','networks.DefaultMode.LP (R) (47,-67,29)',...
  654. % 'networks.DefaultMode.PCC (1,-61,38)',...
  655. % 'networks.SensoriMotor.Lateral (L) (-55,-12,29)','networks.SensoriMotor.Lateral (R) (56,-10,29)',...
  656. % 'networks.SensoriMotor.Superior (0,-31,67)',...
  657. % 'networks.Visual.Medial (2,-79,12)',...
  658. % 'networks.Visual.Occipital (0,-93,-4)',...
  659. % 'networks.Visual.Lateral (L) (-37,-79,10)','networks.Visual.Lateral (R) (38,-72,13)',...
  660. % 'networks.Salience.ACC (0,22,35)',...
  661. % 'networks.Salience.AInsula (L) (-44,13,1)','networks.Salience.AInsula (R) (47,14,0)',...
  662. % 'networks.Salience.RPFC (L) (-32,45,27)','networks.Salience.RPFC (R) (32,46,27)',...
  663. % 'networks.Salience.SMG (L) (-60,-39,31)','networks.Salience.SMG (R) (62,-35,32)',...
  664. % 'networks.DorsalAttention.FEF (L) (-27,-9,64)','networks.DorsalAttention.FEF (R) (30,-6,64)',...
  665. % 'networks.DorsalAttention.IPS (L) (-39,-43,52)','networks.DorsalAttention.IPS (R) (39,-42,54)',...
  666. % 'networks.FrontoParietal.LPFC (L) (-43,33,28)','networks.FrontoParietal.PPC (L) (-46,-58,49)',...
  667. % 'networks.FrontoParietal.LPFC (R) (41,38,30)','networks.FrontoParietal.PPC (R) (52,-52,45)',...
  668. % 'networks.Language.IFG (L) (-51,26,2)','networks.Language.IFG (R) (54,28,1)',...
  669. % 'networks.Language.pSTG (L) (-57,-47,15)','networks.Language.pSTG (R) (59,-42,13)'};
  670. %
  671. % ROIsize = size(ROIname,2);
  672. %
  673. BATCH.Analysis.done = 1; %:<required> 1/0: 0 defines fields only; 1 runs ANALYSIS processing steps [0]
  674. BATCH.Analysis.overwrite = 1; %:<required> (for done=1) 1/0: overwrites target files if they exist [1]
  675. % BATCH.Analysis.name = 1; %: analysis name (identifying each set of independent analysis)
  676. % %(alternatively sequential index identifying each set of independent analyses [1])
  677. %
  678. % BATCH.Analysis.measure = 1; %: connectivity measure used; [1]
  679. % % 1 = 'correlation (bivariate)',
  680. % % 2 = 'correlation (semipartial)',
  681. % % 3 = 'regression (bivariate)',
  682. % % 4 = 'regression (multivariate)'
  683. % BATCH.Analysis.weight = 2; %: within-condition weight; [2]
  684. % % 1 = 'none',
  685. % % 2 = 'hrf',
  686. % % 3 = 'hanning'
  687. % BATCH.Analysis.modulation = 0; %: temporal modulation ; [0]
  688. % % 0 = standard weighted GLM analyses;
  689. % % 1 = gPPI analyses of condition-specific temporal modulation factor,
  690. % % or a string for PPI analyses of other temporal modulation factor
  691. % % (same for all conditions; valid strings are ROI names and 1st-level covariate names)
  692. % % BATCH.Analysis.conditions =[]; %: (for modulation==1 only) list of task condition names to be simultaneously entered in gPPI
  693. % % % model (leave empty for default 'all existing conditions') []
  694. % BATCH.Analysis.type = 3; % : analysis type, 1 = 'ROI-to-ROI', 2 = 'Seed-to-Voxel', 3 = 'all'; [3]
  695. % %
  696. % % % BATCH.Analysis.sources
  697. % % % Description: Cell array of sources names (seeds) (source names can be: any ROI name)
  698. % % % (if this variable does not exist the toolbox will perform the analyses for all of the existing ROIs
  699. % % % which are not defined as confounds in the Denoising step)
  700. % % % note: partial ROI name matches are accepted (e.g. using 'networks.Language' will match all
  701. % % % ROIs starting with that token)
  702. % % % Alternatively sources can be a structure with fields
  703. %
  704. % BATCH.Analysis.sources.names = ROIname; % {'Left Amygdala', 'Right Amygdala'}; %: sources.names{nsource} char array of source names (seeds)
  705. % for roi = 1:ROIsize
  706. % BATCH.Analysis.sources.dimensions{roi} = 1; %: sources.dimensions{nsource} number of source dimensions [1]
  707. % BATCH.Analysis.sources.deriv{roi} = 0; %: sources.deriv{nsource} number of derivatives for each dimension [0]
  708. % BATCH.Analysis.sources.fbands{roi} = 1; %: sources.fbands{nsource} number of frequency bands for each dimension [1]
  709. % end
  710. %% RUN POINT3 %%
  711. conn_batch(BATCH);
  712. % You can run this script in this point, if you want to stop by end of Analyses(1st level).

CONN_script_Prep_1stLevel_MRI14.m, no license · at the source

Overview

Authors: Noriya Watanabe1,2, Shinichi Yoshida1,3, Ruedeerat Keerativittayayut1,4, Masaki Takeda1,3
  1. Research Center for Brain Communication, Kochi University of Technology, Kami, Kochi 782-8502, Japan
  2. Department of Informatics, Faculty of Informatics, Shizuoka Institute of Science and Technology, Fukuroi, Shizuoka 437-8555, Japan
  3. School of Informatics, Kochi University of Technology, Kami, Kochi 782-8502, Japan
  4. School of Radiological Technology, Faculty of Health Science Technology, Chulabhorn Royal Academy, Bangkok 10210, Thailand
Dates: received 31 August 2025; accepted 25 February 2026; published online 25 March 2026; in print 31 March 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1073/pnas.2524075123 · PMID 41880572 · PMCID PMC13037921 · OpenAlex W7140329876
Open access: hybrid, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: EEG (modality), human (organism), systems (subfield)
Methods: Spectral & time-frequency, Connectivity, Statistics, Machine learning, Smoothing, state filtering, decompositions, Preprocessing, fMRI & imaging, Single-unit activity, calcium imaging, Evoked potentials, Physiology & signal measures
Keywords: stress resilience, resting state, multimodal measurements, salience network, default mode network
MeSH: Brain*, Resilience, Psychological*, Stress, Psychological*, Adult, Brain Mapping, Electroencephalography, Female, Hippocampus, Humans, Magnetic Resonance Imaging, Male, Nerve Net, Young Adult (* major topic)
Topic: Stress Responses and Cortisol (Behavioral Neuroscience, Neuroscience), according to OpenAlex
Funding: MEXT | Japan Society for the Promotion of Science (JP21H00211, JP21K07262, JP24H00914, JP20H00521, JP22H05219, JP22K12786, JP21K18267); Naito Science and Engineering Foundation ( ) (N.A); Public Health Research Foundation (N.A); Takeda Science Foundation (TSF) (N.A)
Citations: not cited yet (Europe PMC); 79 references in the paper

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, with 8 matches between paragraphs and lines of code.

OSF kvnh9

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Languages: MATLAB (2), R (1)
Size: 31 files, 3 scripts
Software Heritage: not checked
Found in: “Data, Materials, and Software Availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: CONN (1 file), EEGLAB (1 file), glmnet (1 file), ICLabel (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
  • 30 September 2026: the link answers (HTTP 200)
3 files
At the source: osf.io/kvnh9/

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

No dataset and no data link were found in the paper.

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:

Read it in the paper: doi.org/10.1073/pnas.2524075123.

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, issue, pages, dates, 4 authors, 5 keywords, 13 MeSH terms, 4 funders, 78 references.

Cite

This paper

Watanabe, N., Yoshida, S., Keerativittayayut, R., & Takeda, M. (2026). Neural signatures of human psychological resilience driven by acute stress. Proceedings of the National Academy of Sciences of the United States of America, 123(13), e2524075123. https://doi.org/10.1073/pnas.2524075123

BibTeX

@article{watanabe2026neural,
author = {Watanabe, Noriya and Yoshida, Shinichi and Keerativittayayut, Ruedeerat and Takeda, Masaki},
title = {{Neural signatures of human psychological resilience driven by acute stress}},
journal = {Proceedings of the National Academy of Sciences of the United States of America},
year = {2026},
month = mar,
volume = {123},
number = {13},
pages = {e2524075123},
publisher = {National Academy of Sciences},
issn = {0027-8424},
doi = {10.1073/pnas.2524075123},
url = {https://doi.org/10.1073/pnas.2524075123},
pmid = {41880572},
pmcid = {PMC13037921}
}

RIS

TY - JOUR
AU - Watanabe, Noriya
AU - Yoshida, Shinichi
AU - Keerativittayayut, Ruedeerat
AU - Takeda, Masaki
TI - Neural signatures of human psychological resilience driven by acute stress
T2 - Proceedings of the National Academy of Sciences of the United States of America
J2 - Proc Natl Acad Sci U S A
PY - 2026
DA - 2026/03/25
VL - 123
IS - 13
SP - e2524075123
SN - 0027-8424
PB - National Academy of Sciences
DO - 10.1073/pnas.2524075123
UR - https://doi.org/10.1073/pnas.2524075123
LA - en
ER -

CSL-JSON

{
"id": "10.1073/pnas.2524075123",
"type": "article-journal",
"title": "Neural signatures of human psychological resilience driven by acute stress",
"container-title": "Proceedings of the National Academy of Sciences of the United States of America",
"author": [
{
"family": "Watanabe",
"given": "Noriya"
},
{
"family": "Yoshida",
"given": "Shinichi"
},
{
"family": "Keerativittayayut",
"given": "Ruedeerat"
},
{
"family": "Takeda",
"given": "Masaki"
}
],
"container-title-short": "Proc Natl Acad Sci U S A",
"volume": "123",
"issue": "13",
"page": "e2524075123",
"DOI": "10.1073/pnas.2524075123",
"PMID": "41880572",
"PMCID": "PMC13037921",
"ISSN": "0027-8424",
"publisher": "National Academy of Sciences",
"URL": "https://doi.org/10.1073/pnas.2524075123",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
25
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1126/sciadv.adz4143 [code]
Dynamic brain mechanisms supporting salient memories under cortisol.
Journal: Science advances
In common: 7 references
[2] doi:10.3389/fphys.2022.752900 [code]
Habituation of the stress response multiplex to repeated cold pressor exposure.
Journal: Frontiers in physiology
In common: ICLabel, EEGLAB, EEG, 3 references
[3] doi:10.1016/j.neuroimage.2025.121508 [code]
Functional transition rate of the default mode network is associated with self-reported resilience.
Journal: NeuroImage
In common: systems, 6 references
[4] doi:10.1089/brain.2021.0189 [code]
Nx4 Modulated Resting-State Functional Connectivity Between Amygdala and Prefrontal Cortex in a Placebo-Controlled, Crossover Trial.
Journal: Brain connectivity
In common: CONN, systems, 3 references
[5] doi:10.3758/s13415-025-01304-1
Making decisions immediately post-stress: Evidence for dorsolateral prefrontal cortex involvement with an fMRI study.
Journal: Cognitive, affective & behavioral neuroscience
In common: 5 references
[6] doi:10.1038/s41380-025-02897-2
Resting-state fMRI reveals altered functional connectivity associated with resilience and susceptibility to chronic social defeat stress in mouse brain.
Journal: Molecular psychiatry
In common: 5 references
[7] doi:10.1162/imag_a_00287 [code]
Functional MRI signals exhibit stronger covariation with peripheral autonomic measures as vigilance decreases.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: systems, 5 references
[8] doi:10.1073/pnas.2505965122 [code]
Trauma-predictive brain network connectivity adaptively responds to mild acute stress.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: systems, 4 references
[9] doi:10.1016/j.neuroimage.2025.121311 [code]
Investigating the neurovascular coupling across multiple motor execution and imagery conditions: a whole-brain EEG-informed fMRI analysis.
Journal: NeuroImage
In common: ICLabel, EEGLAB, systems, EEG, 2 references
[10] doi:10.1038/s41467-025-64989-5 [code]
Cortical hierarchy underlying homeostatic sleep pressure alleviation.
Journal: Nature communications
In common: ICLabel, EEGLAB, EEG, 2 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.1073/pnas.2524075123.svg)](https://openscicode.org/badge/doi/10.1073/pnas.2524075123)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1073/pnas.2524075123.svg
   :target: https://openscicode.org/badge/doi/10.1073/pnas.2524075123
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1073/pnas.2524075123"><img src="https://openscicode.org/badge/doi/10.1073/pnas.2524075123.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

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)

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.