The current function transforms a galgo.Obj
to a list
toList(output)
output | An object of class |
---|
The current function restructurates a galgo.Obj
to a more easy to understand an use list
. This output is particularly useful if one wants to select a given solution and use its outputs in a new classifier. The output of type list
has a length equals to the number of solutions obtained by the galgo
algorithm.
Basically this output is a list of lists, where each element of the output is named after the solution's name (solution.n
, where n
is the number assigned to that solution), and inside of it, it has all the constituents for that given solution with the following structure:
output$solution.n$Genes: A vector of the features included in the solution
output$solution.n$k: The number of partitions found in that solution
output$solution.n$SC.Fit: The average silhouette coefficient of the partitions found
output$solution.n$Surv.Fit: The survival fitness value
output$solution.n$Rank: The solution rank
CrowD: The solution crowding distance related to the rest of the solutions
if (FALSE) { #Load data rna_luad <- use_rna_luad() TCGA_expr <- rna_luad$TCGA$expression_matrix TCGA_clinic <- rna_luad$TCGA$pheno_data OS <- survival::Surv(time=TCGA_clinic$time,event=TCGA_clinic$status) #Run galgo output <- galgoR::galgo(generations = 10 ,population = 30, prob_matrix = TCGA_expr, OS = OS) outputList <- toList(output) }