From 7d1447bcb4166ab2fcd3febbb19ff9005fc81f22 Mon Sep 17 00:00:00 2001 From: mathiasg Date: Thu, 9 Nov 2023 17:06:41 -0500 Subject: [PATCH] CI: Rename derivatives to T2w space --- .circleci/config.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b9260f23..4a921f02 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -405,6 +405,14 @@ jobs: cp -r /tmp/data/${DATASET}/sub-01 /tmp/data/${DATASET}-t2only/sub-01 rm -f /tmp/data/${DATASET}-t2only/sub-01/ses-1mo/anat/*_T1w.* tree /tmp/data/${DATASET}-t2only + mkdir -p /tmp/data/${DATASET}-t2only/derivatives + cp -r /tmp/data/${DATASET}/derivatives/precomputed /tmp/data/${DATASET}-t2only/derivatives + # rename the derivatives for now - this is only possible since they share the same space + sudo apt install rename + rename 's/space-T1w/space-T2w/' /tmp/data/${DATASET}-t2only/derivatives/precomputed/sub-01/ses-1mo/anat/* + sed -i 's/_T1w./_T2w./g' /tmp/data/${DATASET}-t2only/derivatives/precomputed/sub-01/ses-1mo/anat/*json + tree /tmp/data/${DATASET}-t2only/derivatives/precomputed + - run: name: Run nibabies single anatomical workflow no_output_timeout: 1h @@ -420,7 +428,7 @@ jobs: --output-spaces MNIInfant:cohort-1 func \ --sloppy --write-graph --mem-mb 14000 \ --nthreads 4 -vv --age-months 2 --sloppy \ - --derivatives /tmp/data/${DATASET}/derivatives/precomputed \ + --derivatives /tmp/data/${DATASET}-t2only/derivatives/precomputed \ --output-layout bids --anat-only - run: name: Checking outputs of T2-only nibabies anat