Skip to content

Commit

Permalink
#1689 ps_LST_tlv: avoid listing the path
Browse files Browse the repository at this point in the history
  • Loading branch information
HenkMutsaerts committed Apr 29, 2024
1 parent 7e2ad13 commit 40c07e4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
22 changes: 19 additions & 3 deletions External/README_SPM.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ DESCRIPTION (see #1324):
Added *.mexmaca64
Changed Makefile, Makefile.var, spm_platform



*********************************************************************************************************
MAP CHANGES
DATE+Name: 2021-07-07 HM
DESCRIPTION:
/External/SPMmodified/toolbox/cat12/templates_volumes/cat_wmh_miccai2017.nii
Was cleaned up (lower slices contained some messy low probabilities)



*********************************************************************************************************
ASL-SPECIFIC HACKS

Expand All @@ -35,6 +39,8 @@ ADDED:
Line 1: added the extra option bZigzag
Line 117,137,158,181,571: added extra routines for the Zigzag



*********************************************************************************************************
COST FUNCTION MASKING FOR LESIONS

Expand All @@ -44,6 +50,8 @@ hotfix minor bug in loading NIfTIs containing lesion masks in CAT12 #28
FILE:
cat_run_job.m at 577



*********************************************************************************************************
ENABLING LOW QUALITY MODE (FOR QUICK TESTING, RUN EVERYTHING BUT WITH LOWER ITERATIONS AND/OR SPATIAL RESOLUTION)

Expand Down Expand Up @@ -81,6 +89,8 @@ External/SPMmodified/toolbox/LST/ps_LST_lpa.m
218: if xasl_quality is set to 0, load ps_LST_lpa_preproc_default_LowQ.m instead of ps_LST_lpa_preproc_default.m,
likewise if xasl_quality is set to 2 (when WMH_SEGM pre-exists), load ps_LST_lpa_preproc_default_UltraLowQ.m



*********************************************************************************************************
REDUCE CODE SIZE

Expand Down Expand Up @@ -145,6 +155,7 @@ Line 132 - removed 'EEG'
Line 135 - removed 'spm_cfg_eeg'



*********************************************************************************************************
IMAGE PROCESSING IMPROVEMENT

Expand Down Expand Up @@ -333,6 +344,8 @@ spm_smoothto8bit.m 57
External/SPMmodified/toolbox/OldSeg/spm_maff.m line 106
toolbox/cat12/cat_vol_correct_slice_scaling line 425



*********************************************************************************************************
BIDS/JSON

Expand Down Expand Up @@ -388,9 +401,15 @@ FILE:
spm_jsonread.c at line 588 and all lines with mexErrMsgTxt, mexWarnMsgTxt, and mexPrintf.
NOTE: Since version 1.11.0, spm_jsonwrite and spm_jsonread are not used anymore



*********************************************************************************************************
OTHER CODE HACKS

DATE+NAME: 2024-04-28 HM (issue #1689)
DESCRIPTION: avoid listing the path, which avoids seeing a comma in a path as delimiter
FILE: ps_LST_tlv, 147 & 187

DATE+NAME: 2021-03-10 MS (issue #408)
DESCRIPTION: Missing version_matlab field in compiled xASL.
FILE: cat_main_reportstr, 50-54
Expand Down Expand Up @@ -550,9 +569,6 @@ cat_main_register.m, lines 341, 554, 560, 687, 861, 865, 1168






*********************************************************************************************************
REDUCE GRAPHICAL OUTPUT & NON-SPECIFIC WARNINGS. ADD TRACKING PROGRESS AT COMMAND LINE: xASL_TrackProgress

Expand Down
4 changes: 2 additions & 2 deletions External/SPMmodified/toolbox/LST/ps_LST_tlv.m
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
% Create TLV file
nameTLV = ['LST_tlv_', num2str(thr), '_', ps_create_timestamp, '.csv'];
fileID = fopen(nameTLV, 'wt');
fprintf(fileID, 'Path,FileName,LGA,TLV,N\n');
fprintf(fileID, 'FileName,LGA,TLV,N\n');

if ~void
strout = 'Results are written to';
Expand Down Expand Up @@ -187,7 +187,7 @@
else
les_size = [];
end
fprintf(fileID, [pth, ',', name, ext, ',', num2str(lga(i)), ',', ...
fprintf(fileID, [name, ext, ',', num2str(lga(i)), ',', ...
num2str(round(sum(les_size) * 1000) / 1000), ',', num2str(numel(les_size)), '\n']);


Expand Down

0 comments on commit 40c07e4

Please sign in to comment.