batch_snf_subsamples | R Documentation |
Run SNF clustering pipeline on a list of subsampled data lists
batch_snf_subsamples(
dl_subsamples,
sc,
processes = 1,
return_sim_mats = FALSE,
sim_mats_dir = NULL
)
dl_subsamples |
A list of subsampled data lists. This object is
generated by the function |
sc |
An |
processes |
Specify number of processes used to complete SNF iterations
|
return_sim_mats |
If TRUE, function will return a list where the first element is the solutions data frame and the second element is a list of similarity matrices for each row in the sol_df. Default FALSE. |
sim_mats_dir |
If specified, this directory will be used to save all generated similarity matrices. |
By default, returns a one-element list: cluster_solutions
, which
is itself a list of cluster solution data frames corresponding to each of
the provided data list subsamples. Setting the parameters
return_sim_mats
and return_solutions
to TRUE
will turn the result of the function to a three-element list containing the
corresponding solutions data frames and final fused similarity matrices of
those cluster solutions, should you require these objects for your own
stability calculations.
my_dl <- data_list(
list(subc_v, "subcortical_volume", "neuroimaging", "continuous"),
list(income, "household_income", "demographics", "continuous"),
list(pubertal, "pubertal_status", "demographics", "continuous"),
uid = "unique_id"
)
sc <- snf_config(my_dl, n_solutions = 5, max_k = 40)
my_dl_subsamples <- subsample_dl(
my_dl,
n_subsamples = 20,
subsample_fraction = 0.85
)
batch_subsample_results <- batch_snf_subsamples(
my_dl_subsamples,
sc
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.