Meningeal CSF transport varies across parasagittal dura subregions with age in humans.
The 4 matches · 1 of them tie a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
- [1] § Methods › Imaging ↔ ASL_main.m, lines 42–103 · score 0.60 · SLIP series, 3000 ms, volumes, M0, slices, TI
- [2] § Results ↔ asl_subroutines/aslFitParams.m, the whole file · a weak match · score 0.55 · full width, Peak heights, FWHM, AUC, TTP, curve
- [3] § Results ↔ ASL_main.m, lines 42–103 · score 0.51 · subtraction maps, 3000 ms, zoomed, overlays, colormaps, M0
- [4] § Results ↔ asl_subroutines/aslFit.m, lines 209–293 · score 0.51 · bi component, TTPG, R2, FWHM, AUC, PH
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
MATLAB · 719 lines · 24 KB · MIT · 2 matches
- %% ========================================================================
- % Top level code for perfusion anlysis
- %
- %==========================================================================
- %
- % 05/2025 - VM for Canon ([email hidden]) v2.0
- %
- %==========================================================================
- %
- % expected folder strucutre:
- %
- % ---|Subject
- % |---pre/post/postN folders
- % required|--- roi [dicom folder] + (Horos roi *.csv file)
- % required|--- tslip [dicom folderS]
- % optional|--- Control [dicom folderS] if opp. tag (MT cancel)
- % optional|--- M0 [dicom folder] optional
- %
- % use ExportRoi Plugin from:
- % https://horosproject.org/horos-content/plugins/horos/ExportROIs/
- %
- %% ========================================================================
- clear all
- clc
- tic
- start_directory=pwd;
- % SUBJECTS list
- list = dir3();
- if exist('progress.mat','file')
- load('progress.mat')
- if ii>numel(list)
- disp('All data processed!');
- return
- end
- else
- %% Define parameters
- %--------------------------------------------------------------------------
- param.acq_type = 'bright'; % bright (NonSelect+Select); dark (Select)
- %param.acq_dim = '2d'; % 2d (single T-SLIP series with multiple TI)
- param.acq_dim = '3d'; % 3d (every TI separate series)
- %param.TI = [1000, 500];
- param.dicomScale = true; % MUST BE ON
- param.perVoxelCalc = true; % more prone to error
- param.T1 = 2000; % fixed CSF T1 for bi-component fit:
- % Blood use 1500, CSF use 3000
- param.registration = 'all'; % rigid body registration to M0:
- % extreme (myocardium)
- % all all images to M0
- % auto automatic
- % off
- %------acquisition with fixed RO-------------------------------------------
- param.fixedRO = false; % BBIRprep WIP1
- %param.bpm = 70; % heart rate
- %--------------------------------------------------------------------------
- param.filter_median3D = true; % for 3D volume median filter across slices
- param.filter_median2D = true; % additional median for slice of interest
- param.filter_sd = true; % doubleSD window for per ROI average
- param.noiseM0 = false; % dont normalize to noise
- param.absValue = false; % subtraction as absolute value
- param.nullPointFilter = [false,750];% remove short TI [bool, filter]
- param.filter_lowpass = 'lowPass'; % 'lowPass' 'movinAver' 'off'
- param.fitplot = {'bi','gm','biC'}; % 'gkm','gm', 'gmf', 'gs', 'bi' list them in cell
- %--------------------------------------------------------------------------
- % average across slices in 3D volume ONLY FOR LARGE PERFUSION VOLUME
- param.averageSlices = false;
- %--------------------------------------------------------------------------
- % to print TEs on colormap, use "other" for SeriesID
- param.dataType = 'regular';
- % use false for NIH (Arial font) and true (latex) for publications
- param.latex = true;
- %--------------------------------------------------------------------------
- % colormaps
- % varibles with two values 1 - plot/dont plot; 2 - zoom to roi / full FOV
- param.visible = false; % dont show figures, plot silently
- param.allslices = false; % if 3D colormaps for all slices
- param.paleteview = [false,false]; % does all TIs
- param.subtractionMap = [false,false]; % abs(ON-OFF)
- param.montageALL = [false,false]; % grayscale: ON, OFF, Control
- param.sir2Dcmap = [false,true]; % 2D SIR
- param.sir2DcmapFull = false; % to overlay entire FOV
- param.contrastNorm = true; % enchance contrast, not true Signal
- %--------------------------------------------------------------------------
- param.SIRLim = 100; %default limit for plots
- param.SIRClim = 100; %default limit for colormaps
- param.TILim = 5000; %custom x axis limits
- %--------------------------------------------------------------------------
- % only for advanced user, keep these as is
- param.nonAlternate = false; % if control is acquired sep.
- param.advancedGKM=false; % advanced GKM Fit
- % Check parameters
- param = tslipParamCheck(param);
- if isfield(param,'TI')
- param.TI0=param.TI; % for 2D
- end
- %% PROCESSING
- %==========================================================================
- % structure with results: appended at each subject
- ResultM = [];
- ResultP = [];
- ii=1;
- jj=1;
- end
- %************************************************************ LOOP: SUBJECT
- for i=ii:numel(list)
- cd(list(i,1).name)
- % GROUP/CATEGORY list (such as activity/pre-post/etc)
- list2 = dir3();
- %**************************************************LOOP: GROUP/CATEGORY
- for j=jj:numel(list2)
- if jj==1
- RM=[];
- RP=[];
- end
- % Subject/Study info
- Subject.ID = list(i,1).name;
- Subject.study = list2(j,1).name;
- q=1; % study results index
- cd(list2(j,1).name)
- %----------------------------------------------------- START: read data
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Start: read ROI
- cd roi
- csv=dir('*.csv');
- fname = [list(i,1).name,' ',list2(j,1).name,];
- ROI = horos2matlabTSLIP(csv,fname,true,param);
- % Find the indices of all 1s in the array create combined Full
- ROI.maskF = sum(~isnan(ROI.maskIm), 3) > 0;
- [row, col] = find(ROI.maskF == 1);
- % Find the minimum and maximum row and column indices
- n=10; %padding
- ROI.mtop = max(min(row) - n, 1);
- ROI.mbottom = min(max(row) + n, size(ROI.maskF, 1));
- ROI.mleft = max(min(col) - n, 1);
- ROI.mright = min(max(col) + n, size(ROI.maskF, 2));
- cd .. % out of 'roi'
- % do MICO for MPRAGE or T1w (MPRAGE is priority)
- if isfolder('MPRAGE')
- cd 'MPRAGE'
- MPRAGE2FASE('MPRAGE','FASE2D')
- seriesPath=fullfile(pwd,'Image4Segmentation');
- evalc('R = aslMICO(seriesPath, param, true);');
- if ~isempty(R)
- ROI = mergeASLroi(ROI, R);
- end
- cd ..
- elseif ~isfolder('MPRAGE') && isfolder('T1w')
- seriesPath=fullfile(pwd,'T1w');
- evalc('R = aslMICO(seriesPath, param, true);');
- if ~isempty(R)
- ROI = mergeASLroi(ROI, R);
- end
- end
- clearvars csv fname n row col
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End: read ROI
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Start: read M0
- if exist('M0','dir')
- [M0,VM0]=readTslip('M0',ROI,param);
- if ~isempty(VM0) && strcmp(param.acq_dim,'3d') %only created for 3d
- V.M0 = VM0.On;
- end
- if isempty(VM0) && strcmp(param.acq_dim,'2d') %only created for 3d
- M0=M0(:,:,1);
- end
- % M0 should only have single series
- if isfield(M0,'Ctrl') && isfield(M0,'Ctrl_roi') ...
- && ~isempty([M0.Ctrl]) && ~isempty(Ctrl_roi)
- M0.On = M0.Ctrl;
- M0.On_roi = M0.Ctrl_roi;
- M0=rmfield(M0,'Ctrl');
- M0=rmfield(M0,'Ctrl_roi');
- end
- clearvars VM0
- end
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End: read M0
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Start: read CONTROL
- if exist('Control','dir')
- [Control,VC]=readTslip('control',ROI,param);
- if ~isempty(VC)&& strcmp(param.acq_dim,'3d') %only created for 3d
- V.Ctrl=VC.On;
- end
- % control should only have ON series
- if isfield(Control,'Ctrl') && isfield(Control,'Ctrl_roi')
- Control=rmfield(Control,'Ctrl');
- Control=rmfield(Control,'Ctrl_roi');
- end
- clearvars VC
- end
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End: read Control
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Start: read TSLIP
- if exist('tslip','dir')
- [TSlip,VT,param]=readTslip('tslip',ROI,param);
- if ~isempty(VT)&& strcmp(param.acq_dim,'3d') %only created for 3d
- V.On=VT.On;
- if isfield(VT,'Ctrl')
- V.Ctrl=VT.Ctrl;
- end
- if ~isfield(V,'M0') && strcmp(param.acq_type,'bright') && ...
- strcmp(param.acq_dim,'3d') && ~isfield(VT,'Ctrl')
- V.M0 = V.Ctrl(:,:,:,end);
- param.nonAlternate=true;
- elseif ~isfield(V,'M0') && strcmp(param.acq_type,'dark') && ...
- strcmp(param.acq_dim,'3d') && ~isfield(VT,'Ctrl')
- V.M0 = V.Ctrl;
- param.nonAlternate=true;
- elseif ~isfield(V,'M0') && strcmp(param.acq_type,'bright') && ...
- strcmp(param.acq_dim,'3d')
- V.M0 = VT.Ctrl(:,:,:,end);
- elseif ~isfield(V,'M0') && strcmp(param.acq_type,'dark') && ...
- strcmp(param.acq_dim,'3d')
- V.M0 = VT.Ctrl;
- end
- end
- clearvars VT
- else
- error('Data should have tslip folder');
- end
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End: read TSLIP
- %------------------------------------------------------- END: read data
- nTIs=numel(TSlip);
- %------------------------------------------------ START: ararys for SIR
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Start: denominator
- if exist('M0','var')
- A.M0=TslipStuct2Array(M0,'On',param.dicomScale);
- m0=squeeze(TslipStuct2Array(M0,'On_roi',...
- param.dicomScale));
- elseif ~exist('M0','var') && strcmp(param.acq_dim,'3d') ...
- && ~param.nonAlternate
- A.M0=repmat(TslipStuct2Array(TSlip(end),'Ctrl',param.dicomScale),[1,1,nTIs]);
- m0=squeeze(TslipStuct2Array(TSlip(end),'Ctrl_roi',...
- param.dicomScale));
- elseif ~exist('M0','var') && strcmp(param.acq_dim,'3d') ...
- && param.nonAlternate
- A.M0=repmat(TslipStuct2Array(Control(end),'On',param.dicomScale),[1,1,nTIs]);
- m0=squeeze(TslipStuct2Array(TSlip(end),'On_roi',...
- param.dicomScale));
- elseif ~exist('M0','var') && strcmp(param.acq_dim,'2d')
- A.M0=repmat(TslipStuct2Array(Control(end),'On',param.dicomScale),[1,1,nTIs]);
- m0=squeeze(TslipStuct2Array(TSlip(end),'On_roi',...
- param.dicomScale));
- end
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End: denominator
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Start: On
- A.On=TslipStuct2Array(TSlip,'On',param.dicomScale);
- on=squeeze(TslipStuct2Array(TSlip,'On_roi',param.dicomScale));
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End: On
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Start: Control
- if exist('Control','var')
- A.Ctrl=TslipStuct2Array(Control,'On',param.dicomScale);
- ctrl=squeeze(TslipStuct2Array(Control,'On_roi',param.dicomScale));
- else
- A.Ctrl=TslipStuct2Array(TSlip,'Ctrl',param.dicomScale);
- ctrl=squeeze(TslipStuct2Array(TSlip,'Ctrl_roi',...
- param.dicomScale));
- end
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End: Control
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Start: check m0
- if size(m0,2)~=size(on,2)
- m0=repmat(m0,[1,size(on,2)]);
- end
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End: check m0
- %-------------------------------------------------- END: ararys for SIR
- %%-------------------------------------check if pre-null point to be removed
- % check dims of M0 and m0 cause sometimes they are acquired seperat;y
- % with less dT
- if size(A.M0,3)>1 && size(A.M0,3) ~= size(A.On,3)
- A.M0=A.M0(:,:,1);
- end
- if min(size(m0))>1
- if size(m0, 2) > 1 && size(m0,2) ~= size(on,2)
- m0=m0(:,1);
- end
- else
- if size(m0, 1) > 1 && size(m0,1) ~= size(on,1)
- m0=m0(1);
- end
- end
- if param.nullPointFilter(1)
- % Get TI values from the structure and find indices below the threshold
- TI_values = [TSlip.TI];
- idx = TI_values < param.nullPointFilter(2); % Logical indexing is more efficient than `find`
- % Conditional checks before modifying arrays to avoid errors
- if exist('Control','var')
- Control(idx) = [];
- end
- if exist('M0', 'var') && size(M0, 2) > 1 && size(M0, 2)== size(TSlip, 2)
- M0(idx) = [];
- end
- % Remove entries based on identified indices
- TSlip(idx) = [];
- if min(size(m0))>1
- if size(m0, 2) > 1 && size(m0,2) == size(on,2)
- m0(:, idx) = [];
- else
- m0=m0(:,1);
- end
- elseif size(ROI.name,1)>1 && size(m0,2) == 1
- else
- if size(m0, 1) > 1 && size(m0,1) == size(on,1)
- m0(idx) = [];
- else
- m0=m0(1);
- end
- end
- if size(size(on))<2
- on(idx) = [];
- ctrl(idx) = [];
- else
- on(:, idx) = [];
- ctrl(:, idx) = [];
- end
- if isfield(A, 'M0') && size(A.M0,3)==size(A.On,3)
- A.M0(:, :, idx) = [];
- else
- end
- % Update fields within structure A
- A.On(:, :, idx) = [];
- A.Ctrl(:, :, idx) = [];
- % Check acquisition dimension and update variables accordingly
- if strcmp(param.acq_dim, '3d')
- V.On(:, :, :, idx) = [];
- V.Ctrl(:, :, :, idx) = [];
- if isfield(V, 'M0') && size(V.M0, 4) > 1
- V.M0(:, :, :, idx) = [];
- end
- elseif strcmp(param.acq_dim, '2d')
- param.TI(1) = TI_values(1);
- end
- end
- nTIs=max(size([TSlip.TI]));
- clearvars idx TI_values
- %%-------------------------------------------------------------------------
- if ~strcmpi(param.registration,'off')
- A=ASL_imReg(A, param);
- end
- %-------------------------------------------------- START: get noise
- %masks for colormaps
- if strcmp(param.acq_dim,'3d') && ~isempty(V)
- ROI.mask=UTEsMask(mat2gray(max(V.Ctrl,[],[3,4])),0.02);
- if param.noiseM0
- ROI.noiseLevel = std(V.On(V.On.*abs(ROI.mask-1) ~= 0), 0,"all", "omitnan");
- temp = ones(size(V.On));
- temp(abs(V.On-V.Ctrl) < ROI.noiseLevel/sqrt(2)) = NaN;
- ROI.Noise=temp.*ROI.mask;
- end
- else
- ROI.mask=UTEsMask(mat2gray(max(A.Ctrl,[],[3,4])),0.02);
- if param.noiseM0
- ROI.noiseLevel = std(A.On(A.On.*abs(ROI.mask-1) ~= 0),0, "all", "omitnan");
- temp = ones(size(A.On));
- temp(abs(A.On-A.Ctrl) < ROI.noiseLevel/sqrt(2)) = NaN;
- ROI.Noise=temp.*ROI.mask;
- end
- end
- % mean recalcs with Noise mask
- if param.noiseM0
- on=squeeze(mean(permute(repmat(A.On.*ROI.Noise,...
- [1,1,1,size(ROI.maskIm,3)]),[1,2,4,3]).*repmat...
- (ROI.maskIm,[1,1,1,size(A.On,3)]),[1,2],'omitnan'));
- ctrl=squeeze(mean(permute(repmat(A.Ctrl.*ROI.Noise,...
- [1,1,1,size(ROI.maskIm,3)]),[1,2,4,3]).*repmat...
- (ROI.maskIm,[1,1,1,size(A.Ctrl,3)]),[1,2],'omitnan'));
- m0=squeeze(mean(permute(repmat(A.M0.*ROI.Noise,...
- [1,1,1,size(ROI.maskIm,3)]),[1,2,4,3]).*repmat...
- (ROI.maskIm,[1,1,1,size(A.M0,3)]),[1,2],'omitnan'));
- on(isnan(on))=0;
- ctrl(isnan(ctrl))=0;
- m0(isnan(m0))=0;
- on(isinf(on))=0;
- ctrl(isinf(ctrl))=0;
- m0(isinf(m0))=0;
- end
- clearvars temp
- %-------------------------------------------------- END: get noise
- %------------------------------------------------- START: calculate SIR
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Start: full array
- if strcmp(param.acq_dim,'3d') && ~isempty(V)
- tmpOn = V.On;
- tmpCtrl = V.Ctrl;
- tmpM0 = V.M0;
- if param.noiseM0
- tmpM0=tmpM0.*ROI.Noise;
- end
- if param.filter_median3D
- tmpOn = arrayfun(@(i) medfilt3(tmpOn(:,:,:,i)), ...
- 1:size(tmpOn,4), 'UniformOutput', false);
- tmpOn = cat(4, tmpOn{:});
- tmpCtrl = arrayfun(@(i) medfilt3(tmpCtrl(:,:,:,i)), ...
- 1:size(tmpCtrl,4), 'UniformOutput', false);
- tmpCtrl = cat(4, tmpCtrl{:});
- tmpM0 = arrayfun(@(i) medfilt3(tmpM0(:,:,:,i)), ...
- 1:size(tmpM0,4), 'UniformOutput', false);
- tmpM0 = cat(4, tmpM0{:});
- end
- if param.absValue
- V.SUBT=abs(tmpOn-tmpCtrl);
- elseif ~param.absValue && strcmp(param.acq_type,'bright')
- V.SUBT=tmpOn-tmpCtrl;
- V.SUBT(V.SUBT<0)=0;
- else
- V.SUBT=tmpCtrl-tmpOn;
- V.SUBT(V.SUBT<0)=0;
- end
- if param.noiseM0
- V.SUBT=V.SUBT.*ROI.Noise;
- end
- V.SIR=V.SUBT./tmpM0;
- V.SUBT(isinf(V.SUBT))=NaN;
- V.SIR(isinf(V.SIR))=NaN;
- clearvars tmp tmpOn tmpCtrl tmpM0
- end
- if param.filter_median2D
- % Preallocate arrays with the same size as A.On
- tmpOn = zeros(size(A.On));
- tmpCtrl = tmpOn;
- % Check if A.M0 has multiple slices and preallocate accordingly
- if size(A.M0, 3) > 1
- tmpM0 = zeros(size(A.M0));
- end
- % Apply median filtering across all time points (nTIs)
- for t = 1:nTIs
- tmpOn(:, :, t) = medfilt2(A.On(:, :, t));
- tmpCtrl(:, :, t) = medfilt2(A.Ctrl(:, :, t));
- if size(A.M0, 3) > 1
- tmpM0(:, :, t) = medfilt2(A.M0(:, :, t));
- end
- end
- % Handle the case where A.M0 has only one slice
- if size(A.M0, 3) == 1
- tmpM0 = medfilt2(A.M0);
- end
- else
- tmpOn=A.On;
- tmpCtrl=A.Ctrl;
- tmpM0=A.M0;
- end
- if param.absValue
- A.SUBT=abs(tmpOn-tmpCtrl);
- elseif ~param.absValue && strcmp(param.acq_type,'bright')
- A.SUBT=tmpOn-tmpCtrl;
- A.SUBT(A.SUBT<0)=0;
- else
- A.SUBT=tmpCtrl-tmpOn;
- A.SUBT(A.SUBT<0)=0;
- end
- if param.noiseM0
- A.SUBT = A.SUBT.*ROI.Noise;
- end
- A.SIR=A.SUBT./tmpM0;
- A.SUBT(isinf(A.SUBT))=NaN;
- A.SIR(isinf(A.SIR))=NaN;
- clearvars tmpOn tmpCtrl tmpM0 t
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End: full array
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Start: roi quantification
- if param.absValue
- SIR.mean=abs(on-ctrl)./m0;
- elseif ~param.absValue && strcmp(param.acq_type,'bright')
- temp=(on-ctrl)./m0;
- temp(temp<0)=0;
- SIR.mean=temp;
- else
- temp=(ctrl-on)./m0;
- temp(temp<0)=0;
- SIR.mean=temp;
- end
- clearvars on ctrl m0 tmp
- if param.perVoxelCalc
- pp=[];
- for m=1:size(ROI.maskIm,3)
- tmp=A.SIR.*repmat(ROI.maskIm(:,:,m),[1,1,nTIs]);
- tmp=(mean(tmp,[1,2],'omitnan'));
- pp=cat(1,pp,tmp);
- end
- SIR.pp=squeeze(pp);
- end
- clearvars tmp pp m
- %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End: roi quantification
- %--------------------------------------------------- END: calculate SIR
- %----------------------------------------------------------- START: fit
- if param.fixedRO
- if param.perVoxelCalc
- [rM,rP]=aslFixedRO(SIR,[TSlip.TI],Subject,ROI,param,A.M0(:,:,1));
- else
- rM=aslFixedRO(SIR,[TSlip.TI],Subject,ROI,param,A.M0(:,:,1));
- end
- else
- if param.perVoxelCalc
- [rM,rP]=aslFit(SIR,[TSlip.TI],Subject,ROI,param,A.M0(:,:,1));
- else
- rM=aslFit(SIR,[TSlip.TI],Subject,ROI,param,A.M0(:,:,1));
- end
- end
- %------------------------------------------------------------- END: fit
- cd ..
- %----------------------------------------------------- START: colormaps
- mkdir('colormaps')
- cd('colormaps')
- if strcmp(param.acq_dim, '3d') && ~isempty(V) && param.allslices
- tempSUBT = mat2gray(V.SUBT .* ROI.mask);
- slice_indices = 1:size(V.On, 3);
- data_source = V;
- else
- slice_indices = ROI.slice_number;
- data_source = A;
- end
- for s = slice_indices
- if strcmp(param.acq_dim, '3d') && ~isempty(V) && param.allslices
- B = structfun(@(field) squeeze(field(:,:,s,:)), V,...
- 'UniformOutput', false);
- B.SUBT = squeeze(tempSUBT(:,:,s,:));
- else
- B = A;
- end
- operations = {
- 'palette', @paleteCMap, param.paleteview(1);
- 'montage', @tslipmontage, param.montageALL(1);
- 'subtraction', @(B, ROI, TI, s, param) perfusionCMap(B, ...
- ROI, TI, s, param, 'SUBT'), param.subtractionMap(1);
- 'SIR', @(B, ROI, TI, s, param) perfusionCMap(B, ROI, TI, ...
- s, param, 'SIR'), param.sir2Dcmap(1);
- };
- for x = 1:size(operations, 1)
- if operations{x, 3}
- mkdir(operations{x, 1});
- cd(operations{x, 1});
- operations{x, 2}(B, ROI, [TSlip.TI], s, param);
- cd ..;
- end
- end
- clearvars B x operations slice_indices s data_source
- end
- cd ..
- %------------------------------------------------------- END: colormaps
- if param.perVoxelCalc
- RM=[RM,rM];
- RP=[RP,rP];
- clearvars rM rP
- ii=i;
- jj=j+1;
- save([start_directory,'/progress.mat'],'ResultM','ResultP',...
- 'RM','RP','ii','jj','list','list2','param')
- else
- RM=[RM,rM];
- clearvars rM
- ii=i;
- jj=j+1;
- save([start_directory,'/progress.mat'],'ResultM','RM','ii','jj',...
- 'list','list2','param')
- end
- cd ..
- end
- %**************************************************LOOP: GROUP/CATEGORY
- if param.perVoxelCalc
- ResultM=[ResultM,RM];
- ResultP=[ResultP,RP];
- clearvars RM RP
- ii=i+1;
- jj=1;
- save([start_directory,'/progress.mat'],'ResultM','ResultP','ii','jj',...
- 'list','list2','param')
- else
- ResultM=[ResultM,RM];
- clearvars RM
- ii=i+1;
- jj=1;
- save([start_directory,'/progress.mat'],'ResultM','ii','jj',...
- 'list','list2','param')
- end
- cd ..
- end
- %************************************************************ LOOP: SUBJECT
- data_directory=pwd;
- folder_results = ['results_', char(datetime('today'), 'yyMMdd')];
- mkdir(folder_results);
- movePDFs(data_directory, folder_results)
- cd(folder_results)
- if param.perVoxelCalc
- aslResults2XLS(ResultM, 'ResultMean.xlsx',param)
- aslResults2XLS(ResultP, 'ResultPP.xlsx',param)
- save('results.mat', 'ResultM','ResultP')
- else
- aslResults2XLS(ResultM, 'ResultMean.xlsx',param)
- save('results.mat', 'ResultM')
- end
- toc
ASL_main.m at commit 3c137e3, under MIT · at the source
Overview
- Department of Radiology, University of California San Diego, La Jolla, CA, USA
- Department of Radiology, Korea University Guro Hospital, Seoul, Republic of Korea
- Department of Radiology, Juntendo University, Tokyo, Japan
Abstract
Cerebrospinal fluid (CSF) transport along meningeal pathways contributes to brain fluid homeostasis and is thought to change with aging, yet quantitative, region-resolved measurements across lifespan remain limited. We hypothesized that meningeal CSF transport dynamics exhibit region-specific age associations rather than uniform decline. We applied non-contrast time-spatial labeling inversion pulse (Time-SLIP) MRI combined with a bi-component analytical model to characterize CSF transport dynamics in a healthy, activity-controlled cohort of 64 adults aged 19–86 years. Signal increase ratio time courses were decomposed into a fast Gaussian bulk-displacement and a slower Γ-variate perfusion-like component. Linear mixed-effects models were used to assess regional and age-related effects. Model fits were robust across all participants (R2 = 0.97). CSF transport metrics differed significantly across parasagittal dura subregions and the superior sagittal sinus. Age associations were heterogeneous: the perfusion-like component declined with age in upper parasagittal dura, increased in lower parasagittal regions, and remained relatively stable within the superior sagittal sinus. Additional timing and amplitude parameters exhibited region-specific age trajectories. These findings demonstrate regionally heterogeneous aging effects on meningeal CSF transport dynamics and suggest age-related redistribution rather than uniform decline, providing a noninvasive framework for assessing physiological remodeling of CSF transport with aging.
Reproduced under the paper's license (CC BY-NC), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 4 matches between paragraphs and lines of code.
vmalis/TimeSLIP-CSF-transport
3c137e3f5ba114855c1a7bbee1ec12c2bd81249e, 21 January 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
70 files
- ASL_main.m, MATLAB, 719 lines, 2 matches
- asl_subroutines/
ASL_imReg.m , MATLAB, 206 lines - asl_subroutines/
MPRAGE2FASE.m , MATLAB, 155 lines - asl_subroutines/
TslipStuct2Array.m , MATLAB, 24 lines - asl_subroutines/
arraySDfilter.m , MATLAB, 43 lines - asl_subroutines/
aslCombinedFit2.m , MATLAB, 96 lines - asl_subroutines/
aslCombinedFit3.m , MATLAB, 260 lines - asl_subroutines/
aslFit.m , MATLAB, 514 lines, 1 match - asl_subroutines/
aslFitParams.m , MATLAB, 17 lines, 1 match - asl_subroutines/
aslFitPlot.m , MATLAB, 267 lines - asl_subroutines/
aslGKMFit.m , MATLAB, 113 lines - asl_subroutines/
aslGKMFit3.m , MATLAB, 129 lines - asl_subroutines/
aslGammaFitCSF.m , MATLAB, 151 lines - asl_subroutines/
aslGammaFitCSF2.m , MATLAB, 110 lines - asl_subroutines/
aslGaussianFit.m , MATLAB, 55 lines - asl_subroutines/
aslGkmGaussFit.m , MATLAB, 51 lines - asl_subroutines/
aslLowPass.m , MATLAB, 60 lines - asl_subroutines/
aslMICO.m , MATLAB, 73 lines - asl_subroutines/
aslMovinAver.m , MATLAB, 36 lines - asl_subroutines/
aslRawPlot.m , MATLAB, 166 lines - asl_subroutines/
aslResults2XLS.m , MATLAB, 48 lines - asl_subroutines/
gkm_numeric.m , MATLAB, 58 lines - asl_subroutines/
mergeASLroi.m , MATLAB, 116 lines - asl_subroutines/
paleteCMap.m , MATLAB, 242 lines - asl_subroutines/
perfusionCMap.m , MATLAB, 271 lines - asl_subroutines/
readTslip.m , MATLAB, 241 lines - asl_subroutines/
tslipParamCheck.m , MATLAB, 131 lines - asl_subroutines/
tslipmontage.m , MATLAB, 170 lines - subroutines/
UTEsMask.m , MATLAB, 53 lines - subroutines/
alphamask.m , MATLAB, 39 lines - subroutines/
aslFixedRO.m , MATLAB, 150 lines - subroutines/
cropAndResizeImage.m , MATLAB, 104 lines - subroutines/
dicom2struct_canon.m , MATLAB, 63 lines - subroutines/
dicomCanonScaling.m , MATLAB, 64 lines - subroutines/
dicomSliceLocation.m , MATLAB, 59 lines - subroutines/
dir3.m , MATLAB, 36 lines - subroutines/
displayROIImage.m , MATLAB, 114 lines - subroutines/
displayROIImage2.m , MATLAB, 172 lines - subroutines/
distinguishable_colors.m , MATLAB, 147 lines - subroutines/
export_fig-3.46/ , Java, 38 linesImageSelection.java - subroutines/
export_fig-3.46/ , MATLAB, 197 linesappend_pdfs.m - subroutines/
export_fig-3.46/ , MATLAB, 59 linescopyfig.m - subroutines/
export_fig-3.46/ , MATLAB, 161 linescrop_borders.m - subroutines/
export_fig-3.46/ , MATLAB, 319 lineseps2pdf.m - subroutines/
export_fig-3.46/ , MATLAB, 3,181 linesexport_fig.m - subroutines/
export_fig-3.46/ , MATLAB, 151 linesfix_lines.m - subroutines/
export_fig-3.46/ , MATLAB, 208 linesghostscript.m - subroutines/
export_fig-3.46/ , MATLAB, 53 lineshyperlink.m - subroutines/
export_fig-3.46/ , MATLAB, 205 linesim2gif.m - subroutines/
export_fig-3.46/ , MATLAB, 175 linesisolate_axes.m - subroutines/
export_fig-3.46/ , MATLAB, 55 linespdf2eps.m - subroutines/
export_fig-3.46/ , MATLAB, 195 linespdftops.m - subroutines/
export_fig-3.46/ , MATLAB, 384 linesprint2array.m - subroutines/
export_fig-3.46/ , MATLAB, 698 linesprint2eps.m - subroutines/
export_fig-3.46/ , MATLAB, 37 linesread_write_entire_textfi le.m - subroutines/
export_fig-3.46/ , MATLAB, 117 linesuser_string.m - subroutines/
export_fig-3.46/ , MATLAB, 36 linesusing_hg2.m - subroutines/
export_fig-3.46/ , MATLAB, 644 linesxkcdify.m - subroutines/
flattenCell.m , MATLAB, 15 lines - subroutines/
folder_list.m , MATLAB, 32 lines - subroutines/
horos2matlabTSLIP.m , MATLAB, 130 lines - subroutines/
interppolygon.m , MATLAB, 94 lines - subroutines/
merge_dicom_TSLIP.m , MATLAB, 56 lines - subroutines/
movePDFs.m , MATLAB, 43 lines - subroutines/
natsort.m , MATLAB, 404 lines - subroutines/
natsortfiles.m , MATLAB, 296 lines - subroutines/
plot_ecg_wave.m , MATLAB, 236 lines - subroutines/
sortStruct.m , MATLAB, 48 lines - LICENSE, License, 21 lines
- README.md, Text, 116 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 68 scripts, each with its path and the digest of its content;
- 4 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.
Data and code availability
All analysis code used in this study is publicly available at GitHub (https://
Reproduced under the paper's license (CC BY-NC), 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, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 5 keywords, 13 MeSH terms, 3 funders, 34 references.
Cite
This paper
Malis, V., Jung, H. N., Kuwatsuru, Y., Bae, W. C., & Miyazaki, M. (2026). Meningeal CSF transport varies across parasagittal dura subregions with age in humans. Journal of cerebral blood flow and metabolism : official journal of the International Society of Cerebral Blood Flow and Metabolism, 46(9), 0271678X261455452. https://
BibTeX
@article{malis2026mening
author = {Malis, Vadim and Jung, Hye Na and Kuwatsuru, Yoshiki and Bae, Won C and Miyazaki, Mitsue},
title = {{Meningeal CSF transport varies across parasagittal dura subregions with age in humans}},
journal = {Journal of cerebral blood flow and metabolism : official journal of the International Society of Cerebral Blood Flow and Metabolism},
year = {2026},
month = jun,
volume = {46},
number = {9},
pages = {0271678X261455452},
publisher = {SAGE Publications},
issn = {0271-678X},
doi = {10.1177/
url = {https://
pmid = {42219987},
pmcid = {PMC13272186}
}
RIS
TY - JOUR
AU - Malis, Vadim
AU - Jung, Hye Na
AU - Kuwatsuru, Yoshiki
AU - Bae, Won C
AU - Miyazaki, Mitsue
TI - Meningeal CSF transport varies across parasagittal dura subregions with age in humans
T2 - Journal of cerebral blood flow and metabolism : official journal of the International Society of Cerebral Blood Flow and Metabolism
J2 - J Cereb Blood Flow Metab
PY - 2026
DA - 2026/
VL - 46
IS - 9
SP - 0271678X261455452
SN - 0271-678X
PB - SAGE Publications
DO - 10.1177/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1177/
"type": "article-journal",
"title": "Meningeal CSF transport varies across parasagittal dura subregions with age in humans",
"container-title": "Journal of cerebral blood flow and metabolism : official journal of the International Society of Cerebral Blood Flow and Metabolism",
"author": [
{
"family": "Malis",
"given": "Vadim"
},
{
"family": "Jung",
"given": "Hye Na"
},
{
"family": "Kuwatsuru",
"given": "Yoshiki"
},
{
"family": "Bae",
"given": "Won C"
},
{
"family": "Miyazaki",
"given": "Mitsue"
}
],
"container-title-short":
"volume": "46",
"issue": "9",
"page": "0271678X261455452",
"DOI": "10.1177/
"PMID": "42219987",
"PMCID": "PMC13272186",
"ISSN": "0271-678X",
"publisher": "SAGE Publications",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
1
]
]
}
}
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.1002/hbm.70602 [code]
- Neuroimaging Correlates of Post-Stroke Pain After Ischemic Stroke: Secondary Analysis of the INSPiRE-TMS Trial.Journal: Human brain mappingIn common: export_fig, Curve Fitting Toolbox, Optimization Toolbox, 2 other tools
- [2] doi:10.1038/s41586-026-10631-3 [code]
- A prognostic human brain network for diffuse midline glioma.Journal: NatureIn common: export_fig, Curve Fitting Toolbox, Optimization Toolbox, 2 other tools
- [3] doi:10.1111/ene.70678 [code]
- Who Falls After a Stroke? Evidence From a Prospective Stroke Cohort.Journal: European journal of neurologyIn common: export_fig, Curve Fitting Toolbox, Optimization Toolbox, 2 other tools
- [4] doi:10.1016/j.celrep.2026.117404 [code]
- Action and rest tremor map to distinct networks within the primary motor cortex.Journal: Cell reportsIn common: export_fig, Curve Fitting Toolbox, Optimization Toolbox, 2 other tools
- [5] doi:10.1002/ana.78206 [code]
- Multimodal Image Guidance in Subthalamic Deep Brain Stimulation for Parkinson's Disease.Journal: Annals of neurologyIn common: export_fig, Curve Fitting Toolbox, Optimization Toolbox, 2 other tools
- [6] doi:10.1523/jneurosci.2001-25.2026 [code]
- Dynamics of Dentate Gyrus Place Cells and Dentate Spikes during Spatial and Nonspatial Changes in Environments.Journal: The Journal of neuroscience : the official journal of the Society for NeuroscienceIn common: export_fig, Curve Fitting Toolbox, Optimization Toolbox, 2 other tools
- [7] doi:10.1038/s41593-026-02357-2 [code]
- Experience reorganizes content-specific memory traces in macaques.Journal: Nature neuroscienceIn common: export_fig, Curve Fitting Toolbox, Optimization Toolbox, 2 other tools
- [8] doi:10.3390/biomedicines14081670 [code]
- Limited Detectability of Network Functional Alterations in a Tauopathy Model Using Mouse Primary Cortical Cultures.Journal: BiomedicinesIn common: export_fig, Curve Fitting Toolbox, Optimization Toolbox, 2 other tools
- [9] doi:10.1038/s41467-026-75347-4 [code]
- Sleep reveals dynamics integrating and segregating movement and stimulus representations in V1.Journal: Nature communicationsIn common: export_fig, Curve Fitting Toolbox, Optimization Toolbox, 2 other tools
- [10] doi:10.1016/j.celrep.2026.117646 [code]
- Medial entorhinal-hippocampal desynchronization parallels the emergence of memory impairment in a mouse model of Alzheimer's disease pathology.Journal: Cell reportsIn common: export_fig, Curve Fitting Toolbox, Optimization Toolbox, 2 other tools
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 68 scripts, and 4 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:115f59ca7af866ae…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
