AFNIMetaInfo: Create AFNI Format Metadata Object

View source: R/meta_info.R

AFNIMetaInfoR Documentation

Create AFNI Format Metadata Object

Description

Creates an AFNIMetaInfo object containing format-specific metadata for AFNI format neuroimaging files.

Usage

AFNIMetaInfo(descriptor, afni_header)

Arguments

descriptor

AFNIFormat object specifying file format details

afni_header

List containing AFNI header information

Details

Create AFNIMetaInfo Object

The AFNIMetaInfo object extends MetaInfo with AFNI-specific features:

  • AFNI brick structure

  • Sub-brick labels and scaling

  • Space transformation

  • Statistical parameters

The function handles:

  • Dimension extraction and validation

  • Label generation for sub-bricks

  • Transformation from AFNI to NIFTI space

  • Data type and scaling setup

Value

An AFNIMetaInfo object

See Also

MetaInfo, read_afni_header

Examples

## Not run: 
# Read AFNI header
header <- read_afni_header("brain+orig.HEAD")

# Create format descriptor
fmt <- AFNIFormat()

# Create metadata
meta <- AFNIMetaInfo(fmt, header)

# Check dimensions
dim(meta)

## End(Not run)


bbuchsbaum/neuroim2 documentation built on Jan. 2, 2025, 3:38 p.m.