Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fMRIPrep 23.2.0alpha #3108

Merged
merged 181 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from 180 commits
Commits
Show all changes
181 commits
Select commit Hold shift + click to select a range
924eee0
ENH: Upgrade FreeSurfer to 7.3.2
effigies Jan 18, 2023
6a7a9d9
MNT: Try reducing FreeSurfer size by excluding large and test Python …
effigies Jan 18, 2023
318c03e
DOCKER: Switch to conda for convert3d
effigies Jan 10, 2023
6018f4d
DOCKER: Install libpng12 from PPA
effigies Jan 11, 2023
e91607f
DOC: Update versions in documentation
effigies Jan 11, 2023
533574d
CI: Bump build cache
effigies Jan 11, 2023
d65768d
PIN: smriprep feature branch
effigies Dec 13, 2022
8d8989e
CLI: Rename --anat-derivatives to --derivatives
effigies Jan 18, 2023
23d8c2b
RF: Collect pre-computed anatomical derivatives using new machinery
effigies Jan 19, 2023
66cb0bb
RF: Compute T1w-fsnative transform LTA from fsnative2t1w_xfm
effigies Jan 19, 2023
fdb69c0
WRAPPER: Update CLI arguments
effigies Jan 19, 2023
28805d6
CI: Update FASTRACK_ARG to use --derivatives
effigies Jan 19, 2023
c6ce78f
CI: Drop fasttrack output files; precomputed files are copied
effigies Jan 19, 2023
796ff9a
MNT: Pin smriprep@next [skip ci]
effigies Jun 19, 2023
7799007
Merge remote-tracking branch 'upstream/next' into rf/split_workflow
effigies Jun 19, 2023
dbfcd83
CI: Disable output checks, just show results
effigies Jun 20, 2023
2ab6e27
Merge remote-tracking branch 'upstream/master' into next
effigies Jul 4, 2023
ca29568
Merge remote-tracking branch 'upstream/next' into rf/split_workflow
effigies Jul 4, 2023
f683374
MNT: Pin sdcflows feature branch
effigies Jul 12, 2023
3653415
WIP: Refactor fit workflow
effigies Jul 19, 2023
45ee799
Draft to create the boldref for coregistration to T1w.
feilong Jul 20, 2023
0886911
ENH: Add io spec for expected outputs from "fit" portion
mgxd Jul 21, 2023
037a936
Merge remote-tracking branch 'upstream/master' into next
effigies Jul 22, 2023
a3df303
Merge remote-tracking branches 'upstream/next', 'feilong/rf/split_wor…
effigies Jul 22, 2023
c331d1d
Add `-output-weights-text` to `-volume-to-surface-mapping`
HippocampusGirl Jul 23, 2023
fca539c
Revert "MNT: Pin sdcflows feature branch"
effigies Jul 23, 2023
c864194
Merge remote-tracking branch 'HippocampusGirl/output-weights-text' in…
effigies Jul 30, 2023
8b0347f
Merge remote-tracking branch 'upstream/master' into next [skip ci]
effigies Aug 1, 2023
3ae7e69
Merge remote-tracking branch 'upstream/next' into rf/split_workflow
effigies Aug 1, 2023
b2e14d9
RF: Move fit workflow to workflows.bold.fit
effigies Aug 9, 2023
ac097da
RF: Add single subject fit workflow
effigies Aug 9, 2023
c1ed7d0
FIX: Do not assume sbrefs
effigies Aug 15, 2023
536fcb7
FIX: Correctly detect previous runs of fMRIPrep
effigies Aug 15, 2023
03a07bc
FIX: Typos, logic errors, and unfinished refactors
effigies Aug 15, 2023
3dfa667
ENH: Add data loader class
effigies Aug 15, 2023
a5f1d29
FIX: Disable report writing in coreg
effigies Aug 16, 2023
e6e0d09
ENH: Output coregistration transforms
effigies Aug 16, 2023
a2ebb99
ENH: Hook up fieldmaps to BOLD processing
effigies Aug 16, 2023
bbf042b
FIX: Badtab
effigies Aug 16, 2023
1c40fb9
ENH: Sink boldref2fmap transforms
effigies Aug 17, 2023
1e9e70b
RF: Split fMRIPrep into fit and derivatives workflows (#2913)
effigies Aug 21, 2023
22eedd6
MNT: Add git-annex, datalad, datalad-osf to install environment
effigies Aug 22, 2023
8cd5db0
ENV: Sync scientific python packages to avoid duplication; update Doc…
effigies Aug 22, 2023
67edfec
Merge branch 'upstream/master' into next
effigies Aug 23, 2023
242e988
FIX: Use unwarp_wf directly on reference
effigies Aug 17, 2023
d9a0e3b
FIX: Convert boldref2fmap transforms to ITK text format
effigies Aug 23, 2023
7144371
FIX: Update connections to unwarp_wf, convert ITK transforms to text …
effigies Aug 23, 2023
71c1797
FIX: Match node name to variable name
effigies Aug 23, 2023
b7bf767
Merge remote-tracking branch 'upstream/master' into next
effigies Aug 23, 2023
a16302c
Drop unused functions from workflows.bold.fit
effigies Aug 23, 2023
285f121
RF: Only register boldref2fmap if not found, handle transforms consis…
effigies Aug 23, 2023
e058b37
RF: Generate derivative cache per-BOLD, get one-way transforms
effigies Aug 23, 2023
4582de2
FIX: Fix name of anatomical workflow
effigies Aug 23, 2023
7aeb949
FIX: Unused imports, undefined variables
effigies Aug 23, 2023
6b60b52
FIX: Load IO spec from correct location
effigies Aug 23, 2023
e4512c3
CFG: Update config for easier debugging
effigies Aug 23, 2023
ad77079
RF: Generate t1w_brain from t1w and mask on demand for coregistration
effigies Aug 23, 2023
9118abc
RF: Update derivative cache spec, calculate per-BOLD, reuse boldref2f…
effigies Aug 24, 2023
04a8eff
CI: Stop testing legacy output layout
effigies Aug 24, 2023
144bfd2
CI: Stop testing legacy layout (#3079)
effigies Aug 24, 2023
c58493e
CI: Add next to GHA branches
effigies Aug 24, 2023
63cdde9
ENH: Add --level flag
effigies Aug 24, 2023
85c2634
ENH: Start reinserting surface stages
effigies Aug 25, 2023
37a0ebd
RF: Split estimator finding into helper function
effigies Aug 25, 2023
e88fb41
ENH: Use refactored surface workflows to generate surfaces and ribbon
effigies Aug 27, 2023
89439f1
MNT: Require Python 3.10+
effigies Aug 27, 2023
80abe3e
ENH: Save surface derivatives
effigies Aug 27, 2023
bfcb9e8
MNT: Use nipreps@next again
effigies Aug 28, 2023
56c193e
ENH: Generate anatomical derivatives useful for resampling (#3081)
effigies Aug 29, 2023
936dbb6
FIX: Update name for anat_ribbon input
effigies Aug 29, 2023
32c9980
CLI: Leave --level free-form for now
effigies Aug 28, 2023
2e94757
FIX: Save figures to fmriprep_dir
effigies Aug 29, 2023
85ddbb8
ENH: Add reporting workflow for BOLD fit
effigies Aug 29, 2023
cda7a66
ENH: Add white matter segmentation to reportlets
effigies Aug 29, 2023
29f6c60
RF: Select then resample; nipype disallows GenericLabel
effigies Aug 29, 2023
2a8abf5
RF: Use SimpleBeforeAfterRPT from nireports
effigies Aug 30, 2023
4f6b565
ENH: Create fieldmap registration report
effigies Aug 30, 2023
91ded48
RPT: Apparently Oscar already wrote this caption
effigies Aug 31, 2023
ef48d2a
RPT: Re-add summary and validation reports
effigies Aug 31, 2023
a12c31f
FIX: Set default SDC to None
effigies Aug 31, 2023
e03a34c
RPT: Small touch-ups to reports
effigies Sep 1, 2023
4ffe1fc
RPT: Restore subject and execution summary reports
effigies Sep 5, 2023
8d11614
ENH: Add reporting workflow for BOLD fit (#3082)
effigies Sep 6, 2023
2e1ee97
Merge remote-tracking branch 'upstream/master' into next
effigies Sep 27, 2023
26ae4cd
FIX: Connect EPI-to-fieldmap transform (#3099)
effigies Oct 3, 2023
1d9c55a
Merge remote-tracking branch 'upstream/master' into next
effigies Oct 7, 2023
511c838
FIX: Minor fixes to work with MSMSulc-enabled smriprep-next (#3098)
effigies Oct 12, 2023
737d59e
FIX: Swap direction of fmap-EPI transform
effigies Oct 12, 2023
51319bb
MNT: Bump version requirements (#3107)
effigies Oct 12, 2023
87fc8b1
Merge remote-tracking branch 'upstream/master' into next
effigies Oct 15, 2023
978ae51
RF: Update primary bold workflow to incorporate single shot resamplin…
effigies Oct 17, 2023
9778661
ENH: Check for bold length before building workflow
effigies Oct 15, 2023
c67df4a
RF: Delete pieces already rewritten
effigies Oct 15, 2023
c4799a6
ENH: Add generic resampling workflow, use for anatomical
effigies Oct 16, 2023
9864b53
ENH: Add interpolation parameters to resampling interface
effigies Oct 17, 2023
8199d46
STY: Black
effigies Oct 17, 2023
41bc5f2
RF: Rename functions to match usage
effigies Oct 17, 2023
ded0a73
ENH: Add general volumetric datasink workflow
effigies Oct 17, 2023
c094f00
ENH: Hook up anatomical derivatives workflow
effigies Oct 18, 2023
7cc25d5
FIX: Names, connections, metadata
effigies Oct 18, 2023
ad3f392
FIX volumetric
effigies Oct 23, 2023
cac0b79
FIX: fmapreg_xfm -> boldref2fmap_xfm
effigies Oct 23, 2023
143a41f
FIX: Connect target_ref_file in volumetric resample workflow
effigies Oct 23, 2023
333a8fe
RF: Move coordinate copies into threads to delay allocation
effigies Oct 23, 2023
d2a3d95
FIX: Add sampling reference
effigies Oct 23, 2023
cf92a48
ENH: Construct resampled data array in F order
effigies Oct 23, 2023
83b8306
LOG: Move logging into init_bold_wf
effigies Oct 18, 2023
9bcfdac
RF: Remove old t1 workflow
effigies Oct 18, 2023
26d141f
RF: Move resampling to "full" section
effigies Oct 19, 2023
0d09cc0
Apply suggestions from code review
effigies Oct 26, 2023
6bda5ce
ENH: Restore resampling to T1w target (#3116)
effigies Oct 26, 2023
691f1a1
ENH: Resample BOLD series to volumetric templates
effigies Oct 25, 2023
92780b9
DBG: Better reporting for ANTs h5 parsing failures
effigies Oct 26, 2023
4196e47
ENH: Handle warp fields with other sizes
effigies Oct 26, 2023
f18b343
RF: Handle no-warp H5 files
effigies Oct 27, 2023
2fd3012
Update fmriprep/utils/transforms.py
effigies Nov 3, 2023
ce7c65f
ENH: Restore resampling BOLD to volumetric templates (#3121)
mgxd Nov 3, 2023
e7672df
RF: Reverse direction of bold-T1w transform
effigies Oct 25, 2023
ad9f868
ENH: Restore confound regressor generation as part of full
effigies Oct 25, 2023
3d541d5
RF: Move confounds datasink into bold_wf
effigies Nov 3, 2023
2e1a8c8
ENH: Restore confound generation (#3120)
effigies Nov 7, 2023
c4d1a00
RF: Remove datasinks already reimplemented elsewhere
effigies Nov 3, 2023
d378af3
ENH: Restore resampling to FreeSurfer surfaces
effigies Nov 3, 2023
c79464e
FIX: Moving and reference apply to the forward transform, not the final
effigies Nov 7, 2023
c294028
ENH: Restore resampling to surface GIFTIs (#3126)
effigies Nov 13, 2023
ea239d3
ENH: Pull anatomical inputs to CIFTI through
effigies Nov 7, 2023
70a6698
ENH: Restore CIFTI-2 generation
effigies Nov 8, 2023
2ed5d1b
FIX: Set ROI data before writing array, use uint8
effigies Nov 8, 2023
de72dda
FIX: Only connect template_iterator_wf if it exists
effigies Nov 8, 2023
571bb65
DOC: Complete docstring first line
effigies Nov 9, 2023
21b79e7
FIX: Do not sink BOLD on the main thread
effigies Nov 9, 2023
e2c3de1
ENH: Restore CIFTI-2 generation (#3129)
effigies Nov 13, 2023
1ba8c75
MNT: Shift more config into env.yml
effigies Nov 14, 2023
50ac3f1
MNT: Bump environment
effigies Nov 14, 2023
a9ae847
MNT: Bump environment (#3132)
effigies Nov 14, 2023
8c084a6
ENH: Restore carpetplot workflow
effigies Nov 13, 2023
5cdceda
RPT: Update boilerplate on new bold_wf
effigies Nov 13, 2023
71e57b8
DOC: Update init_bold_wf docstring
effigies Nov 14, 2023
ffb2bbd
RF: Remove dead code
effigies Nov 14, 2023
d8eee6a
STY: Pacify flake8 a bit
effigies Nov 14, 2023
85f30ef
DOC: Update installation guide
effigies Nov 14, 2023
5cdcde7
DOC: Update usage.rst with notes on reusing derivatives
effigies Nov 14, 2023
3991846
DOC: Update workflow graph generators
effigies Nov 14, 2023
921caf9
FIX: Incomplete transition to an HMC-free path
effigies Nov 14, 2023
e55f185
DOC: Add notes on processing level to outputs.rst
effigies Nov 14, 2023
96bb6dc
ENH: Restore carpetplot and other final adjustments (#3131)
effigies Nov 14, 2023
12e4b19
MNT: Update NodeJS, svgo and bids-validator
effigies Nov 14, 2023
67ff4d6
FIX: Pass bold file to ds_fmapreg_wf to get correct naming
effigies Nov 15, 2023
a205037
CI: Remove legacy outputs, update ds005 fasttrack outputs
effigies Nov 15, 2023
2ff1ddc
FIX: Add ds054 and ds210 fastrack outputs [no fasttrack]
effigies Nov 15, 2023
8fd5fbe
CFG: Remove hacks intended to ease development
effigies Nov 15, 2023
195521d
RF: Remove old copy of _create_mem_gb
effigies Nov 15, 2023
d84fc31
DOC: Add docstring for init_bold_volumetric_resample_wf
effigies Nov 15, 2023
a549a33
CI: Update full output listings
effigies Nov 15, 2023
2203620
RF: Remove reporting from coregistration workflows
effigies Nov 15, 2023
9f29894
RF: Remove unused bold_t1_trans_wf
effigies Nov 15, 2023
f71fb1d
RF: Drop VolumeToSurfaceMapping output weights
effigies Nov 15, 2023
be5ba8f
CI: Restore expected outputs checks
effigies Nov 15, 2023
d2bb045
FIX: Use msmsulc registration
effigies Nov 15, 2023
4d35109
RF: Listify and sort BOLD series by EchoTime once [no fasttrack]
effigies Nov 16, 2023
fbbfbd0
ENH: Restore STC reporting to summary
effigies Nov 17, 2023
b323eb0
FIX: Pass fmriprep output directory to anatomical workflow
effigies Nov 17, 2023
4647b6e
FIX: Correctly generate resampling reference, pass to downstream resa…
effigies Nov 17, 2023
a4a413d
Final revisions for next branch (#3134)
effigies Nov 19, 2023
f0eff51
ENH: Add volumetric and CIFTI anatomical outputs
effigies Nov 19, 2023
691dd54
RF: Reuse cortical mask ROI and downsampled midthickness
effigies Nov 19, 2023
92ded31
FIX: Ensure BOLD is not oversampled for anat
effigies Nov 19, 2023
de52bec
DOCKER: Bump npm install line
effigies Nov 19, 2023
2319fef
CI: Update expected outputs [no fasttrack]
effigies Nov 19, 2023
4a5491d
RF: Write out anatomical template derivatives (#3136)
effigies Nov 19, 2023
b7a4427
DOC: Add initial release notes for 23.2.0
effigies Nov 19, 2023
556db60
MNT: smriprep-next has been merged
effigies Nov 20, 2023
695ba8c
DOC: Update expected outputs, note minimal derivatives
effigies Nov 20, 2023
314fbec
RPT: Improve and align captions with now-produced reportlets [no fast…
effigies Nov 20, 2023
27ec656
chore: update to latest migas api
mgxd Nov 20, 2023
1765ded
chore: update to latest migas api (#3138)
mgxd Nov 20, 2023
0e0891a
Update Dockerfile
effigies Nov 20, 2023
052c056
Update Dockerfile
effigies Nov 20, 2023
cd45f0e
DOC: Improve report captions and update expected outputs in docs (#3137)
effigies Nov 21, 2023
4aaa2d8
FIX: Custom error handling
mgxd Nov 21, 2023
a67853f
DOC: Expand release notes
effigies Nov 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 37 additions & 75 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,33 +83,35 @@ _setup_fmriprep_docker: &setup_fmriprep_docker
export PY3=$(pyenv versions | grep '3\.' |
sed -e 's/.* 3\./3./' -e 's/ .*//')
pyenv local $PY3
mkdir -p /tmp/${DATASET}/derivatives
pip install --upgrade pip
pip install --upgrade /tmp/src/fmriprep/wrapper/

_check_outputs: &check_outputs
name: Checking outputs of fMRIPrep run
name: Check outputs of fMRIPrep run
command: |
set +e -x
mkdir -p /tmp/${DATASET}/test
find /tmp/${DATASET}/${SUBDIR:-derivatives} \( -path '*/figures' -o -path '*/log' -o -path '*/sourcedata' \) -prune -o -name "*" -print | cut -d/ -f 5- | sort > /tmp/${DATASET}/test/outputs.out
find /tmp/${DATASET}/${SUBDIR:-fmriprep} \
\( -path '*/figures' -o -path '*/log' -o -path '*/sourcedata' \) \
-prune -o -name "*" -print | cut -d/ -f 5- | sort > /tmp/${DATASET}/test/outputs.out

FASTTRACK_OUTPUTS="${DATASET}${VARIANT}_fasttrack_outputs.txt"
FULL_OUTPUTS="${DATASET}${VARIANT}_outputs.txt"
RET=1
if [ ! -f /tmp/.nofasttrack ]; then
echo "Checking fasttrack..."
diff /tmp/src/fmriprep/.circleci/${FASTTRACK_OUTPUTS} /tmp/${DATASET}/test/outputs.out
sort /tmp/src/fmriprep/.circleci/${FASTTRACK_OUTPUTS} > /tmp/${DATASET}/test/fasttrack.out
diff /tmp/${DATASET}/test/{fasttrack,outputs}.out
RET=$?
fi
if [ $RET -ne 0 ]; then
echo "Checking full..."
diff /tmp/src/fmriprep/.circleci/${FULL_OUTPUTS} /tmp/${DATASET}/test/outputs.out
sort /tmp/src/fmriprep/.circleci/${FULL_OUTPUTS} > /tmp/${DATASET}/test/full.out
diff /tmp/${DATASET}/test/{full,outputs}.out
RET=$?
fi
exit $RET


version: 2.1
aliases:
- &src "/tmp/src/fmriprep"
Expand Down Expand Up @@ -455,14 +457,13 @@ jobs:
name: Run anatomical workflow on ds005
no_output_timeout: 2h
command: |
mkdir -p /tmp/${DATASET}/work /tmp/${DATASET}/derivatives
mkdir -p /tmp/${DATASET}/work /tmp/${DATASET}/fmriprep
if [ -f /tmp/.nofasttrack ]; then
fmriprep-docker -i nipreps/fmriprep:latest \
-e FMRIPREP_DEV 1 --user $(id -u):$(id -g) \
--network none \
--config $PWD/nipype.cfg -w /tmp/${DATASET}/work \
/tmp/data/${DATASET} /tmp/${DATASET}/derivatives participant \
--output-layout legacy \
/tmp/data/${DATASET} /tmp/${DATASET}/fmriprep participant \
--fs-subjects-dir /tmp/${DATASET}/freesurfer \
--skull-strip-template OASIS30ANTs:res-1 \
--output-spaces MNI152NLin2009cAsym MNI152NLin6Asym \
Expand All @@ -474,7 +475,7 @@ jobs:
command: |
rm -rf /tmp/${DATASET}/work/fmriprep_*_wf/fsdir*
rm -rf /tmp/${DATASET}/work/reportlets
rm -rf /tmp/${DATASET}/derivatives/fmriprep
rm -rf /tmp/${DATASET}/fmriprep
- save_cache:
key: ds005-anat-v0-{{ .Branch }}-{{ .Revision }}
paths:
Expand All @@ -488,7 +489,7 @@ jobs:
name: Run full fMRIPrep on ds005 (LegacyMultiProc plugin)
no_output_timeout: 2h
command: |
FASTRACK_ARG="--anat-derivatives /tmp/${DATASET}/smriprep"
FASTRACK_ARG="--derivatives anat=/tmp/${DATASET}/smriprep"
if [ -f /tmp/.nofasttrack ]; then
FASTRACK_ARG=""
fi
Expand All @@ -502,89 +503,54 @@ jobs:
-e FMRIPREP_DEV 1 --user $(id -u):$(id -g) \
--network none \
--config $PWD/nipype.cfg -w /tmp/${DATASET}/work \
/tmp/data/${DATASET} /tmp/${DATASET}/derivatives participant \
/tmp/data/${DATASET} /tmp/${DATASET}/fmriprep participant \
--fs-subjects-dir /tmp/${DATASET}/freesurfer \
${FASTRACK_ARG} \
--output-layout legacy \
--sloppy --write-graph --mem-mb 14336 \
--skull-strip-template OASIS30ANTs:res-1 \
--output-spaces fsaverage5 fsnative \
--use-plugin /tmp/src/fmriprep/.circleci/legacy.yml \
--nthreads 4 -vv
- store_artifacts:
path: /tmp/ds005/derivatives
path: /tmp/ds005/fmriprep
destination: full-run
- run:
name: Copy intermediate results for re-runs
command: |
mkdir -p /tmp/${DATASET}/derivatives_partial
mkdir -p /tmp/${DATASET}/fmriprep-partial
sudo cp -a /tmp/${DATASET}/work /tmp/${DATASET}/work_partial
sudo cp -a /tmp/${DATASET}/work /tmp/${DATASET}/work_bids
# Nipype sometimes fails to pick up when the base directory changes
# This is a cheap workflow, so let's not fuss
sudo rm -rf /tmp/${DATASET}/work /tmp/${DATASET}/work_bids/fmriprep_*_wf/single_subject_01_wf/anat_preproc_wf/surface_recon_wf/gifti_surface_wf || true
- run:
<<: *check_outputs
environment:
VARIANT: '_legacy'
- run:
name: Prepare BIDS Derivatives dataset
command: |
mkdir -p /tmp/${DATASET}/bids/sourcedata
cp -r /tmp/${DATASET}/freesurfer /tmp/${DATASET}/bids/sourcedata/freesurfer
- run:
name: Re-run with BIDS layout
no_output_timeout: 2h
command: |
FASTRACK_ARG="--anat-derivatives /tmp/${DATASET}/smriprep"
if [ -f /tmp/.nofasttrack ]; then
FASTRACK_ARG=""
fi
fmriprep-docker -i nipreps/fmriprep:latest \
-e FMRIPREP_DEV 1 --user $(id -u):$(id -g) \
--network none \
--config $PWD/nipype.cfg -w /tmp/${DATASET}/work_bids \
/tmp/data/${DATASET}/ /tmp/${DATASET}/bids participant \
${FASTRACK_ARG} \
--sloppy --write-graph --mem-mb 14336 \
--output-spaces fsaverage5 \
--nthreads 4 -vv
- store_artifacts:
path: /tmp/ds005/bids
destination: bids-run
- run:
<<: *check_outputs
environment:
VARIANT: '_bids'
SUBDIR: 'bids'
- run: *check_outputs
- run:
name: Re-run fMRIPrep on single run of task data
no_output_timeout: 2h
command: |
rm /tmp/data/${DATASET}/sub-01/func/*_run-01_*
FASTRACK_ARG="--anat-derivatives /tmp/${DATASET}/smriprep"
FASTRACK_ARG="--derivatives anat=/tmp/${DATASET}/smriprep"
if [ -f /tmp/.nofasttrack ]; then
FASTRACK_ARG=""
fi
fmriprep-docker -i nipreps/fmriprep:latest \
-e FMRIPREP_DEV 1 --user $(id -u):$(id -g) \
--network none \
--config $PWD/nipype.cfg -w /tmp/${DATASET}/work_partial \
/tmp/data/${DATASET} /tmp/${DATASET}/derivatives_partial participant \
/tmp/data/${DATASET} /tmp/${DATASET}/fmriprep-partial participant \
--fs-subjects-dir /tmp/${DATASET}/freesurfer \
${FASTRACK_ARG} \
--output-layout legacy \
--sloppy --write-graph --use-syn-sdc --mem-mb 14336 \
--output-spaces MNI152NLin2009cAsym fsaverage5 fsnative MNI152NLin6Asym anat \
--nthreads 4 --cifti-output --project-goodvoxels -vv
- store_artifacts:
path: /tmp/ds005/derivatives_partial
path: /tmp/ds005/fmriprep-partial
destination: partial-run
- run:
<<: *check_outputs
environment:
VARIANT: '_legacy_partial'
SUBDIR: 'derivatives_partial'
VARIANT: '_partial'
SUBDIR: 'fmriprep-partial'
- run:
name: Clean working directory
when: on_success
Expand Down Expand Up @@ -643,13 +609,12 @@ jobs:
name: Run anatomical workflow on ds054
no_output_timeout: 2h
command: |
mkdir -p /tmp/${DATASET}/work /tmp/${DATASET}/derivatives
mkdir -p /tmp/${DATASET}/work /tmp/${DATASET}/fmriprep
if [ -f /tmp/.nofasttrack ]; then
fmriprep-docker -i nipreps/fmriprep:latest \
-e FMRIPREP_DEV 1 --user $(id -u):$(id -g) \
--config $PWD/nipype.cfg -w /tmp/${DATASET}/work \
/tmp/data/${DATASET} /tmp/${DATASET}/derivatives participant \
--output-layout legacy \
/tmp/data/${DATASET} /tmp/${DATASET}/fmriprep participant \
--fs-no-reconall --sloppy --write-graph \
--output-spaces MNI152NLin2009cAsym \
--mem-mb 14336 --nthreads 4 --anat-only -vv
Expand All @@ -659,7 +624,7 @@ jobs:
command: |
rm -rf /tmp/${DATASET}/work/fmriprep_*_wf/fsdir*
rm -rf /tmp/${DATASET}/work/reportlets
rm -rf /tmp/${DATASET}/derivatives/fmriprep
rm -rf /tmp/${DATASET}/fmriprep
- save_cache:
key: ds054-anat-v0-{{ .Branch }}-{{ .Revision }}
paths:
Expand All @@ -669,16 +634,15 @@ jobs:
name: Run full fMRIPrep on ds054
no_output_timeout: 2h
command: |
FASTRACK_ARG="--anat-derivatives /tmp/${DATASET}/smriprep"
FASTRACK_ARG="--derivatives anat=/tmp/${DATASET}/smriprep"
if [ -f /tmp/.nofasttrack ]; then
FASTRACK_ARG=""
fi
fmriprep-docker -i nipreps/fmriprep:latest \
-e FMRIPREP_DEV 1 --user $(id -u):$(id -g) \
--config $PWD/nipype.cfg -w /tmp/${DATASET}/work \
/tmp/data/${DATASET} /tmp/${DATASET}/derivatives participant \
/tmp/data/${DATASET} /tmp/${DATASET}/fmriprep participant \
${FASTRACK_ARG} \
--output-layout legacy \
--fs-no-reconall --sloppy \
--output-spaces MNI152NLin2009cAsym:res-2 anat func \
--mem-mb 14336 --nthreads 4 -vv --debug compcor
Expand All @@ -687,18 +651,17 @@ jobs:
name: Generate report with one artificial error
command: |
set -x
sudo mv /tmp/${DATASET}/derivatives/fmriprep/sub-100185.html \
/tmp/${DATASET}/derivatives/fmriprep/sub-100185_noerror.html
sudo mv /tmp/${DATASET}/fmriprep/sub-100185.html \
/tmp/${DATASET}/fmriprep/sub-100185_noerror.html
UUID=$(grep uuid /tmp/${DATASET}/work/*/config.toml | cut -d\" -f 2 | tail -n 1)
mkdir -p /tmp/${DATASET}/derivatives/fmriprep/sub-100185/log/$UUID/
mkdir -p /tmp/${DATASET}/fmriprep/sub-100185/log/$UUID/
cp /tmp/src/fmriprep/fmriprep/data/tests/crash_files/*.txt \
/tmp/${DATASET}/derivatives/fmriprep/sub-100185/log/$UUID/
/tmp/${DATASET}/fmriprep/sub-100185/log/$UUID/
set +e
fmriprep-docker -i nipreps/fmriprep:latest \
-e FMRIPREP_DEV 1 --user $(id -u):$(id -g) \
--config $PWD/nipype.cfg -w /tmp/${DATASET}/work \
/tmp/data/${DATASET} /tmp/${DATASET}/derivatives participant \
--output-layout legacy \
/tmp/data/${DATASET} /tmp/${DATASET}/fmriprep participant \
--fs-no-reconall --sloppy --write-graph \
--output-spaces MNI152NLin2009cAsym:res-2 anat func \
--reports-only --config-file /tmp/${DATASET}/work/${UUID}/config.toml -vv
Expand Down Expand Up @@ -759,13 +722,12 @@ jobs:
name: Run anatomical workflow on ds000210
no_output_timeout: 2h
command: |
mkdir -p /tmp/${DATASET}/work /tmp/${DATASET}/derivatives
mkdir -p /tmp/${DATASET}/work /tmp/${DATASET}/fmriprep
if [ -f /tmp/.nofasttrack ]; then
fmriprep-docker -i nipreps/fmriprep:latest \
-e FMRIPREP_DEV 1 --user $(id -u):$(id -g) \
--config $PWD/nipype.cfg -w /tmp/${DATASET}/work \
/tmp/data/${DATASET} /tmp/${DATASET}/derivatives participant \
--output-layout legacy \
/tmp/data/${DATASET} /tmp/${DATASET}/fmriprep participant \
--fs-no-reconall --sloppy --write-graph \
--output-spaces MNI152NLin2009cAsym \
--mem-mb 14336 --nthreads 4 --anat-only -vv --notrack
Expand All @@ -775,7 +737,7 @@ jobs:
command: |
rm -rf /tmp/${DATASET}/work/fmriprep_*_wf/fsdir*
rm -rf /tmp/${DATASET}/work/reportlets
rm -rf /tmp/${DATASET}/derivatives/fmriprep
rm -rf /tmp/${DATASET}/fmriprep
- save_cache:
key: ds210-anat-v1-{{ .Branch }}-{{ .Revision }}
paths:
Expand All @@ -791,7 +753,7 @@ jobs:
name: Run full fMRIPrep on ds000210
no_output_timeout: 2h
command: |
FASTRACK_ARG="--anat-derivatives /tmp/${DATASET}/smriprep"
FASTRACK_ARG="--derivatives anat=/tmp/${DATASET}/smriprep"
if [ -f /tmp/.nofasttrack ]; then
FASTRACK_ARG=""
fi
Expand All @@ -805,9 +767,9 @@ jobs:
fmriprep-docker -i nipreps/fmriprep:latest \
-e FMRIPREP_DEV 1 --user $(id -u):$(id -g) \
--config $PWD/nipype.cfg -w /tmp/${DATASET}/work \
/tmp/data/${DATASET} /tmp/${DATASET}/derivatives participant \
/tmp/data/${DATASET} /tmp/${DATASET}/fmriprep participant \
${FASTRACK_ARG} \
--output-layout legacy --me-output-echos \
--me-output-echos \
--fs-no-reconall --use-syn-sdc --ignore slicetiming \
--dummy-scans 1 --sloppy --write-graph \
--output-spaces MNI152NLin2009cAsym \
Expand Down
33 changes: 0 additions & 33 deletions .circleci/ds005_bids_fasttrack_outputs.txt

This file was deleted.

67 changes: 0 additions & 67 deletions .circleci/ds005_bids_outputs.txt

This file was deleted.

Loading