Learn R Programming

nifti.io

Tools for reading and writing NIfTI-1.1 (NII) files, including optimized voxelwise read/write operations and a simplified method to write dataframes to NII.

I/O operations in nifti.io are optimized to be very fast and require minimal RAM. GZipped NII files are not supported (due to inconsistent indexing into files). Specification of the NIfTI-1.1 format can be found here LINK.

These methods were developed to support freedom in statistical modelling that currently does not exist in standard neuroimage processing suites. If a statistical model can be deployed in R, then nifti.io can:

  1. bring 3D and 4D neuroimaging data into R to be modelled with parallelization and efficient memory use in mind
  2. and put statistical results back into brain-space for visualization, interpretation, and further analysis.

Citation: Koscik TR, Man V, Jahn A, Lee CH, Cunningham WA. Decomposing the neural pathways in a simple, value-based choice. Neuroimage. 2020;214: 116764. LINK

Copy Link

Version

Install

install.packages('nifti.io')

Monthly Downloads

208

Version

1.0.0

License

MIT + file LICENSE

Maintainer

Timothy Koscik

Last Published

June 8th, 2021

Functions in nifti.io (1.0.0)

read.nii.volume

Read NII Volume
table.to.nii

Table to NII file
info.nii

Retrieve NIfTI Header Information
write.nii.volume

Write NIfTI-1 Volume
write.nii.voxel

Write NII Voxel
init.nii

Initialize Empty NIfTI File
read.nii.voxel

Read NII Voxel