dimension_reduction-DownSamplingConsensusPartition-method.RdVisualize samples (the matrix columns) after dimension reduction
# S4 method for DownSamplingConsensusPartition
dimension_reduction(object, k, top_n = NULL,
method = c("PCA", "MDS", "t-SNE", "UMAP"),
control = list(), color_by = NULL,
internal = FALSE, nr = 5000,
p_cutoff = 0.05, remove = FALSE,
scale_rows = TRUE, verbose = TRUE, ...)A DownSamplingConsensusPartition-class object.
Number of subgroups.
Top n rows to use. By default it uses all rows in the original matrix.
Which method to reduce the dimension of the data. MDS uses cmdscale, PCA uses prcomp. t-SNE uses Rtsne. UMAP uses umap.
If annotation table is set, an annotation name can be set here.
Internally used.
If number of matrix rows is larger than this value, random nr rows are used.
Cutoff of p-value of class label prediction. Data points with values higher than it will be mapped with cross symbols.
Whether to remove columns which have high p-values than the cutoff.
Whether to perform scaling on matrix rows.
Whether print messages.
Other arguments.
This function is basically very similar as dimension_reduction,ConsensusPartition-method.
No value is returned.
data(golub_cola_ds)
dimension_reduction(golub_cola_ds, k = 2)
#> use UMAP
dimension_reduction(golub_cola_ds, k = 3)
#> use UMAP