Skip to content

Commit 6abb4da

Browse files
committed
Merge branch 'master' of https://github.com/poldracklab/fmriprep
2 parents ce35dd6 + 8fcc210 commit 6abb4da

File tree

11 files changed

+58
-31
lines changed

11 files changed

+58
-31
lines changed

.circleci/config.yml

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
- docker-v3-
2222
paths:
2323
- /tmp/cache/docker.tar.gz
24-
- /tmp/cache/ubuntu.tar.gz
2524
- checkout
2625
- setup_remote_docker
2726
- run:
@@ -359,10 +358,10 @@ jobs:
359358
at: /tmp
360359
- restore_cache:
361360
keys:
362-
- ds005-anat-v12-{{ .Branch }}-{{ epoch }}
363-
- ds005-anat-v12-{{ .Branch }}
364-
- ds005-anat-v12-master
365-
- ds005-anat-v12-
361+
- ds005-anat-v13-{{ .Branch }}-{{ epoch }}
362+
- ds005-anat-v13-{{ .Branch }}
363+
- ds005-anat-v13-master
364+
- ds005-anat-v13-
366365
- run:
367366
name: Setting up test
368367
command: |
@@ -396,10 +395,9 @@ jobs:
396395
--sloppy --write-graph --mem_mb 4096 \
397396
--nthreads 2 --anat-only -vv
398397
- save_cache:
399-
key: ds005-anat-v12-{{ .Branch }}-{{ epoch }}
398+
key: ds005-anat-v13-{{ .Branch }}-{{ epoch }}
400399
paths:
401400
- /tmp/ds005/work
402-
- /tmp/ds005/derivatives/fmriprep
403401

404402
- run:
405403
name: Run full fMRIPrep on ds005 (LegacyMultiProc plugin)
@@ -415,7 +413,7 @@ jobs:
415413
/tmp/data/ds005 /tmp/ds005/derivatives participant \
416414
--sloppy --write-graph --use-syn-sdc --mem_mb 4096 \
417415
--ignore-aroma-denoising-errors --use-aroma \
418-
--output-space T1w template fsaverage5 \
416+
--output-space T1w template fsaverage5 fsnative \
419417
--template-resampling-grid native \
420418
--use-plugin /home/circleci/src/fmriprep/.circleci/legacy.yml \
421419
--nthreads 2 --cifti-output -vv
@@ -442,7 +440,7 @@ jobs:
442440
--config $PWD/nipype.cfg -w /tmp/ds005/work \
443441
/tmp/data/ds005 /tmp/ds005/derivatives_partial participant \
444442
--sloppy --write-graph --use-syn-sdc --mem_mb 4096 \
445-
--output-space T1w template fsaverage5 \
443+
--output-space T1w template fsaverage5 fsnative \
446444
--ignore-aroma-denoising-errors --use-aroma \
447445
--template-resampling-grid native \
448446
--nthreads 2 --cifti-output -vv
@@ -490,10 +488,10 @@ jobs:
490488
at: /tmp
491489
- restore_cache:
492490
keys:
493-
- ds054-anat-v10-{{ .Branch }}-{{ epoch }}
494-
- ds054-anat-v10-{{ .Branch }}
495-
- ds054-anat-v10-master
496-
- ds054-anat-v10-
491+
- ds054-anat-v11-{{ .Branch }}-{{ epoch }}
492+
- ds054-anat-v11-{{ .Branch }}
493+
- ds054-anat-v11-master
494+
- ds054-anat-v11-
497495
- run:
498496
name: Setting up test
499497
command: |
@@ -527,10 +525,9 @@ jobs:
527525
--fs-no-reconall --sloppy --write-graph \
528526
--mem_mb 4096 --nthreads 2 --anat-only -vv
529527
- save_cache:
530-
key: ds054-anat-v10-{{ .Branch }}-{{ epoch }}
528+
key: ds054-anat-v11-{{ .Branch }}-{{ epoch }}
531529
paths:
532530
- /tmp/ds054/work
533-
- /tmp/ds054/derivatives
534531

