View source: R/down_sampling.R
consensus_partition_by_down_sampling | R Documentation |
Consensus partitioning only with a subset of columns
consensus_partition_by_down_sampling(data,
top_value_method = "ATC",
top_n = NULL,
partition_method = "skmeans",
max_k = 6, k = NULL,
subset = min(round(ncol(data)*0.2), 250), pre_select = TRUE,
verbose = TRUE, prefix = "", anno = NULL, anno_col = NULL,
predict_method = "centroid",
dist_method = c("euclidean", "correlation", "cosine"),
.env = NULL, .predict = TRUE, mc.cores = 1, cores = mc.cores, ...)
data |
A numeric matrix where subgroups are found by columns. |
top_value_method |
A single top-value method. Available methods are in |
top_n |
Number of rows with top values. The value can be a vector with length > 1. When n > 5000, the function only randomly sample 5000 rows from top n rows. If |
partition_method |
A single partitioning method. Available methods are in |
max_k |
Maximal number of subgroups to try. The function will try for |
k |
Alternatively, you can specify a vector k. |
subset |
Number of columns to randomly sample, or a vector of selected indices. |
pre_select |
Whether to pre-select by k-means. |
verbose |
Whether to print messages. |
prefix |
Internally used. |
anno |
Annotation data frame. |
anno_col |
Annotation colors. |
predict_method |
Method for predicting class labels. Possible values are "centroid", "svm" and "randomForest". |
dist_method |
Method for predict the class for other columns. |
.env |
An environment, internally used. |
.predict |
Internally used. |
mc.cores |
Number of cores. This argument will be removed in future versions. |
cores |
Number of cores, or a |
... |
All pass to |
The function performs consensus partitioning only with a small subset
of columns and the class of other columns are predicted by predict_classes,ConsensusPartition-method
.
## Not run:
data(golub_cola)
m = get_matrix(golub_cola)
set.seed(123)
golub_cola_ds = consensus_partition_by_down_sampling(m, subset = 50,
anno = get_anno(golub_cola), anno_col = get_anno_col(golub_cola),
top_value_method = "SD", partition_method = "kmeans")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.