neuroCleaner | R Documentation |
Loads a NIfTI-format neuroimaging file and transforms it into a structured data frame,
organizing voxel-level information for downstream analysis. This function is the first step
in the neuroimaging processing pipeline in neuroSCC
, converting raw PET data into
a format suitable for functional data analysis. SCCs are later computed using functions
from the ImageSCC
package, such as ImageSCC::scc.image()
.
neuroCleaner(name, demo = NULL, demoRow = 1)
name |
|
demo |
Optional |
demoRow |
|
The function performs the following steps
Loads the NIfTI file using oro.nifti::readNIfTI()
.
Converts the 3D image into a tidy data frame.
Adds z
, x
, and y
voxel coordinates.
If demographic data is provided, attempts to match based on PPT
(case-insensitive). If no match is found, demoRow
is used.
The resulting data frame serves as input for databaseCreator
, matrixCreator
,
and other core functions in the neuroSCC
pipeline.
A data frame where each row represents a voxel (3D pixel).
If demographics are provided: the columns include PPT
, Group
, Sex
, Age
, z
, x
, y
, and pet
.
If demographics are not provided: the columns include z
, x
, y
, and pet
.
The pet
column contains the PET intensity value at each voxel location.
databaseCreator
for batch image processing.
readNIfTI
for reading NIfTI-format files.
# Load a sample Control NIfTI file
niftiFile <- system.file("extdata", "syntheticControl1.nii.gz", package = "neuroSCC")
# Example Without demographic data
petData <- neuroCleaner(niftiFile)
petData[sample(nrow(petData), 10), ] # Show 10 random voxels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.