dimension_reduction-ConsensusPartition-method.Rd
Visualize samples (the matrix columns) after dimension reduction
# S4 method for ConsensusPartition
dimension_reduction(object, k, top_n = NULL,
method = c("PCA", "MDS", "t-SNE", "UMAP"),
control = list(), color_by = NULL,
internal = FALSE, nr = 5000,
silhouette_cutoff = 0.5, remove = FALSE,
scale_rows = object@scale_rows, verbose = TRUE, ...)
A ConsensusPartition-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 silhouette score. Data points with values less than it will be mapped with cross symbols.
Whether to remove columns which have less silhouette scores than the cutoff.
Whether to perform scaling on matrix rows.
Whether print messages.
Pass to dimension_reduction,matrix-method
.
Locations of the points.
data(golub_cola)
dimension_reduction(golub_cola["ATC", "skmeans"], k = 3)
#> use UMAP