Skip to content

Commit

Permalink
Merge pull request #1338 from nipreps/fix/off-limits-interpolation
Browse files Browse the repository at this point in the history
FIX: Edge artifacts in first and last slices due to interpolation
  • Loading branch information
oesteban authored Aug 23, 2024
2 parents ca21aeb + abe2a02 commit 10cfa75
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
18 changes: 9 additions & 9 deletions mriqc/data/testdata/group_bold.tsv
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
bids_name aor aqi dummy_trs dvars_nstd dvars_std dvars_vstd efc fber fd_mean fd_num fd_perc fwhm_avg fwhm_x fwhm_y fwhm_z gcor gsr_x gsr_y size_t size_x size_y size_z snr spacing_tr spacing_x spacing_y spacing_z summary_bg_k summary_bg_mad summary_bg_mean summary_bg_median summary_bg_n summary_bg_p05 summary_bg_p95 summary_bg_stdv summary_fg_k summary_fg_mad summary_fg_mean summary_fg_median summary_fg_n summary_fg_p05 summary_fg_p95 summary_fg_stdv tsnr
sub-ds205s03_task-functionallocalizer_run-01_bold 0.006812560975609757 0.0115670556097561 0 25.1070652945679 1.097686276419753 1.0416085834567903 0.549 939.7262 0.26118389619646404 32 39.02439024390244 2.4148566666666667 2.3126025 2.6542 2.2777675 0.0530274 -0.0060755726881325245 0.05317099019885063 82 53 53 27 4.302882006355157 2.200000047683716 4.0 4.0 4.0 34.9329 6.8706 47.6781 25.0 55237.0 0.0 166.0 74.859 1.3937 141.0732 761.3085 766.0 20606.0 433.0 1043.0 178.0159 54.188138624303974
sub-ds205s03_task-view_run-01_bold 0.005475217391304348 0.013897893369565218 0 21.735744036263725 1.010356766043956 0.9669979157142857 0.5465 989.9058 0.16520736608810047 18 19.565217391304348 2.3125358333333335 2.223185 2.54445 2.1699725 0.0183059 -0.002810143167153001 0.046066656708717346 92 53 53 27 4.270553474790369 2.200000047683716 4.0 4.0 4.0 32.4062 6.9134 44.6849 25.0 54949.0 0.0 151.0 65.9059 1.6759 136.8668 773.1685 781.0 20894.0 421.0 1055.0 182.8759 53.13771811965853
sub-ds205s03_task-view_run-02_bold 0.0006215217391304349 0.010315522826086956 0 24.14205940978022 0.9597649761538458 0.8938210656043953 0.5485 943.6607 0.22854716046970905 44 47.82608695652174 2.3873583333333332 2.2945375 2.63535 2.2321875 0.328611 -0.00470705283805728 0.05208124592900276 92 53 53 27 4.292060341610993 2.200000047683716 4.0 4.0 4.0 33.8004 6.9296 46.8711 25.0 55158.0 0.0 163.0 72.0558 1.4929 140.0737 764.2329 769.0 20685.0 434.0 1045.0 179.1637 42.4139485983178
sub-ds205s07_task-functionallocalizer_run-01_bold 0.0097325 0.008122680138888888 0 22.073046106619717 1.1242277719718308 1.0418761863380284 0.5321 1003.9077 0.1550487344317312 15 20.833333333333332 2.2189575 2.116755 2.370535 2.1695825 0.0295023 -0.003530273912474513 0.0362667478621006 72 53 53 27 4.409949445356891 2.200000047683716 4.0 4.0 4.0 40.4268 6.6305 40.5373 23.0 56224.0 0.0 143.0 67.4229 1.8008 135.9876 712.2398 716.0 19619.0 415.0 952.0 162.356 65.09344540000893
sub-ds205s07_task-view_run-01_bold 0.005717500000000001 0.015141807826086954 0 21.867432625934065 0.9809244036263738 0.9361462984615384 0.5298 1015.919 0.1520993052375479 15 16.304347826086957 2.1996341666666663 2.110345 2.336455 2.1521025 0.028804 -0.0024572680704295635 0.03488033637404442 92 53 53 27 4.467323221209426 2.200000047683716 4.0 4.0 4.0 39.4612 5.8821 39.4347 22.0 56329.0 0.0 137.0 65.029 1.8043 135.4567 710.9964 715.0 19514.0 423.0 948.0 160.047 50.81706294429023
sub-ds205s07_task-view_run-02_bold 0.0019280434782608694 0.01469097902173913 0 21.71987449747252 0.9869364002197802 0.9372538456043953 0.5315 1012.3607 0.15451170465747024 18 19.565217391304348 2.2102749999999998 2.1198225 2.355215 2.1557875 0.0282757 -0.003044865559786558 0.03623408451676369 92 53 53 27 4.502285066407165 2.200000047683716 4.0 4.0 4.0 37.252 6.7362 40.3357 23.0 56296.0 0.0 141.0 66.2132 1.742 136.9312 715.2621 719.0 19547.0 425.0 953.0 159.6926 54.497344811446965
sub-ds205s09_task-view_acq-LR_run-01_bold 0.005411917808219178 0.02228016890410959 0 22.789714455277778 1.0361108005555557 0.9880990412500006 0.5046 1243.5212 0.3258302280827085 45 61.64383561643836 2.0211908333333333 1.9766875 2.2314 1.855485 0.037065 -0.00114234269130975 0.020379802212119102 73 53 53 27 5.088720189319215 2.200000047683716 4.0 4.0 4.0 41.6293 5.6235 36.982 23.0 57997.0 0.0 119.0 58.2122 2.5735 118.3639 786.0496 807.0 17846.0 457.0 994.0 158.5816 55.06427192687988
sub-ds205s09_task-view_acq-LR_run-02_bold 0.006466849315068492 0.023947604931506848 0 35.58600070722225 1.5587390695833334 1.6208429509722224 0.5051 1232.5525 0.3345943377548133 47 64.38356164383562 2.02274 1.97389 2.2416425 1.8526875 0.0323589 -0.0008835982298478484 0.02095068246126175 73 53 53 27 5.084970245127033 2.200000047683716 4.0 4.0 4.0 42.4942 5.7296 37.2487 23.0 57995.0 0.0 119.0 58.4499 2.5301 118.1555 787.196 808.0 17848.0 457.0 995.0 158.8952 50.56220245361328
sub-ds205s09_task-view_acq-RL_run-01_bold 0.04121205479452055 0.051308654931506846 0 34.42111142402777 1.1784485243055556 1.1142821890277776 0.5037 1259.7075 0.5699059645824405 53 72.6027397260274 2.088614166666667 2.02464 2.2896075 1.951595 0.0262465 -5.7171993830706924e-05 0.019421251490712166 73 53 53 27 5.22544217847827 2.200000047683716 4.0 4.0 4.0 39.0221 5.5174 37.1308 23.0 58112.0 0.0 119.0 58.7922 2.4832 116.4866 790.9759 811.0 17731.0 466.0 993.0 155.1978 36.441200256347656
sub-ds205s03_task-functionallocalizer_run-01_bold 0.006865975609756098 0.01166174756097561 0 25.30130857259259 1.10068032382716 1.0422690707407405 0.5578 899.5551 0.26118389619646404 32 39.02439024390244 2.43764 2.3422275 2.692425 2.2782675 0.0529285 -0.012628363445401192 0.055389221757650375 82 53 53 27 4.266440439452425 2.200000047683716 4.0 4.0 4.0 35.3128 6.4186 50.9335 25.0 54995.0 19.0 173.0 77.1159 1.403 141.8145 759.3992 764.0 20848.0 428.0 1042.0 179.0677 53.9325022965204
sub-ds205s03_task-view_run-01_bold 0.0055223913043478245 0.013993418152173915 0 21.883337964175826 1.0119163635164834 0.9670224290109894 0.5552 948.5766 0.16520736608810047 18 19.565217391304348 2.3244433333333334 2.2259025 2.592175 2.1552525 0.0183055 -0.008478646166622639 0.04804554581642151 92 53 53 27 4.254223958782439 2.200000047683716 4.0 4.0 4.0 34.6153 6.4461 47.5813 25.0 54686.0 19.0 157.0 67.2752 1.6046 136.8667 771.5826 779.0 21157.0 419.0 1054.0 183.1078 52.836231373017654
sub-ds205s03_task-view_run-02_bold 0.0006475 0.01044403706521739 0 24.326057035714285 0.9611447131868133 0.8934934421978024 0.5573 902.4783 0.22854716046970905 44 47.82608695652174 2.3925758333333333 2.3057225 2.642175 2.22983 0.329435 -0.011322595179080963 0.053197648376226425 92 53 53 27 4.259133013458754 2.200000047683716 4.0 4.0 4.0 35.3124 7.4936 49.9201 26.0 54896.0 19.0 170.0 73.8075 1.461 140.8794 762.1778 767.0 20947.0 428.0 1044.0 180.0793 42.17791306972504
sub-ds205s07_task-functionallocalizer_run-01_bold 0.00972736111111111 0.008194284305555556 0 22.879393483661968 1.1479378432394367 1.0417766205633798 0.541 962.3474 0.1550487344317312 15 20.833333333333332 2.2521649999999998 2.1681675 2.39802 2.1903075 0.0291203 -0.007456877268850803 0.03371790051460266 72 53 53 27 4.285941229350169 2.200000047683716 4.0 4.0 4.0 40.9527 6.1157 42.9513 23.0 55908.0 17.0 145.0 67.5711 1.7787 137.3466 708.532 714.0 19935.0 387.0 951.0 166.587 64.71407310082577
sub-ds205s07_task-view_run-01_bold 0.00585054347826087 0.015204289673913043 0 22.382260123296703 0.9959491859340658 0.9369370696703297 0.5386 972.983 0.1520993052375479 15 16.304347826086957 2.2514825000000003 2.174985 2.38338 2.1960825 0.0282586 -0.006972935516387224 0.032188184559345245 92 53 53 27 4.313751528981998 2.200000047683716 4.0 4.0 4.0 41.5907 6.156 41.8577 23.0 56005.0 17.0 139.0 65.5813 1.8801 136.4316 706.7871 713.0 19838.0 394.0 946.0 165.2812 50.42334433761425
sub-ds205s07_task-view_run-02_bold 0.0019870652173913047 0.014770980326086956 0 22.60577535087912 1.0123932324175822 0.9372968517582421 0.5404 965.007 0.15451170465747024 18 19.565217391304348 2.2389508333333334 2.1558375 2.3787425 2.1822725 0.0275085 -0.007005929946899414 0.03411094844341278 92 53 53 27 4.365633569269246 2.200000047683716 4.0 4.0 4.0 38.59 6.1883 42.5556 23.0 55958.0 17.0 143.0 65.669 1.7675 138.1076 711.3101 717.0 19885.0 400.0 952.0 164.2332 54.05953362467699
sub-ds205s09_task-view_acq-LR_run-01_bold 0.005607945205479453 0.02232912082191781 0 23.14330828208334 1.043644975 0.9879293138888892 0.5131 1196.7195 0.3258302280827085 45 61.64383561643836 2.0490825 2.0376875 2.24239 1.86717 0.0367789 -0.004032289143651724 0.020073510706424713 73 53 53 27 5.010099661656575 2.200000047683716 4.0 4.0 4.0 42.9673 5.1654 39.4401 23.0 57775.0 18.0 124.0 58.7775 2.6347 119.7322 783.8782 805.0 18068.0 448.0 993.0 160.671 54.77862358093262
sub-ds205s09_task-view_acq-LR_run-02_bold 0.006578767123287671 0.023950454794520546 0 35.81903538416666 1.5608953040277778 1.6171545502777782 0.5136 1186.884 0.3345943377548133 47 64.38356164383562 2.054238333333333 2.038455 2.2515525 1.8727075 0.0322103 -0.0038295735139399767 0.020550260320305824 73 53 53 27 5.029289310984106 2.200000047683716 4.0 4.0 4.0 44.2484 5.2449 39.9385 23.0 57802.0 18.0 126.0 59.851 2.6451 118.8398 785.5312 807.0 18041.0 451.0 994.0 160.4556 50.310420989990234
sub-ds205s09_task-view_acq-RL_run-01_bold 0.04132 0.05151956945205479 0 34.941844608194444 1.1900752381944446 1.11412176375 0.5122 1214.6777 0.5699059645824405 53 72.6027397260274 2.103911666666667 2.0650525 2.28995 1.9567325 0.0259984 -0.003200419247150421 0.01928347535431385 73 53 53 27 5.178320854531057 2.200000047683716 4.0 4.0 4.0 42.1191 5.0721 39.7567 23.0 57912.0 18.0 126.0 60.2804 2.5073 116.7328 789.3764 810.0 17931.0 460.0 993.0 156.417 36.2927360534668
1 change: 1 addition & 0 deletions mriqc/workflows/functional/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,7 @@ def _apply_transforms(in_file, in_xfm, max_concurrent):
dtype_width=4,
serialize_nvols=2,
max_concurrent=max_concurrent,
mode='reflect',
)
out_file = derive_bids_fname(
in_file,
Expand Down

0 comments on commit 10cfa75

Please sign in to comment.