clusterR/fsl_cluster.R
fsl_cluster.RdForm clusters, report information about clusters
and/or perform cluster-based inference. Wrapper for cluster
fsl_cluster(
file,
threshold,
retimg = FALSE,
reorient = FALSE,
opts = "",
cope_image = NULL,
pthresh = NULL,
peakdist = 0,
volume = FALSE,
smooth_est = NULL,
voxel_resel = NULL,
fractional = FALSE,
connectivity = 26,
mm = FALSE,
find_minima = FALSE,
standard_image = NULL,
verbose = TRUE,
...
)
fslcluster(..., retimg = TRUE)
read_cluster_table(file)filename of input volume
threshold for input volume
(logical) return image of class nifti
(logical) If retimg, should file be reoriented when read in?
Passed to readnii.
(character) operations to be passed to cluster
filename of input cope volume
p-threshold
minimum distance between local maxima/minima, in mm (default 0)
number of voxels in the mask
smoothness estimate = sqrt(det(Lambda))
Size of one resel in voxel units
interprets the threshold as a fraction of the robust range
the connectivity of voxels (default 26)
use mm, not voxel, coordinates
find minima instead of maxima
filename for standard-space volume
(logical) print out command before running
additional arguments to pass to fslcmd
A list of filenames of outputs and tables:
opvalsfilename for image output of log pvals
oindexfilename for output of cluster index (in size order)
othreshfilename for output of thresholded image
olmaxfilename for output of local maxima text file
olmaximfilename for output of local maxima volume
osizefilename for output of size image
omaxfilename for output of max image
omeanfilename for output of mean image
if (have_fsl()) {
file = mni_fname(brain = TRUE, mask = FALSE)
threshold = 6000
clus = fsl_cluster(file, threshold)
}
#> cluster --in="/usr/local/fsl/data/standard/MNI152_T1_1mm_brain.nii.gz" --thresh=6000 --oindex=/var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T//RtmpKzob0N/file85752f780b35.nii.gz --othresh=/var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T//RtmpKzob0N/file85757227dceb.nii.gz --olmax=/var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T//RtmpKzob0N/file8575171902da --olmaxim=/var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T//RtmpKzob0N/file85756b0a420e.nii.gz --osize=/var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T//RtmpKzob0N/file85756e76dc08.nii.gz --omax=/var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T//RtmpKzob0N/file85753d67c9e0.nii.gz --omean=/var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T//RtmpKzob0N/file857568f6b09e.nii.gz --minclustersize --verbose > /var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T//RtmpKzob0N/file85751bc58ae8 ;