Extract or Replace NIfTI Audit Trail

Share:

Description

Operators that act on the audit trail (XML) in the NIfTI header.

Usage

1
2
## S4 method for signature 'nifti'
audit.trail(object)

Arguments

object

is of class nifti.

Methods

object = "nifti"

Extract or replace NIfTI audit trail.

Author(s)

Andrew Thornton zeripath@users.sourceforge.net

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
## Sternberg Item Recognition Paradigm (SIRP) fMRI Study + XML
## Extension Data
URL <- "http://nifti.nimh.nih.gov/nifti-1/data/sirp_fmri_study_ver4.tar.gz"
download.file(URL, dest="sirp.tar.gz", quiet=TRUE)
fnames <- system("tar zxvf sirp.tar.gz", intern=TRUE)
sirp <- readNIfTI(fnames[1]) # newsirp_final_XML.nii
(sirp.xml <- xmlTreeParse(sirp@"extensions"[[1]]@"edata", asText=TRUE))

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.