Title: | Clusterwise Independent Component Analysis |
---|---|
Description: | Clustering multi-subject resting state functional Magnetic Resonance Imaging data. This methods enables the clustering of subjects based on multi-subject resting state functional Magnetic Resonance Imaging data. Objects are clustered based on similarities and differences in cluster-specific estimated components obtained by Independent Component Analysis. |
Authors: | Jeffrey Durieux [aut, cre], Tom Wilderjans [aut], Juan Claramunt Gonzalez [ctb] |
Maintainer: | Jeffrey Durieux <[email protected]> |
License: | GPL-3 |
Version: | 1.1.1 |
Built: | 2025-03-04 06:19:51 UTC |
Source: | https://github.com/jeffreydurieux/cica |
Main function to perform Clusterwise Independent Component Analysis
CICA( DataList, nComp, nClus, method = "fastICA", RanStarts, RatStarts = NULL, pseudo = NULL, pseudoFac, userDef = NULL, userGrid = NULL, scalevalue = 1000, center = TRUE, maxiter = 100, verbose = TRUE, ctol = 1e-06, checks = TRUE )
CICA( DataList, nComp, nClus, method = "fastICA", RanStarts, RatStarts = NULL, pseudo = NULL, pseudoFac, userDef = NULL, userGrid = NULL, scalevalue = 1000, center = TRUE, maxiter = 100, verbose = TRUE, ctol = 1e-06, checks = TRUE )
DataList |
a list of matrices |
nComp |
number or vector of ICA components per cluster |
nClus |
number or vector of clusters |
method |
Component method, default is |
RanStarts |
number of random starts |
RatStarts |
Generate rational starts. Either 'all' or a specific linkage method name (e.g., 'complete'). Use NULL to indicate that Rational starts should not be used. |
pseudo |
percentage value for perturbating rational starts to obtain pseudo rational starts |
pseudoFac |
factor to multiply the number of rational starts (7 in total) to obtain pseudorational starts |
userDef |
a user-defined starting seed stored in a data.frame, if NULL no userDef starting partition is used |
userGrid |
user supplied data.frame for multiple model CICA. First column are the requested components. Second column are the requested clusters |
scalevalue |
desired sum of squares of the block scaling procedure |
center |
mean center matrices |
maxiter |
maximum number of iterations for each start |
verbose |
print loss information to console |
ctol |
tolerance value for convergence criterion |
checks |
boolean parameter that indicates whether the input checks should be run (TRUE) or not (FALSE). |
CICA
returns an object of class
"CICA". It contains the estimated clustering, cluster specific component matrices and subject specific time course matrices
P |
partitioning vector of size |
Sr |
list of size |
Ais |
list of size |
Loss |
loss function value of the best start |
FinalLossDiff |
value of the loss difference between the last two iterations of the algorithm. |
IndLoss |
a vector with containing the individual loss function values |
LossStarts |
loss function values of all starts |
Iterations |
Number of iterations |
starts |
dataframe with the used starting partitions |
Jeffrey Durieux
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) multiple_output = CICA(DataList = CICA_data$X, nComp = 2:6, nClus = 1:5, method = 'fastICA',userGrid = NULL, RanStarts = 30, RatStarts = NULL, pseudo = c(0.1, 0.2),pseudoFac = 2, userDef = NULL, scalevalue = 1000, center = TRUE,maxiter = 100, verbose = TRUE, ctol = .000001) summary(multiple_output$Q_5_R_4) plot(multiple_output$Q_5_R_4) ## End(Not run)
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) multiple_output = CICA(DataList = CICA_data$X, nComp = 2:6, nClus = 1:5, method = 'fastICA',userGrid = NULL, RanStarts = 30, RatStarts = NULL, pseudo = c(0.1, 0.2),pseudoFac = 2, userDef = NULL, scalevalue = 1000, center = TRUE,maxiter = 100, verbose = TRUE, ctol = .000001) summary(multiple_output$Q_5_R_4) plot(multiple_output$Q_5_R_4) ## End(Not run)
This function computes a NxN modified RV matrix
computeRVmat(DataList = DataList, dist = TRUE, verbose = TRUE)
computeRVmat(DataList = DataList, dist = TRUE, verbose = TRUE)
DataList |
a list with matrices |
dist |
boolean if TRUE distance object is returned |
verbose |
boolean if TRUE progressbar is printed to the console |
RVsS |
a square similarity matrix of |
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) #Compute single subject ICAs (nClus equals length(ExampleData)) output <- CICA(DataList = CICA_data$X, nStarts = 1, nComp = 5, nClus = 9, verbose = FALSE) RV <- computeRVmat(DataList = output$Sr, dist = TRUE, verbose = FALSE) # apply hierarchical clustering on RV output hcl <- hclust(RV) plot(hcl) # low dimensional visualisation using Classical Multidimensional Scaling mds <- cmdscale(RV) plot(mds) ## End(Not run)
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) #Compute single subject ICAs (nClus equals length(ExampleData)) output <- CICA(DataList = CICA_data$X, nStarts = 1, nComp = 5, nClus = 9, verbose = FALSE) RV <- computeRVmat(DataList = output$Sr, dist = TRUE, verbose = FALSE) # apply hierarchical clustering on RV output hcl <- hclust(RV) plot(hcl) # low dimensional visualisation using Classical Multidimensional Scaling mds <- cmdscale(RV) plot(mds) ## End(Not run)
Writes temporary images out from nifti objects or passes character filenames of images to papaya JS viewer
embed_papaya(images, outdir = NULL)
embed_papaya(images, outdir = NULL)
images |
character filenames or |
outdir |
output directory for index and all to go |
Output html
Two step clustering for finding rational start partitions
FindRationalStarts( DataList, RatStarts = "all", nComp, nClus, scalevalue = NULL, center = TRUE, verbose = TRUE, pseudo = NULL, pseudoFac = NULL ) ## S3 method for class 'rstarts' plot(x, type = 1, mdsdim = 2, nClus = NULL, ...)
FindRationalStarts( DataList, RatStarts = "all", nComp, nClus, scalevalue = NULL, center = TRUE, verbose = TRUE, pseudo = NULL, pseudoFac = NULL ) ## S3 method for class 'rstarts' plot(x, type = 1, mdsdim = 2, nClus = NULL, ...)
DataList |
a list of matrices |
RatStarts |
type of rational start. 'all' computes all types of hclust methods |
nComp |
number of ICA components to extract |
nClus |
Number of clusters for rectangles in dendrogram, default NULL is based on number of clusters present in the object |
scalevalue |
scale each matrix to have an equal sum of squares |
center |
mean center matrices |
verbose |
print output to console |
pseudo |
percentage value for perturbating rational starts to obtain pseudo rational starts |
pseudoFac |
how many pseudo starts per rational start |
x |
an object of |
type |
type of plot, 1 for a dendrogram, 2 for a multidimensional scaling configuration |
mdsdim |
2 for two dimensional mds configuration, 3 for a three dimensional configuration |
... |
optional arguments passed to |
dataframe with (pseudo-) rational and dist object based on the pairwise modified RV values
Durieux, J., & Wilderjans, T. F. (2019). Partitioning subjects based on high-dimensional fMRI data: comparison of several clustering methods and studying the influence of ICA data reduction in big data. Behaviormetrika, 46(2), 271-311.
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) rats <- FindRationalStarts(DataList = CICA_data$X, nComp = 5, nClus = 4,verbose = TRUE, pseudo = .2) plot(rats, type = 1, method = 'ward.D2') plot(rats, type = 2, method = 'ward.D2') plot(rats, type = 2, method = 'ward.D2', mdsdim = 3) ## End(Not run) ## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) Out_starts <- FindRationalStarts(DataList = CICA_data$X,nComp = 5,nClus = 4,scalevalue = 1000) plot(Out_starts) plot(Out_starts, type = 2) plot(Out_starts, type = 2,mdsdim = 3, method = 'ward.D2') ## End(Not run)
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) rats <- FindRationalStarts(DataList = CICA_data$X, nComp = 5, nClus = 4,verbose = TRUE, pseudo = .2) plot(rats, type = 1, method = 'ward.D2') plot(rats, type = 2, method = 'ward.D2') plot(rats, type = 2, method = 'ward.D2', mdsdim = 3) ## End(Not run) ## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) Out_starts <- FindRationalStarts(DataList = CICA_data$X,nComp = 5,nClus = 4,scalevalue = 1000) plot(Out_starts) plot(Out_starts, type = 2) plot(Out_starts, type = 2,mdsdim = 3, method = 'ward.D2') ## End(Not run)
Generate random starts
GenRanStarts( RanStarts, nClus, nBlocks, ARIlim = 0.2, itmax = 1000, verbose = FALSE )
GenRanStarts( RanStarts, nClus, nBlocks, ARIlim = 0.2, itmax = 1000, verbose = FALSE )
RanStarts |
number of randomstarts to generate |
nClus |
number of clusters |
nBlocks |
number of objects |
ARIlim |
maximal value of adjusted Rand Index |
itmax |
maximum number of iterations used to find suitable random starts |
verbose |
boolean that indicates whether the output should be printed on the console |
a list where the first element is a matrix with random starts, second element all pairwise ARIs #'
Title
GenRatStarts( DataList, RatStarts, nComp, nClus, scalevalue, center, verbose, pseudo, pseudoFac )
GenRatStarts( DataList, RatStarts, nComp, nClus, scalevalue, center, verbose, pseudo, pseudoFac )
DataList |
DataList |
RatStarts |
Type of rational start |
nComp |
number of components |
nClus |
number of clusters |
scalevalue |
value for blockscaling procedure |
center |
center |
verbose |
verbose |
pseudo |
percentage used for perturbation rational starts (between 0) |
pseudoFac |
multiplication factor for pseudo rational starts |
out
Reads the papaya.js file installed and determines version and build
get_papaya_version()
get_papaya_version()
List of build and version, both characters
Load Nifti files from directory
loadNIfTIs(dir, toMatrix = TRUE)
loadNIfTIs(dir, toMatrix = TRUE)
dir |
Input directory containing nifti files |
toMatrix |
logical if TRUE nifti's are converted to matrices |
list object containing Voxel by Time course matrices
## Not run: nifs <- loadNIfTIs('<FolderPath>', toMatrix = T) outnif <- CICA(DataList = nifs, RanStarts = 2, nComp = 10, nClus = 2) ## End(Not run)
## Not run: nifs <- loadNIfTIs('<FolderPath>', toMatrix = T) outnif <- CICA(DataList = nifs, RanStarts = 2, nComp = 10, nClus = 2) ## End(Not run)
Match components between cluster specific spatial maps
matcher(x, reference, RV = FALSE, ...)
matcher(x, reference, RV = FALSE, ...)
x |
object of class CICA |
reference |
integer cluster index that serves as the reference. If nifti path is supplied, clusters will be matched to this template |
RV |
compute modified-RV between cluster components |
... |
other arguments |
out
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) multiple_output = CICA(DataList = CICA_data$X, nComp = 2:6, nClus = 1:5, userGrid = NULL, RanStarts = 30, RatStarts = NULL, pseudo = c(0.1, 0.2), pseudoFac = 2, userDef = NULL, scalevalue = 1000, center = TRUE, maxiter = 100, verbose = TRUE, ctol = .000001) matcher(multiple_output$Q_5_R_4, reference = 1, RV = TRUE) ## End(Not run)
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) multiple_output = CICA(DataList = CICA_data$X, nComp = 2:6, nClus = 1:5, userGrid = NULL, RanStarts = 30, RatStarts = NULL, pseudo = c(0.1, 0.2), pseudoFac = 2, userDef = NULL, scalevalue = 1000, center = TRUE, maxiter = 100, verbose = TRUE, ctol = .000001) matcher(multiple_output$Q_5_R_4, reference = 1, RV = TRUE) ## End(Not run)
Match components between cluster specific spatial maps
## S3 method for class 'CICA' matcher(x, reference = 1, RV = FALSE, ...)
## S3 method for class 'CICA' matcher(x, reference = 1, RV = FALSE, ...)
x |
object of class CICA |
reference |
integer cluster index that serves as the reference. If nifti path is supplied, clusters will be matched to this template |
RV |
compute modified-RV between cluster components |
... |
other arguments |
out
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) multiple_output = CICA(DataList = CICA_data$X, nComp = 2:6, nClus = 1:5, userGrid = NULL, RanStarts = 30, RatStarts = NULL, pseudo = c(0.1, 0.2), pseudoFac = 2, userDef = NULL, scalevalue = 1000, center = TRUE, maxiter = 100, verbose = TRUE, ctol = .000001) matcher(multiple_output$Q_5_R_4, reference = 1, RV = TRUE) ## End(Not run)
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) multiple_output = CICA(DataList = CICA_data$X, nComp = 2:6, nClus = 1:5, userGrid = NULL, RanStarts = 30, RatStarts = NULL, pseudo = c(0.1, 0.2), pseudoFac = 2, userDef = NULL, scalevalue = 1000, center = TRUE, maxiter = 100, verbose = TRUE, ctol = .000001) matcher(multiple_output$Q_5_R_4, reference = 1, RV = TRUE) ## End(Not run)
Moore Penrose inverse
mpinv(X)
mpinv(X)
X |
input matrix |
mp Moore Penrose inverse of matrix X
Writes temporary images out from nifti objects or passes character filenames of images to papaya JS viewer
papaya(images, outdir = NULL, ...)
papaya(images, outdir = NULL, ...)
images |
character filenames or |
outdir |
output directory for index and all to go |
... |
Options to be passed to |
Output directory where index.html, js, and copied nii.gz files
## Not run: library(neurobase) x = nifti(img = array(rnorm(100^3), dim= rep(100, 3)), dim=rep(100, 3), datatype=16) thresh = datatyper(x > 1) index.file = papaya(list(x, thresh)) ## End(Not run)
## Not run: library(neurobase) x = nifti(img = array(rnorm(100^3), dim= rep(100, 3)), dim=rep(100, 3), datatype=16) thresh = datatyper(x > 1) index.file = papaya(list(x, thresh)) ## End(Not run)
Get the necessary div output for embedding a papaya image
papaya_div()
papaya_div()
Character string
papaya_div()
papaya_div()
Writes temporary images out from nifti objects or passes character filenames of images to papaya JS viewer
pass_papaya( L = NULL, outdir = NULL, daemon = FALSE, close_on_exit = TRUE, sleeper = 3, version = "0.8", build = "982" )
pass_papaya( L = NULL, outdir = NULL, daemon = FALSE, close_on_exit = TRUE, sleeper = 3, version = "0.8", build = "982" )
L |
list of arguments passed to papaya using params |
outdir |
output directory for index and all to go |
daemon |
Argument passed to |
close_on_exit |
Should the server close once the function finishes? |
sleeper |
Time in seconds to sleep if |
version |
Version of papaya.js and papaya.css to use |
build |
Build of papaya.js and papaya.css to use |
Plot method for CICA. This function shows the cluster specific independent components in an interactive viewer using the papayar package
## S3 method for class 'CICA' plot(x, brain = "auto", cluster = 1, ...)
## S3 method for class 'CICA' plot(x, brain = "auto", cluster = 1, ...)
x |
Object of |
brain |
auto |
cluster |
Components of cluster to plot. Only used when non fMRI related data is used |
... |
other arguments |
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) multiple_output = CICA(DataList = CICA_data$X, nComp = 2:6, nClus = 1:5, userGrid = NULL, RanStarts = 30, RatStarts = NULL, pseudo = c(0.1, 0.2), pseudoFac = 2, userDef = NULL, scalevalue = 1000, center = TRUE, maxiter = 100, verbose = TRUE, ctol = .000001) plot(multiple_output$Q_5_R_4, cluster = 2) ## End(Not run)
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) multiple_output = CICA(DataList = CICA_data$X, nComp = 2:6, nClus = 1:5, userGrid = NULL, RanStarts = 30, RatStarts = NULL, pseudo = c(0.1, 0.2), pseudoFac = 2, userDef = NULL, scalevalue = 1000, center = TRUE, maxiter = 100, verbose = TRUE, ctol = .000001) plot(multiple_output$Q_5_R_4, cluster = 2) ## End(Not run)
Plot method for the sequential model selection option for CICA
## S3 method for class 'ModSel' plot(x, ...)
## S3 method for class 'ModSel' plot(x, ...)
x |
Object of |
... |
other arguments |
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) multiple_output = CICA(DataList = CICA_data$X, nComp = 2:6, nClus = 1:5, userGrid = NULL, RanStarts = 30, RatStarts = NULL, pseudo = c(0.1, 0.2), pseudoFac = 2, userDef = NULL, scalevalue = 1000, center = TRUE, maxiter = 100, verbose = TRUE, ctol = .000001) ModSelOutput <- SequentialScree(multiple_output) plot(ModSelOutput) ## End(Not run)
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) multiple_output = CICA(DataList = CICA_data$X, nComp = 2:6, nClus = 1:5, userGrid = NULL, RanStarts = 30, RatStarts = NULL, pseudo = c(0.1, 0.2), pseudoFac = 2, userDef = NULL, scalevalue = 1000, center = TRUE, maxiter = 100, verbose = TRUE, ctol = .000001) ModSelOutput <- SequentialScree(multiple_output) plot(ModSelOutput) ## End(Not run)
Sequential Model Selection for Multiple CICA model
SequentialScree(x)
SequentialScree(x)
x |
an object of class MultipleCICA |
a list object
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) multiple_output = CICA(DataList = CICA_data$X, nComp = 2:6, nClus = 1:5, userGrid = NULL, RanStarts = 30, RatStarts = NULL, pseudo = c(0.1, 0.2), pseudoFac = 2, userDef = NULL, scalevalue = 1000, center = TRUE, maxiter = 100, verbose = TRUE, ctol = .000001) ModSelOutput <- SequentialScree(multiple_output) plot(ModSelOutput) ## End(Not run)
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) multiple_output = CICA(DataList = CICA_data$X, nComp = 2:6, nClus = 1:5, userGrid = NULL, RanStarts = 30, RatStarts = NULL, pseudo = c(0.1, 0.2), pseudoFac = 2, userDef = NULL, scalevalue = 1000, center = TRUE, maxiter = 100, verbose = TRUE, ctol = .000001) ModSelOutput <- SequentialScree(multiple_output) plot(ModSelOutput) ## End(Not run)
Simulate CICA data
Sim_CICA( Nr, Q, R, voxels, timepoints, E, overlap = NULL, externalscore = FALSE )
Sim_CICA( Nr, Q, R, voxels, timepoints, E, overlap = NULL, externalscore = FALSE )
Nr |
number of subjects per cluster |
Q |
number of components |
R |
number of clusters |
voxels |
number of voxels |
timepoints |
number of time points |
E |
proportion of independent gaussian noise |
overlap |
amount of overlap between S across clusters. Smaller value means more overlap |
externalscore |
add simulated external score (default is FALSE) |
a list with simulated CICA data
## Not run: #Use set.seed(1) to obtain the dataset used in the article "Clusterwise #Independent Component Analysis (CICA): an R package for clustering subjects #based on ICA patterns underlying three-way (brain) data" Xe <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) ## End(Not run)
## Not run: #Use set.seed(1) to obtain the dataset used in the article "Clusterwise #Independent Component Analysis (CICA): an R package for clustering subjects #based on ICA patterns underlying three-way (brain) data" Xe <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) ## End(Not run)
Convert Cluster specific independent components to NIFTI format
Sr_to_nifti(x, write = FALSE, ...)
Sr_to_nifti(x, write = FALSE, ...)
x |
an object of |
write |
if TRUE, NIfTI files are written to current working directory |
... |
other arguments passed to RNifti::writeNifti |
a list with niftiImage files
## Not run: nifs <- loadNIfTIs('<FolderPath>', toMatrix = T) outnif <- CICA(DataList = nifs, RanStarts = 2, nComp = 10, nClus = 2) test <- Sr_to_nifti(outnif,write = T, datatype = 'int16', version = 2) ## End(Not run)
## Not run: nifs <- loadNIfTIs('<FolderPath>', toMatrix = T) outnif <- CICA(DataList = nifs, RanStarts = 2, nComp = 10, nClus = 2) test <- Sr_to_nifti(outnif,write = T, datatype = 'int16', version = 2) ## End(Not run)
Summarize a CICA analysis
## S3 method for class 'CICA' summary(object, ...)
## S3 method for class 'CICA' summary(object, ...)
object |
Object of the type produced by |
... |
Additional arguments |
summary.CICA
returns an overview of the estimated clustering of a CICA
analysis
PM |
Partitioning matrix |
tab |
tabulation of the clustering |
Loss |
Loss function value of the solution |
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) multiple_output = CICA(DataList = CICA_data$X, nComp = 2:6, nClus = 1:5, userGrid = NULL, RanStarts = 30, RatStarts = NULL, pseudo = c(0.1, 0.2), pseudoFac = 2, userDef = NULL, scalevalue = 1000, center = TRUE, maxiter = 100, verbose = TRUE, ctol = .000001) summary(multiple_output$Q_5_R_4) ## End(Not run)
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) multiple_output = CICA(DataList = CICA_data$X, nComp = 2:6, nClus = 1:5, userGrid = NULL, RanStarts = 30, RatStarts = NULL, pseudo = c(0.1, 0.2), pseudoFac = 2, userDef = NULL, scalevalue = 1000, center = TRUE, maxiter = 100, verbose = TRUE, ctol = .000001) summary(multiple_output$Q_5_R_4) ## End(Not run)
Summarize a CICA analysis
## S3 method for class 'MultipleCICA' summary(object, ...)
## S3 method for class 'MultipleCICA' summary(object, ...)
object |
Object of the type produced by |
... |
Additional arguments |
summary.MultipleCICA
returns an overview of the estimated clustering of a CICA
analysis
PM |
Partitioning matrix |
tab |
tabulation of the clustering |
Loss |
Loss function value of the solution |
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) multiple_output = CICA(DataList = CICA_data$X, nComp = 2:6, nClus = 1:5, userGrid = NULL, RanStarts = 30, RatStarts = NULL, pseudo = c(0.1, 0.2), pseudoFac = 2, userDef = NULL, scalevalue = 1000, center = TRUE, maxiter = 100, verbose = TRUE, ctol = .000001) summary(multiple_output$Q_5_R_4) ## End(Not run)
## Not run: CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10, E = 0.4, overlap = .25, externalscore = TRUE) multiple_output = CICA(DataList = CICA_data$X, nComp = 2:6, nClus = 1:5, userGrid = NULL, RanStarts = 30, RatStarts = NULL, pseudo = c(0.1, 0.2), pseudoFac = 2, userDef = NULL, scalevalue = 1000, center = TRUE, maxiter = 100, verbose = TRUE, ctol = .000001) summary(multiple_output$Q_5_R_4) ## End(Not run)
Updates the papaya version in the papayar package to the most current on GitHub
update_papaya_build( type = c("standard", "minimal", "nodicom", "nojquery", "standard-with-atlas-local", "standard-with-atlas"), verbose = TRUE )
update_papaya_build( type = c("standard", "minimal", "nodicom", "nojquery", "standard-with-atlas-local", "standard-with-atlas"), verbose = TRUE )
type |
Type of release. Standard is default |
verbose |
Should download progress be shown? |
Result of get_papaya_version
after downloading