Description Usage Arguments Value Examples
View source: R/results_functions.R
Classify samples from multiple centroids
1 | classify_multiple(prob_matrix, centroid._list, distancetype = "pearson")
|
prob_matrix |
a |
centroid._list |
a |
distancetype |
a |
Returns a data.frame
with the classes assigned to each sample in each signature, were samples are a rows and signatures in columns
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
# 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)
RESULTS <- non_dominated_summary(
output = output, OS = OS,
prob_matrix = TCGA_expr,
distancetype = "pearson",
usegpu = FALSE
)
CentroidsList <- create_centroids(output, RESULTS$solution, train.set = TCGA_expr)
TCGA_classes <- classify_multiple(prob_matrix = TCGA_expr, centroid._list = CentroidsList)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.