View source: R/fill_atlas_with_stats.R
fill_atlas_with_stats | R Documentation |
Populates parcel-wise statistics from an atlas or set of clusters back into NIfTIs in the original space
fill_atlas_with_stats(
atlas_nifti,
stat_dt,
stat_cols = c("t", "p"),
stat_labels = NULL,
atlas_col = "atlas_value",
split_on = NULL,
stack_along = NULL,
img_prefix = "atlasfill",
out_dir = getwd(),
overwrite = FALSE,
afni_dir = "~/abin"
)
atlas_nifti |
The filename of the NIfTI image containing atlas values to match against |
stat_dt |
a |
stat_cols |
The column names in |
stat_labels |
A character vector of the same length as |
atlas_col |
The column name in |
split_on |
An optional character vector that yields an output image for each unique combination of splits. For
example, if |
stack_along |
By default, this is |
img_prefix |
A string prefixing the filenames for all NIfTIs |
out_dir |
The directory in which to place the stat NIfTIs. If not present, it will be created |
overwrite |
Whether to allow existing files to be overwritten. Default: FALSE |
afni_dir |
The location of your AFNI installation, which is used to cobble together NIfTIs |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.