Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2020 Nov 9:14:572068.
doi: 10.3389/fninf.2020.572068. eCollection 2020.

Rxnat: An Open-Source R Package for XNAT-Based Repositories

Affiliations

Rxnat: An Open-Source R Package for XNAT-Based Repositories

Adrian Gherman et al. Front Neuroinform. .

Abstract

The extensible neuroimaging archive toolkit (XNAT) is a common platform for storing and distributing neuroimaging data and is used by many key repositories of public neuroimaging data. Some examples include the Neuroimaging Informatics Tools and Resources Clearinghouse (NITRC, https://nitrc.org/), the ConnectomeDB for the Human Connectome Project (https://db.humanconnectome.org/), and XNAT Central (https://central.xnat.org/). We introduce Rxnat (https://github.com/adigherman/Rxnat), an open-source R package designed to interact with any XNAT-based repository. The program has similar capabilities with PyXNAT and XNATpy, which were developed for Python users. Rxnat was developed to address the increased popularity of R among neuroimaging researchers. The Rxnat package can query multiple XNAT repositories and download all or a specific subset of images for further processing. This provides a lingua franca for the large community of R analysts to interface with multiple XNAT-based publicly available neuroimaging repositories. The potential of Rxnat is illustrated using an example of neuroimaging data normalization from two neuroimaging repositories, NITRC and HCP.

Keywords: MRI; R; XNAT; connectome; neuroconductor; neuroimaging; nitrc; normalization.

PubMed Disclaimer

Figures

Figure 1
Figure 1
Image processing pipeline: neck removal, inhomogeneity correction, skull stripping via registration and label fusion, tissue class segmentation, and intensity normalization across studies.
Figure 2
Figure 2
Pipeline image processing. (A) T1-weighted image after bias-field correction and neck removal. (B) Brain mask (red) estimated using multi-atlas label fusion. (C) Brain image plotted next to a three-class tissue segmentation in white matter (WM, color-labeled white), gray matter (GM, color labeled gray), and cerebrospinal fluid (CSF, color labeled black).
Figure 3
Figure 3
Tissue intensity densities in raw (first row) vs. WhiteStripe intensity normalized images (second row). The distribution of intensities for each study participant and tissue type is represented by one density (line) by tissue type: Cerebrospinal Fluid (CSF, left), Gray Matter (GM, middle), White Matter (WM, right). The density color coding corresponds to the different repositories: blue for NITRC and red for HCP.
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None

Similar articles

References

    1. Achterberg H. (2015). XNATpy. Python Module version 0.3.24.
    1. Burger M., Juenemann K., Koenig T. (2018). RUnit: R Unit Test Framework. R package version 0.4.32.
    1. Fisher A. (2020). ggBrain: ggplot Brain Images. R package version 0.1.2.
    1. Fortin J.-P., Parker D., Tunç B., Watanabe T., Elliott M. A., Ruparel K., et al. . (2017). Harmonization of multi-site diffusion tensor imaging data. Neuroimage 161, 149–170. 10.1016/j.neuroimage.2017.08.047 - DOI - PMC - PubMed
    1. Gentleman R. C., Carey V. J., Bates D. M., Bolstad B., Dettling M., Dudoit S., et al. . (2004). Bioconductor: open software development for computational biology and bioinformatics. Genome Biol. 5:R80. 10.1186/gb-2004-5-10-r80 - DOI - PMC - PubMed