faskowit / multiAtlasTT

multi atlas transfer tools for neuroimaging (maTT)
MIT License
57 stars 7 forks source link

multiAtlasTT (Beta)

Multi-Atlas Transfer Tools for Neuroimaging (maTT)

DOI

Given a completed FreeSurfer recon-all directory, these scripts can transfer an atlas (.annot file; also called a 'parcellation') in fsaverage space to subject space, in both volume (nifti) and surface (.annot) format. Therefore, using these tools one can obtain multiple parcellations in the subject space5 (in addition to the Desikan-Killiany and Destrieux parcellations that recon-all usually constructs1). The major part of the label transfer script was adapted from scripts written by the CJNeuroLab. The goal of these tools is to make fitting multiple atlases a piece of cake. Have fun!

This project is in beta; work is ongoing. Please feel free to comment via issue/pull request. If you use these tools in an academic work, you might consider citing this repo.

maTT2 update (recommended)

We have now added functionality to use FreeSurfer Gaussian classifier surface atlas (.gcs) files to label individual subjects. These files are large, so they are hosted in a Figshare repository here: https://doi.org/10.6084/m9.figshare.5998583.

The gcs files were created by running the Mindboggle 101 brains (http://dx.doi.org/10.7910/DVN/HMQKCK) through FreeSurfer recon-all (versions 5.3, 6.0, and 7.1) and creating individually labeled atlases using the maTT functionality. For each atlas, we created a Gaussian classifer surface atlas using the 101 Mindboggle subjects. We have provided an example script for this creation process (maTT2_caLabelTrain_example.sh). We have also trained Gaussian classifier surface atlases using the HCP unrelated 100 subjects; these can be found here: https://doi.org/10.6084/m9.figshare.7552853.

An advantage of using the maTT2 functionality is that it takes much less time. Additionally, the maTT2-derived atlases seem to contain smoother borders between parcellated regions.

just_a_fun_pic

Prerequisites

Usage

See example_run_maTT.sh for modifiable example scipt to run maTT.

See example_run_maTT2.sh for modifiable example script to run maTT2, which uses gcs files that need to be downloaded from the accompanying figshare repository.

What do these scripts output? + Some considerations!

After program completion, the resultant file of interest will be called ${atlas}/${atlas}_rmap.nii.gz (rmap stands for re-mapped) which will contain the atlas labels 1:(num labels). 14 Subcortical labels will be added at the end. There will be a filed called ${atlas}/${atlas}_rmap.nii.gz_remap.txt which described how the original label numbers from the FreeSurfer annotation4 were mapped to this rmap nifti file.

The LUT (look up table) files will let you know the names of the cortical labels (but remember the extra 14 at the end, which correspond to these regions which are extracted from the FreeSurfer segmentation). For example, see the LUT for the Schaefer100 here or for the hcp-mmp here. Please pay attention to the regions labeled stuff like *unknown* or *???* in the LUT. These regions will likely be in your ${atlas}/${atlas}_rmap.nii.gz ... but you probably want to ignore them for analysis.

Sometimes, parcellation regions on the surface atlas might be so small, that they don't render in the output volume. In this case, the indices of the outputs will still correspond to the LUT (in other words, the indices should not be shifted!). Be aware that this could happen and adjust downstream analysis code accordingly please.

Overall, please carefully check the output of these tools to make sure that there aren't any data discrepancies and that you can correctly identify which label is which. These tools are provided for your convenience, but the quality of their output cannot be guaranteed. Please also note that the method for fitting these parcellations uses information from FreeSurfer's surface warp; however, some of these parcellations were originally fit via different means. Please do consider how this could affect your downstream analysis. Overall, use at your own risk! These tools were built to allow easy access to numerous parcellations, at the expense of using a single fitting method (FreeSurfer's warp) for all parcellations.

Data Sources

Note: for all atlases, only cortical areas are fit with the surface warp. The additional 14 subcortical areas are from FreeSurfer's segmentation

Notes / FAQ

Checkout the Brainlife.io version of this tool here.

Footnotes

1 The maTT tools transfer the atlas from fsaverage to subject space using _mrilabel2label, whereas FreeSufer recon-all uses _mris_calabel to generative the Desikan and Destrieux parcellations in native space. This tool can be used as part of a pipeline to generate the appropriate .gcs files necessary for potentially using the _mris_catrain and _mris_calabel functions. In fact, this is what we did to make the .gcs files for the maTT2 functionality.

2 The creators of the HCP-MMP1.0 atlas do not fully support transferring their parcellation to volume space. This is because the HCP altas is supposed to be fit with multiple imaging modalities, multi-modal surface matching, and a perceptron; on a high resolution surface. These tools only utilize the FreeSurfer surface registration. Therefore, proceed at your own risk. See also this preprint for additional info on the HCP viewpoint.

3 The yeo17 atlas used here is the subdivided 17 atlas, which contains 57 nodes per hemisphere. This atlas was originally in fsaverage5 space, but we have upsampled it to fsaverage space. Note that gaps exist between atlas regions; these gaps are labeled as intensities 1 and 59 for the left and right hemisphere respectively.

4 Note that the FreeSurfer annotation adds 1000 to values of the left hemisphere and 2000 to values of the right hemisphere. In the output folder, there will also be a non-rmap'ed file saved, for reference.

5 The subject space referred to here is the space that the T1w image was in when submitted to the recon-all script.

This material is based upon work supported by the National Science Foundation Graduate Research Fellowship under Grant No. 1342962. Any opinion, findings, and conclusions or recommendations expressed in this material are those of the authors(s) and do not necessarily reflect the views of the National Science Foundation.