neuropoly / template

A framework for creating unbiased MRI templates of the spinal cord
MIT License
5 stars 4 forks source link

Make the code more generalizable to non-human template #53

Closed NadiaBlostein closed 1 year ago

NadiaBlostein commented 1 year ago

This PR is about executing steps 1.1 to 1.4 in (see README).

In order to test this PR:

Before testing this PR, this should be done: https://github.com/neuropoly/data-management/issues/248

Fixes #25, #29, #31, #34, #37, #50, #51

jcohenadad commented 1 year ago

Suggestions about PATH_OUT. If setting PATH_OUT to be PATH_DATA/derivatives/labels, the following will happen:

├── sub-XXX  <---- your dataset
│   └── anat
│       └──sub-XXX_T1w.nii.gz
...
...
└── derivatives
    └── labels
        ├── results  <---- empty
        ├── qc  <---- has stuff
        ├── log  <---- has stuff
        ├── processed_data  <---- empty
        ├── sub-XXX
        │   └── anat
        │       └──sub-XXX_T1w_labelYYY.nii.gz  <---- segmentation and/or disc label to use for template generation
        ...

In general, PATH_OUT would be set to a local directory (eg: scratch space on a cluster), and then, the useful data would be copied back into the dataset under derivatives/labels.

However, I could see the advantages of the proposed approach:

Cons: