Skip to content

Commit 7d1447b

Browse files
committed
CI: Rename derivatives to T2w space
1 parent 1533815 commit 7d1447b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.circleci/config.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,14 @@ jobs:
405405
cp -r /tmp/data/${DATASET}/sub-01 /tmp/data/${DATASET}-t2only/sub-01
406406
rm -f /tmp/data/${DATASET}-t2only/sub-01/ses-1mo/anat/*_T1w.*
407407
tree /tmp/data/${DATASET}-t2only
408+
mkdir -p /tmp/data/${DATASET}-t2only/derivatives
409+
cp -r /tmp/data/${DATASET}/derivatives/precomputed /tmp/data/${DATASET}-t2only/derivatives
410+
# rename the derivatives for now - this is only possible since they share the same space
411+
sudo apt install rename
412+
rename 's/space-T1w/space-T2w/' /tmp/data/${DATASET}-t2only/derivatives/precomputed/sub-01/ses-1mo/anat/*
413+
sed -i 's/_T1w./_T2w./g' /tmp/data/${DATASET}-t2only/derivatives/precomputed/sub-01/ses-1mo/anat/*json
414+
tree /tmp/data/${DATASET}-t2only/derivatives/precomputed
415+
408416
- run:
409417
name: Run nibabies single anatomical workflow
410418
no_output_timeout: 1h
@@ -420,7 +428,7 @@ jobs:
420428
--output-spaces MNIInfant:cohort-1 func \
421429
--sloppy --write-graph --mem-mb 14000 \
422430
--nthreads 4 -vv --age-months 2 --sloppy \
423-
--derivatives /tmp/data/${DATASET}/derivatives/precomputed \
431+
--derivatives /tmp/data/${DATASET}-t2only/derivatives/precomputed \
424432
--output-layout bids --anat-only
425433
- run:
426434
name: Checking outputs of T2-only nibabies anat

0 commit comments

Comments
 (0)