MyNixOS website logo
Description

ROI-Based Transformation of Neuroimages into High-Dimensional Data Frames.

Converts NIfTI format T1/FL neuroimages into structured, high-dimensional 2D data frames with a focus on region of interest (ROI) based processing. The package incorporates the partition algorithm, which offers a flexible framework for agglomerative partitioning based on the Direct-Measure-Reduce approach. This method ensures that each reduced variable maintains a user-specified minimum level of information while remaining interpretable, as each maps uniquely to one variable in the reduced dataset. The partition framework is described in Millstein et al. (2020) <doi:10.1093/bioinformatics/btz661>. The package allows customization in variable selection, measurement of information loss, and data reduction methods for neuroimaging analysis and machine learning workflows.

MRIreduce

USCIMAGE

Introduction

MRIreduce is an advanced R package designed to convert NIfTI format T1/FL neuroimages into structured, high-dimensional 2D data frames, focusing on region of interest (ROI) based processing. This package incorporates a key algorithm called ‘partition’, which offers a fast, flexible framework for agglomerative partitioning based on the Direct-Measure-Reduce approach. This method ensures that each reduced variable maintains a user-specified minimum level of information while being interpretable, as each maps uniquely to one variable in the reduced dataset. The ‘partition’ algorithm, detailed in Millstein et al. (2020), allows for customization in variable selection, measurement of information loss, and data reduction methods. MRIreduce is indispensable for researchers requiring efficient, accurate preparation of neuroimaging data for detailed statistical analysis and machine learning applications, enhancing the interpretability and utility of neuroimaging studies.

Installation Instructions

This document provides detailed steps to install the necessary dependencies for the package. Please follow the instructions carefully to ensure all dependencies are correctly installed.

Step 1: Install devtools

The devtools package is essential for installing packages directly from GitHub. If you do not have devtools installed, run the following code:

if (!requireNamespace("devtools", quietly = TRUE))
    install.packages("devtools")

Step 2: Install fslr

The fslr package is an interface to the FSL (FMRIB Software Library) tools. Install it from CRAN:

install.packages("fslr")

Step 3: Optionally install EveTemplate

If you want the package to resolve the EVE template automatically, install the optional EveTemplate package. Otherwise, you can supply a template path directly to eve_T1(), eve_Fl(), and map2_eve().

Install EveTemplate from the Neuroconductor repository:

install.packages(
  "EveTemplate",
  repos = c(
    "https://neuroconductor.org/releases/2020/05",
    getOption("repos")
  )
)

Step 4: Install FSL

FSL is not an R package but a standalone software suite for MRI and fMRI analysis. Follow the instructions on [their website] (https://fsl.fmrib.ox.ac.uk/fsl/docs/#/install/index) to download and install it.

Step 5: Optional Python setup for map2_eve

The map2_eve() helper also requires a working Python environment for reticulate with the Python packages nilearn, nibabel, and matplotlib. This is only needed if you want to generate EVE-overlay figures from R.

Notes on external requirements

  • The package can be installed and its core pure-R functionality can be used without FSL or Python.
  • eve_T1() and eve_Fl() require FSL.
  • map2_eve() requires Python packages configured for reticulate.
  • If EveTemplate is not installed, you can still use the relevant functions by supplying template_img_path directly.
Metadata

Version

1.0.0

License

Unknown

Platforms (80)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arc-linux
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • sh4-linux
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows