From 30b9086bec79163cac09b5ebb8d098b5bc6e961e Mon Sep 17 00:00:00 2001
From: Evan Edmond <evan.edmond@ndcn.ox.ac.uk>
Date: Wed, 25 Nov 2020 13:40:19 +0000
Subject: [PATCH] ENH: generic fsl_anat file tree

---
 fsl/utils/filetree/trees/fsl_anat.tree | 75 ++++++++++++++------------
 1 file changed, 42 insertions(+), 33 deletions(-)

diff --git a/fsl/utils/filetree/trees/fsl_anat.tree b/fsl/utils/filetree/trees/fsl_anat.tree
index 0acb210cf..776d74412 100644
--- a/fsl/utils/filetree/trees/fsl_anat.tree
+++ b/fsl/utils/filetree/trees/fsl_anat.tree
@@ -1,39 +1,48 @@
+struct = T1
 basename = fsl_anat
 {basename} (basename)
 {basename}.anat (fsl_anat_dir)
     lesionmaskinv.nii.gz
     lesionmask.nii.gz
     log.txt
-    MNI152_T1_2mm_brain_mask_dil1.nii.gz
-    MNI_to_T1_nonlin_field.nii.gz
-    T1_biascorr.nii.gz
-    T1_fast_bias_idxmask.nii.gz
-    T1_fast_bias_init.nii.gz
-    T1_fast_bias.nii.gz
-    T1_fast_bias_vol2.nii.gz
-    T1_fast_bias_vol32.nii.gz
-    T1_fast_restore.nii.gz
-    T1_fast_seg.nii.gz
-    T1_fast_totbias.nii.gz
-    T1_fullfov.nii.gz
-    T1_initfast2_brain_mask2.nii.gz
-    T1_initfast2_brain_mask.nii.gz
-    T1_initfast2_brain.nii.gz
-    T1_initfast2_maskedrestore.nii.gz
-    T1_initfast2_restore.nii.gz
-    T1.nii.gz
-    T1_nonroi2roi.mat
-    T1_orig2roi.mat
-    T1_orig2std.mat
-    T1_orig.nii.gz
-    T1_roi2nonroi.mat
-    T1_roi2orig.mat
-    T1_roi.log
-    T1_std2orig.mat
-    T1_to_MNI_lin.mat (T1_to_MNI_lin_mat)
-    T1_to_MNI_lin.nii.gz (T1_to_MNI_lin_nii)
-    T1_to_MNI_nonlin_coeff.nii.gz
-    T1_to_MNI_nonlin_field.nii.gz
-    T1_to_MNI_nonlin_jac.nii.gz
-    T1_to_MNI_nonlin.nii.gz (T1_to_MNI_nonlin_nii)
-    T1_to_MNI_nonlin.txt (T1_to_MNI_nonlin_txt)
+    MNI152_{struct}_2mm_brain_mask_dil1.nii.gz
+    MNI_to_{struct}_nonlin_field.nii.gz
+    {struct}2std_skullcon.mat
+    {struct}_biascorr_bet_skull.nii.gz (biascorr_bet_skull)
+    {struct}_biascorr_brain_mask.nii.gz (biascorr_brain_mask)
+    {struct}_biascorr_brain.nii.gz (biascorr_brain)
+    {struct}_biascorr.nii.gz (biascorr)
+    {struct}_fast_bias_idxmask.nii.gz
+    {struct}_fast_bias_init.nii.gz
+    {struct}_fast_bias.nii.gz
+    {struct}_fast_bias_vol2.nii.gz
+    {struct}_fast_bias_vol32.nii.gz
+    {struct}_fast_restore.nii.gz
+    {struct}_fast_seg.nii.gz (fast_seg)
+    {struct}_fast_pve_0.nii.gz
+    {struct}_fast_pve_1.nii.gz
+    {struct}_fast_pve_2.nii.gz
+    {struct}_fast_pveseg.nii.gz (fast_pveseg)
+    {struct}_fast_totbias.nii.gz
+    {struct}_fullfov.nii.gz
+    {struct}_initfast2_brain_mask2.nii.gz
+    {struct}_initfast2_brain_mask.nii.gz
+    {struct}_initfast2_brain.nii.gz
+    {struct}_initfast2_maskedrestore.nii.gz
+    {struct}_initfast2_restore.nii.gz
+    {struct}.nii.gz
+    {struct}_nonroi2roi.mat
+    {struct}_orig2roi.mat
+    {struct}_orig2std.mat
+    {struct}_orig.nii.gz
+    {struct}_roi2nonroi.mat
+    {struct}_roi2orig.mat
+    {struct}_roi.log
+    {struct}_std2orig.mat
+    {struct}_to_MNI_lin.mat (MNI_lin_mat)
+    {struct}_to_MNI_lin.nii.gz (MNI_lin_nii)
+    {struct}_to_MNI_nonlin_coeff.nii.gz
+    {struct}_to_MNI_nonlin_field.nii.gz
+    {struct}_to_MNI_nonlin_jac.nii.gz
+    {struct}_to_MNI_nonlin.nii.gz (MNI_nonlin_nii)
+    {struct}_to_MNI_nonlin.txt (MNI_nonlin_txt)
-- 
GitLab