read_anlz: readANALYZE

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

These functions read in the header information and multi-dimensional array from a binary file in Analyze 7.5 format.

Usage

1
readANALYZE(fname, SPM = FALSE, verbose = FALSE, warn = -1)

Arguments

fname

Pathname of the Analyze pair of files .img and .hdr without the suffix.

SPM

is a logical variable (default = FALSE) that forces the voxel data values to be rescaled using the funused1 ANALYZE header field. This is an undocumented convention of ANALYZE files processed using the Statistical Parametric Mapping (SPM) software.

verbose

is a logical variable (default = FALSE) that allows text-based feedback during execution of the function.

warn

is a number to regulate the display of warnings (default = -1). See options for more details.

Details

The internal functions readBin and rawToChar are utilized in order to efficiently extract information from a binary file. The types of data are limited to 1- and 2-byte integers, 4-byte floats and 8-byte doubles.

Value

An object of class anlz is produced.

Author(s)

Brandon Whitcher bwhitcher@gmail.com,
Volker Schmid volkerschmid@users.sourceforge.net

References

ANALYZE 7.5
http://eeg.sourceforge.net/ANALYZE75.pdf

See Also

readNIfTI

Examples

1
2
3
4
5
## avg152T1
anlz.path <- system.file("anlz", package="oro.nifti")
mni152 <- readANALYZE(file.path(anlz.path, "avg152T1"))
image(mni152, oma=rep(2,4))
orthographic(mni152, oma=rep(2,4))

neuroconductor-releases/oro.nifti documentation built on Jan. 1, 2021, 11:40 a.m.