From fd5c3a56029e6028e95fafa1f159667d7cb781ef Mon Sep 17 00:00:00 2001 From: Tinashe Michael Tapera Date: Thu, 7 Oct 2021 13:23:48 -0400 Subject: [PATCH] Update bootstrap-fmriprep-multises.sh Added a line to remove any unwanted session directories before the run (causes datalad run to crash as fmriprep starts looking for session files that datalad didn't fetch) --- scripts/cubic/bootstrap-fmriprep-multises.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/cubic/bootstrap-fmriprep-multises.sh b/scripts/cubic/bootstrap-fmriprep-multises.sh index 3614bf1..ebd1cf6 100644 --- a/scripts/cubic/bootstrap-fmriprep-multises.sh +++ b/scripts/cubic/bootstrap-fmriprep-multises.sh @@ -187,6 +187,7 @@ datalad get -n "inputs/data/${subid}" # Reomve all subjects we're not working on (cd inputs/data && rm -rf `find . -type d -name 'sub*' | grep -v $subid`) +(cd inputs/data && rm -rf `find . -type d -name 'ses*' | grep -v $sesid`) # ------------------------------------------------------------------------------ # Do the run!