535532
- run:
536533
name: Run full fMRIPrep on ds054
@@ -609,10 +606,10 @@ jobs:
609606
at: /tmp
610607
- restore_cache:
611608
keys:
612-
- ds210-anat-v8-{{ .Branch }}-{{ epoch }}
613-
- ds210-anat-v8-{{ .Branch }}
614-
- ds210-anat-v8-master
615-
- ds210-anat-v8-
609+
- ds210-anat-v9-{{ .Branch }}-{{ epoch }}
610+
- ds210-anat-v9-{{ .Branch }}
611+
- ds210-anat-v9-master
612+
- ds210-anat-v9-
616613
- run:
617614
name: Setting up test
618615
command: |
@@ -646,10 +643,9 @@ jobs:
646643
--fs-no-reconall --sloppy --write-graph \
647644
--mem_mb 4096 --nthreads 2 --anat-only -vv
648645
- save_cache:
649-
key: ds210-anat-v8-{{ .Branch }}-{{ epoch }}
646+
key: ds210-anat-v9-{{ .Branch }}-{{ epoch }}
650647
paths:
651648
- /tmp/ds210/work
652-
- /tmp/ds210/derivatives
653649

654650
- run:
655651
name: Run full fMRIPrep on ds000210

.circleci/ds005_outputs.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_desc-confounds_regresso
4141
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_desc-MELODIC_mixing.tsv
4242
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-fsaverage5_hemi-L.func.gii
4343
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-fsaverage5_hemi-R.func.gii
44+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-fsnative_hemi-L.func.gii
45+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-fsnative_hemi-R.func.gii
4446
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-MNI152NLin2009cAsym_boldref.nii.gz
4547
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-MNI152NLin2009cAsym_desc-aparcaseg_dseg.nii.gz
4648
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-MNI152NLin2009cAsym_desc-aseg_dseg.nii.gz
@@ -59,6 +61,8 @@ fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_desc-confounds_regresso
5961
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_desc-MELODIC_mixing.tsv
6062
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-fsaverage5_hemi-L.func.gii
6163
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-fsaverage5_hemi-R.func.gii
64+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-fsnative_hemi-L.func.gii
65+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-fsnative_hemi-R.func.gii
6266
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin2009cAsym_boldref.nii.gz
6367
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin2009cAsym_desc-aparcaseg_dseg.nii.gz
6468
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-02_space-MNI152NLin2009cAsym_desc-aseg_dseg.nii.gz

.circleci/ds005_partial_outputs.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_desc-confounds_regresso
4141
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_desc-MELODIC_mixing.tsv
4242
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-fsaverage5_hemi-L.func.gii
4343
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-fsaverage5_hemi-R.func.gii
44+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-fsnative_hemi-L.func.gii
45+
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-fsnative_hemi-R.func.gii
4446
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-MNI152NLin2009cAsym_boldref.nii.gz
4547
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-MNI152NLin2009cAsym_desc-aparcaseg_dseg.nii.gz
4648
fmriprep/sub-01/func/sub-01_task-mixedgamblestask_run-01_space-MNI152NLin2009cAsym_desc-aseg_dseg.nii.gz

