afni_3dfwhmx | R Documentation |
R6 class for running 3dFWHMx on a single input file based on user specification
R6 class for running 3dFWHMx on a single input file based on user specification
N.B. This class doesn't even expose the Gaussian ACF options given false positive problems
new()
afni_3dfwhmx$new( input_file = NULL, mask_file = NULL, out_dir = NULL, demed = NULL, unif = NULL, average = "geometric", ncpus = 1L )
input_file
The input dataset whose smoothness should be calculated (often first-level GLM residuals)
mask_file
Only compute smoothness within this mask (if not provided, -automask will be used)
out_dir
The output directory for fwhmx files
demed
If TRUE
, subtract the median of each voxels time series before calculating
FWHM (wraps -demed). Default: FALSE.
unif
If TRUE
, normalize each voxel's time series to have the same MAD before
calculating FWHM (wraps -unif). Default: FALSE
average
For multi-volume data, compute the averaged ACF estimates by either the geometric or arithmetic mean. Default: "geometric".
ncpus
The number of threads/cores to use for running 3dFWHMx. Default is 1. Controls OMP_NUM_THREADS.
run()
runs 3dFWHMx on this input dataset
afni_3dfwhmx$run(force = FALSE)
force
If TRUE
, 3dFWHMx will be run even if the expected output
files already exist.
get_call()
return the 3dFWHMx call used for the specified input
afni_3dfwhmx$get_call()
this is useful if you want to call 3dFWHMx yourself directly or if you want to debug the 3dFWHMx call specification.
a character string with the 3dFWHMx call
get_acf_params()
return the estimated ACF parameters for this run of data, averaged over volumes
afni_3dfwhmx$get_acf_params()
Will issue a warning if 3dFWHMx has not run successfully on this dataset already
a three-element vector containing the ACF estimates for the dataset, averaging over volumes.
get_acf_by_radius()
return the estimated ACF parameters for this run of data
afni_3dfwhmx$get_acf_by_radius()
Will issue a warning if 3dFWHMx has not run successfully on this dataset already
a three-element vector containing the ACF estimates for the dataset, averaging over volumes.
get_fwhm_by_volume()
return the estimated ACF parameters for this run of data
afni_3dfwhmx$get_fwhm_by_volume()
Will issue a warning if 3dFWHMx has not run successfully on this dataset already
a three-element vector containing the ACF estimates for the dataset, averaging over volumes.
get_input_file()
return the input file (NIfTI) used for 3dFWHMx
afni_3dfwhmx$get_input_file()
a character string of the input file location
get_mask_file()
return the mask file used for 3dFWHMx estimation
afni_3dfwhmx$get_mask_file()
a character string of the mask file location
get_outputs()
return the expected output files related to this 3dFWHMx object
afni_3dfwhmx$get_outputs()
a character vector containing expected output files
is_complete()
method to indicate whether 3dFWHMx has already run and completed for this input
afni_3dfwhmx$is_complete()
TRUE if expected 3dFWHMx output file exists, FALSE if it does not
delete_outputs()
method to delete any/all files generated by this object
afni_3dfwhmx$delete_outputs(prompt = FALSE)
prompt
if TRUE, user will have to confirm deletion of each file. If FALSE, files are deleted without prompting.
clone()
The objects of this class are cloneable with this method.
afni_3dfwhmx$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.