Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

readrpi

Read NIfTI file reoriented to RPI


Description

This function calls the readnii function after calling rpi_orient_file to force RPI orientation.

Usage

readrpi(file, ..., verbose = TRUE)

Arguments

file

file name of the NIfTI file.

...

Arguments to pass to readnii

verbose

print diagnostics, passed to rpi_orient_file

Examples

if (have.fsl()){
print(fsl_version())
in_ci <- function() {
 nzchar(Sys.getenv("CI"))
 }
 if (in_ci()) {
 destfile = tempfile(fileext = ".nii.gz")
 dl = download.file(paste0("https://github.com/muschellij2/", 
 "Neurohacking/files/3454385/113-01-MPRAGE2.nii.gz"),
 destfile = destfile)
 res = readrpi(destfile)
 }
 }

fslr

Wrapper Functions for 'FSL' ('FMRIB' Software Library) from Functional MRI of the Brain ('FMRIB')

v2.24.1
GPL-3
Authors
John Muschelli [aut, cre] (<https://orcid.org/0000-0001-6469-1750>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.