CHANGES.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
1.2.6-1 (January 24, 2019)
2+
==========================
3+
4+
Hotfix release of version 1.2.6, pinning niworkflows to a release version (instead
5+
of the development branch, since #1459) and including to bugfixes.
6+
7+
* [PIN] NiWorkflows 0.5.2.post7 (`1bf4a21 <https://github.com/poldracklab/fmriprep/commit/1bf4a21cce62c4330510a9a8ae50db876fbc23b0>`__).
8+
* [FIX] Bad ``fsnative`` replacement in CIfTI workflow (#1476) @oesteban
9+
* [FIX] Avoid warning when generating boilerplate (#1464) @oesteban
10+
11+
112
1.2.6 (January 17, 2019)
213
========================
314

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ open-source software distribution.
3535
:target: https://doi.org/10.1038/s41592-018-0235-4
3636
:alt: Published in Nature Methods
3737

38+
.. image:: https://img.shields.io/badge/RRID-SCR__016216-blue.svg
39+
:target: https://doi.org/10.1038/s41592-018-0235-4
40+
:alt: RRID:SCR_016216
3841

3942
About
4043
-----

docs/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ dependencies:
2828
- svgutils
2929
- nitime
3030
- nilearn
31-
- git+https://github.com/poldracklab/niworkflows.git@master#egg=niworkflows
31+
- niworkflows>=0.5.4,<0.6
3232
- tedana>=0.0.5

fmriprep/__about__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,21 +90,19 @@
9090
'nilearn',
9191
'nipype>=1.1.6',
9292
'nitime',
93-
'niworkflows>=0.5.2.post5,<0.5.3',
93+
'niworkflows>=0.5.2.post7,<0.5.3',
9494
'numpy',
9595
'pandas',
96+
'psutil>=5.4',
9697
'pybids==0.6.5',
9798
'pyyaml',
9899
'scikit-image',
99100
'statsmodels',
100101
'tedana>=0.0.5',
101-
'psutil>=5.4',
102102
]
103103

104104

105105
LINKS_REQUIRES = [
106-
'git+https://github.com/poldracklab/niworkflows.git@'
107-
'master#egg=niworkflows',
108106
]
109107

110108
TESTS_REQUIRES = [

fmriprep/cli/run.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,15 @@ def build_workflow(opts, retval):
581581
'spaces (option "--output-space").'
582582
)
583583

584+
if opts.cifti_output and (opts.template != 'MNI152NLin2009cAsym' or
585+
'template' not in output_spaces):
586+
output_spaces.append('template')
587+
logger.warning(
588+
'Option "--cifti-output" requires functional images to be resampled to MNI space. '
589+
'The argument "template" has been automatically added to the list of output '
590+
'spaces (option "--output-space").'
591+
)
592+
584593
# Check output_space
585594
if 'template' not in output_spaces and (opts.use_syn_sdc or opts.force_syn):
586595
msg = ['SyN SDC correction requires T1 to MNI registration, but '
@@ -753,6 +762,7 @@ def build_workflow(opts, retval):
753762
cmd = ['pandoc', '-s', '--bibliography',
754763
pkgrf('fmriprep', 'data/boilerplate.bib'),
755764
'--filter', 'pandoc-citeproc',
765+
'--metadata', 'pagetitle="fMRIPrep citation boilerplate"',
756766
str(logs_path / 'CITATION.md'),
757767
'-o', str(logs_path / 'CITATION.html')]
758768
try:

fmriprep/workflows/bold/base.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -779,10 +779,11 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
779779
])
780780

781781
# SURFACES ##################################################################################
782-
if freesurfer and any(space.startswith('fs') for space in output_spaces):
782+
surface_spaces = [space for space in output_spaces if space.startswith('fs')]
783+
if freesurfer and surface_spaces:
783784
LOGGER.log(25, 'Creating BOLD surface-sampling workflow.')
784785
bold_surf_wf = init_bold_surf_wf(mem_gb=mem_gb['resampled'],
785-
output_spaces=output_spaces,
786+
output_spaces=surface_spaces,
786787
medial_surface_nan=medial_surface_nan,
787788
name='bold_surf_wf')
788789
workflow.connect([
@@ -796,18 +797,19 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
796797
])
797798

798799
# CIFTI output
799-
if cifti_output and 'template' in output_spaces:
800+
if cifti_output and surface_spaces:
800801
bold_surf_wf.__desc__ += """\
801802
*Grayordinates* files [@hcppipelines], which combine surface-sampled
802803
data and volume-sampled data, were also generated.
803804
"""
804805
gen_cifti = pe.MapNode(GenerateCifti(), iterfield=["surface_target", "gifti_files"],
805806
name="gen_cifti")
806807
gen_cifti.inputs.TR = metadata.get("RepetitionTime")
808+
gen_cifti.inputs.surface_target = [s for s in surface_spaces
809+
if s.startswith('fsaverage')]
807810

808811
workflow.connect([
809812
(bold_surf_wf, gen_cifti, [
810-
('targets.out', 'surface_target'),
811813
('outputnode.surfaces', 'gifti_files')]),
812814
(inputnode, gen_cifti, [('subjects_dir', 'subjects_dir')]),
813815
(bold_mni_trans_wf, gen_cifti, [('outputnode.bold_mni', 'bold_file')]),

fmriprep/workflows/bold/resampling.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def init_bold_surf_wf(mem_gb, output_spaces, medial_surface_nan, name='bold_surf
8484
BOLD series, resampled to FreeSurfer surfaces
8585
8686
"""
87+
# Ensure volumetric spaces do not sneak into this workflow
8788
spaces = [space for space in output_spaces if space.startswith('fs')]
8889

8990
workflow = Workflow(name=name)

0 commit comments

Comments
 (0)